From db8345bc037631546c0e34883f660adf77a09834 Mon Sep 17 00:00:00 2001 From: Ryan Caudy Date: Wed, 24 May 2023 12:48:24 -0400 Subject: [PATCH 01/11] Migrate DateTime to Instant in replicators and tuple code generators. Adjust some of the helper classes to match replication expectations. --- .../by/LongChunkedAddOnlyMinMaxOperator.java | 9 +-- ...pper.java => InstantSsmSourceWrapper.java} | 56 ++++++------- .../distinct/LongChunkedDistinctOperator.java | 5 +- .../distinct/LongRollupDistinctOperator.java | 5 +- .../unique/LongChunkedUniqueOperator.java | 1 - .../unique/LongRollupUniqueOperator.java | 1 - .../table/impl/sources/BoxedColumnSource.java | 32 -------- .../extensions/arrow/ArrowWrapperTools.java | 6 +- ...rce.java => ArrowInstantColumnSource.java} | 6 +- .../GenerateArrowColumnSourceTests.java | 4 +- .../GenerateArrowColumnSources.java | 8 +- .../replicators/ReplicateOperators.java | 9 +-- .../ReplicateRegionsAndRegionedSources.java | 16 +--- .../ReplicateSegmentedSortedMultiset.java | 78 +++++++++---------- .../ReplicateSourcesAndChunks.java | 53 ++----------- .../replicators/ReplicateUpdateBy.java | 14 ++-- .../replicators/TupleSourceCodeGenerator.java | 24 +++--- 17 files changed, 115 insertions(+), 212 deletions(-) rename engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/{DateTimeSsmSourceWrapper.java => InstantSsmSourceWrapper.java} (62%) rename extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/{ArrowDateTimeColumnSource.java => ArrowInstantColumnSource.java} (86%) diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/LongChunkedAddOnlyMinMaxOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/LongChunkedAddOnlyMinMaxOperator.java index cea43a53707..d4eb218ccf6 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/LongChunkedAddOnlyMinMaxOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/LongChunkedAddOnlyMinMaxOperator.java @@ -9,9 +9,6 @@ package io.deephaven.engine.table.impl.by; import java.time.Instant; -import io.deephaven.time.DateTime; -import io.deephaven.engine.table.impl.sources.ArrayBackedColumnSource; -import io.deephaven.engine.table.impl.sources.DateTimeArraySource; import io.deephaven.engine.table.impl.sources.InstantArraySource; import io.deephaven.engine.table.impl.sources.LongArraySource; import io.deephaven.engine.table.impl.sources.NanosBasedTimeArraySource; @@ -22,7 +19,6 @@ import io.deephaven.engine.rowset.chunkattributes.RowKeys; import io.deephaven.util.QueryConstants; import io.deephaven.util.compare.LongComparisons; -import io.deephaven.engine.table.impl.sources.LongArraySource; import io.deephaven.engine.table.ColumnSource; import io.deephaven.chunk.*; import org.apache.commons.lang3.mutable.MutableInt; @@ -49,10 +45,7 @@ class LongChunkedAddOnlyMinMaxOperator implements IterativeChunkedAggregationOpe this.minimum = minimum; this.name = name; // region resultColumn initialization - if (type == DateTime.class) { - actualResult = new DateTimeArraySource(); - resultColumn = ((NanosBasedTimeArraySource)actualResult).toEpochNano(); - } else if (type == Instant.class) { + if (type == Instant.class) { actualResult = new InstantArraySource(); resultColumn = ((NanosBasedTimeArraySource)actualResult).toEpochNano(); } else { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/DateTimeSsmSourceWrapper.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/InstantSsmSourceWrapper.java similarity index 62% rename from engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/DateTimeSsmSourceWrapper.java rename to engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/InstantSsmSourceWrapper.java index 12a45ce3615..8bb54dc3142 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/DateTimeSsmSourceWrapper.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/InstantSsmSourceWrapper.java @@ -6,28 +6,28 @@ import io.deephaven.vector.LongVector; import io.deephaven.vector.ObjectVector; import io.deephaven.vector.ObjectVectorDirect; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.AbstractColumnSource; import io.deephaven.engine.table.impl.ColumnSourceGetDefaults; import io.deephaven.engine.table.impl.MutableColumnSourceGetDefaults; import io.deephaven.engine.table.impl.ssms.LongSegmentedSortedMultiset; import org.jetbrains.annotations.NotNull; +import java.time.Instant; import java.util.Objects; -import static io.deephaven.time.DateTimeUtils.epochNanosToDateTime; +import static io.deephaven.time.DateTimeUtils.epochNanosToInstant; /** - * A {@link SsmBackedColumnSource} for Longs. + * A {@link SsmBackedColumnSource} for Instants. */ @SuppressWarnings("rawtypes") -public class DateTimeSsmSourceWrapper extends AbstractColumnSource +public class InstantSsmSourceWrapper extends AbstractColumnSource implements ColumnSourceGetDefaults.ForObject, MutableColumnSourceGetDefaults.ForObject { private final LongSsmBackedSource underlying; - public DateTimeSsmSourceWrapper(@NotNull final LongSsmBackedSource underlying) { - super(ObjectVector.class, DateTime.class); + public InstantSsmSourceWrapper(@NotNull final LongSsmBackedSource underlying) { + super(ObjectVector.class, Instant.class); this.underlying = underlying; } @@ -37,12 +37,12 @@ public boolean isImmutable() { } @Override - public ObjectVector get(long rowKey) { + public ObjectVector get(long rowKey) { return new ValueWrapper(underlying.getCurrentSsm(rowKey)); } @Override - public ObjectVector getPrev(long rowKey) { + public ObjectVector getPrev(long rowKey) { final LongVector maybePrev = underlying.getPrev(rowKey); if (maybePrev == null) { return null; @@ -60,7 +60,7 @@ public void startTrackingPrevValues() { underlying.startTrackingPrevValues(); } - public static class ValueWrapper implements ObjectVector { + public static class ValueWrapper implements ObjectVector { final LongSegmentedSortedMultiset underlying; public ValueWrapper(LongSegmentedSortedMultiset underlying) { @@ -68,33 +68,33 @@ public ValueWrapper(LongSegmentedSortedMultiset underlying) { } @Override - public DateTime get(long index) { - return epochNanosToDateTime(underlying.get(index)); + public Instant get(long index) { + return epochNanosToInstant(underlying.get(index)); } @Override - public ObjectVector subVector(long fromIndexInclusive, long toIndexExclusive) { - return underlying.subArrayAsDate(fromIndexInclusive, toIndexExclusive); + public ObjectVector subVector(long fromIndexInclusive, long toIndexExclusive) { + return underlying.subArrayAsInstants(fromIndexInclusive, toIndexExclusive); } @Override - public ObjectVector subVectorByPositions(long[] positions) { - return underlying.subArrayByPositionsAsDates(positions); + public ObjectVector subVectorByPositions(long[] positions) { + return underlying.subArrayByPositionsAsInstants(positions); } @Override - public DateTime[] toArray() { - return underlying.toDateArray(); + public Instant[] toArray() { + return underlying.toInstantArray(); } @Override - public DateTime[] copyToArray() { + public Instant[] copyToArray() { return toArray(); } @Override - public Class getComponentType() { - return DateTime.class; + public Class getComponentType() { + return Instant.class; } @Override @@ -103,8 +103,8 @@ public boolean isEmpty() { } @Override - public ObjectVector getDirect() { - return underlying.getDirectAsDate(); + public ObjectVector getDirect() { + return underlying.getDirectAsInstants(); } @Override @@ -122,18 +122,18 @@ public int intSize(@NotNull String operation) { return underlying.intSize(operation); } - public static ObjectVector getPrevValues(LongVector previousLongs) { - final DateTime[] asDates = new DateTime[previousLongs.intSize()]; - for (int ii = 0; ii < asDates.length; ii++) { - asDates[ii] = epochNanosToDateTime(previousLongs.get(ii)); + public static ObjectVector getPrevValues(LongVector previousLongs) { + final Instant[] asInstants = new Instant[previousLongs.intSize()]; + for (int ii = 0; ii < asInstants.length; ii++) { + asInstants[ii] = epochNanosToInstant(previousLongs.get(ii)); } - return new ObjectVectorDirect<>(asDates); + return new ObjectVectorDirect<>(asInstants); } @Override public String toString() { - return underlying.toDateString(); + return underlying.toInstantString(); } @Override diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongChunkedDistinctOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongChunkedDistinctOperator.java index 2b52e084a1a..c9bc69e9cab 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongChunkedDistinctOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongChunkedDistinctOperator.java @@ -8,9 +8,8 @@ */ package io.deephaven.engine.table.impl.by.ssmcountdistinct.distinct; -import io.deephaven.engine.table.impl.sources.BoxedColumnSource; import io.deephaven.time.DateTime; -import io.deephaven.engine.table.impl.by.ssmcountdistinct.DateTimeSsmSourceWrapper; +import io.deephaven.engine.table.impl.by.ssmcountdistinct.InstantSsmSourceWrapper; import io.deephaven.engine.rowset.WritableRowSet; import io.deephaven.engine.rowset.RowSet; @@ -65,7 +64,7 @@ public LongChunkedDistinctOperator( // endregion SsmCreation // region ResultAssignment if(type == DateTime.class) { - externalResult = new DateTimeSsmSourceWrapper(internalResult); + externalResult = new InstantSsmSourceWrapper(internalResult); } else { externalResult = internalResult; } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongRollupDistinctOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongRollupDistinctOperator.java index fcd9012cd0e..422d7505ee6 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongRollupDistinctOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongRollupDistinctOperator.java @@ -8,9 +8,8 @@ */ package io.deephaven.engine.table.impl.by.ssmcountdistinct.distinct; -import io.deephaven.engine.table.impl.sources.BoxedColumnSource; import io.deephaven.time.DateTime; -import io.deephaven.engine.table.impl.by.ssmcountdistinct.DateTimeSsmSourceWrapper; +import io.deephaven.engine.table.impl.by.ssmcountdistinct.InstantSsmSourceWrapper; import io.deephaven.engine.rowset.WritableRowSet; import io.deephaven.engine.rowset.RowSet; @@ -62,7 +61,7 @@ public LongRollupDistinctOperator( // endregion SsmCreation // region ResultAssignment if(type == DateTime.class) { - externalResult = new DateTimeSsmSourceWrapper(internalResult); + externalResult = new InstantSsmSourceWrapper(internalResult); } else { externalResult = internalResult; } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongChunkedUniqueOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongChunkedUniqueOperator.java index 2c73b45fd6b..5c1b5269558 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongChunkedUniqueOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongChunkedUniqueOperator.java @@ -10,7 +10,6 @@ import io.deephaven.engine.table.impl.sources.BoxedColumnSource; import io.deephaven.time.DateTime; -import io.deephaven.engine.table.impl.by.ssmcountdistinct.DateTimeSsmSourceWrapper; import io.deephaven.engine.rowset.WritableRowSet; import io.deephaven.engine.rowset.RowSet; diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongRollupUniqueOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongRollupUniqueOperator.java index a8ad50b5a79..5f7b68f7898 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongRollupUniqueOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongRollupUniqueOperator.java @@ -10,7 +10,6 @@ import io.deephaven.engine.table.impl.sources.BoxedColumnSource; import io.deephaven.time.DateTime; -import io.deephaven.engine.table.impl.by.ssmcountdistinct.DateTimeSsmSourceWrapper; import io.deephaven.engine.rowset.WritableRowSet; import io.deephaven.engine.rowset.RowSet; diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/BoxedColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/BoxedColumnSource.java index fda425ba7e3..25523020492 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/BoxedColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/BoxedColumnSource.java @@ -125,38 +125,6 @@ void transformChunk(@NotNull final Chunk source, } } - public static final class OfDateTime extends BoxedColumnSource { - - public OfDateTime(@NotNull final ColumnSource originalSource) { - super(DateTime.class, originalSource); - Assert.eq(originalSource.getType(), "originalSource.getType()", long.class); - } - - @Override - public DateTime get(final long rowKey) { - return DateTimeUtils.epochNanosToDateTime(originalSource.getLong(rowKey)); - } - - @Override - public DateTime getPrev(final long rowKey) { - return DateTimeUtils.epochNanosToDateTime(originalSource.getPrevLong(rowKey)); - } - - @Override - void transformChunk(@NotNull final Chunk source, - @NotNull final WritableChunk destination) { - final LongChunk typedSource = source.asLongChunk(); - final WritableObjectChunk typedDestination = - destination.asWritableObjectChunk(); - - final int sourceSize = typedSource.size(); - for (int pi = 0; pi < sourceSize; ++pi) { - typedDestination.set(pi, DateTimeUtils.epochNanosToDateTime(typedSource.get(pi))); - } - typedDestination.setSize(sourceSize); - } - } - public static final class OfInstant extends BoxedColumnSource { public OfInstant(@NotNull final ColumnSource originalSource) { diff --git a/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/ArrowWrapperTools.java b/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/ArrowWrapperTools.java index 696e0db4952..50f529626ae 100644 --- a/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/ArrowWrapperTools.java +++ b/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/ArrowWrapperTools.java @@ -10,7 +10,7 @@ import io.deephaven.engine.util.reference.CleanupReferenceProcessorInstance; import io.deephaven.extensions.arrow.sources.ArrowByteColumnSource; import io.deephaven.extensions.arrow.sources.ArrowCharColumnSource; -import io.deephaven.extensions.arrow.sources.ArrowDateTimeColumnSource; +import io.deephaven.extensions.arrow.sources.ArrowInstantColumnSource; import io.deephaven.extensions.arrow.sources.ArrowIntColumnSource; import io.deephaven.extensions.arrow.sources.ArrowLocalTimeColumnSource; import io.deephaven.extensions.arrow.sources.ArrowLongColumnSource; @@ -100,7 +100,7 @@ *
  • {@link ArrowObjectColumnSource ArrowObjectColumnSource<BigInteger>} - uses {@link UInt8Vector} under the * hood, returns BigInteger
  • *
  • {@link ArrowLocalTimeColumnSource} - uses {@link TimeMilliVector} under the hood, returns LocalTime
  • - *
  • {@link ArrowDateTimeColumnSource} - uses {@link TimeStampVector} under the hood, returns DateTime
  • + *
  • {@link ArrowInstantColumnSource} - uses {@link TimeStampVector} under the hood, returns DateTime
  • *
  • {@link ArrowStringColumnSource} - uses {@link VarCharVector} under the hood, returns String
  • *
  • {@link ArrowObjectColumnSource ArrowObjectColumnSource<byte[]>} - uses {@link FixedSizeBinaryVector} under * the hood, returns byte[]
  • @@ -249,7 +249,7 @@ private static AbstractColumnSource generateColumnSource( case TIMESTAMPNANOTZ: case TIMESTAMPSEC: case TIMESTAMPSECTZ: - return new ArrowDateTimeColumnSource(highBit, field, arrowHelper); + return new ArrowInstantColumnSource(highBit, field, arrowHelper); case NULL: case STRUCT: case DATEDAY: diff --git a/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowDateTimeColumnSource.java b/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowInstantColumnSource.java similarity index 86% rename from extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowDateTimeColumnSource.java rename to extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowInstantColumnSource.java index 021dae5b12b..224215bf1d0 100644 --- a/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowDateTimeColumnSource.java +++ b/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowInstantColumnSource.java @@ -24,9 +24,9 @@ * Arrow Vector: {@link TimeStampVector} * Deephaven Type: io.deephaven.time.DateTime */ -public class ArrowDateTimeColumnSource extends AbstractArrowColumnSource implements ImmutableColumnSourceGetDefaults.ForObject { - public ArrowDateTimeColumnSource(final int highBit, final @NotNull Field field, - final ArrowWrapperTools. @NotNull ArrowTableContext arrowTableContext) { +public class ArrowInstantColumnSource extends AbstractArrowColumnSource implements ImmutableColumnSourceGetDefaults.ForObject { + public ArrowInstantColumnSource(final int highBit, final @NotNull Field field, + final ArrowWrapperTools. @NotNull ArrowTableContext arrowTableContext) { super(DateTime.class, highBit, field, arrowTableContext); } diff --git a/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSourceTests.java b/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSourceTests.java index 05d4d9f47dd..e90ec4f80b5 100644 --- a/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSourceTests.java +++ b/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSourceTests.java @@ -113,8 +113,8 @@ public static void main(String[] args) { "21, 59, 29, 26000000"))); generateTests("ArrowTimestampVectorTest", "/timestamp_vector.arrow", "get", "WritableObjectChunk", - null, ClassName.get("io.deephaven.time", "DateTime"), null, expectedRows, - addWrapper("new DateTime(%s)", Arrays.asList( + null, ClassName.get("java.time", "Instant"), null, expectedRows, + addWrapper("io.deephaven.time.DateTimeUtils.epochNanosToInstant(%s)", Arrays.asList( "1670443801", "1570443532", null, "0", "170443801", "-72309740"))); generateTests("ArrowDecimalVectorTest", "/decimal_vector.arrow", "get", "WritableObjectChunk", diff --git a/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSources.java b/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSources.java index 06820ecf010..62ddcd2ebec 100644 --- a/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSources.java +++ b/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSources.java @@ -120,13 +120,13 @@ public static void main(String[] args) { .addStatement("return localDateTime != null ? localDateTime.toLocalTime() : null") .build())); - final ClassName dateTime = ClassName.get("io.deephaven.time", "DateTime"); - generateArrowColumnSource("ArrowDateTimeColumnSource", dateTime, dateTime, TimeStampVector.class, + final ClassName instant = ClassName.get("java.time", "Instant"); + generateArrowColumnSource("ArrowInstantColumnSource", instant, instant, TimeStampVector.class, "get", "ForObject", WritableObjectChunk.class, List.of( - preparePrivateExtractMethod(dateTime, TimeStampVector.class) + preparePrivateExtractMethod(instant, TimeStampVector.class) .addStatement( "return vector.isSet(posInBlock) == 0 ? null : new $T(vector.get(posInBlock))", - dateTime) + instant) .build())); } diff --git a/replication/static/src/main/java/io/deephaven/replicators/ReplicateOperators.java b/replication/static/src/main/java/io/deephaven/replicators/ReplicateOperators.java index 890e147f736..d79d1a3498f 100644 --- a/replication/static/src/main/java/io/deephaven/replicators/ReplicateOperators.java +++ b/replication/static/src/main/java/io/deephaven/replicators/ReplicateOperators.java @@ -67,10 +67,7 @@ private static void replicateObjectAddOnlyMinMax() throws IOException { } private static final String resultInitReplacementForLong = "" + - " if (type == DateTime.class) {\n" + - " actualResult = new DateTimeArraySource();\n" + - " resultColumn = ((NanosBasedTimeArraySource)actualResult).toEpochNano();\n" + - " } else if (type == Instant.class) {\n" + + " if (type == Instant.class) {\n" + " actualResult = new InstantArraySource();\n" + " resultColumn = ((NanosBasedTimeArraySource)actualResult).toEpochNano();\n" + " } else {\n" + @@ -89,11 +86,7 @@ private static void fixupLongAddOnlyMinMax() throws IOException { Collections.singletonList(" Class type,")); lines = ReplicationUtils.addImport(lines, "import java.time.Instant;", - "import io.deephaven.time.DateTime;", - "import io.deephaven.engine.table.impl.sources.ArrayBackedColumnSource;", - "import io.deephaven.engine.table.impl.sources.DateTimeArraySource;", "import io.deephaven.engine.table.impl.sources.InstantArraySource;", - "import io.deephaven.engine.table.impl.sources.LongArraySource;", "import io.deephaven.engine.table.impl.sources.NanosBasedTimeArraySource;"); lines = ReplicationUtils.replaceRegion(lines, "resultColumn initialization", Collections.singletonList(resultInitReplacementForLong)); diff --git a/replication/static/src/main/java/io/deephaven/replicators/ReplicateRegionsAndRegionedSources.java b/replication/static/src/main/java/io/deephaven/replicators/ReplicateRegionsAndRegionedSources.java index cd9586a359b..1f79499c77d 100644 --- a/replication/static/src/main/java/io/deephaven/replicators/ReplicateRegionsAndRegionedSources.java +++ b/replication/static/src/main/java/io/deephaven/replicators/ReplicateRegionsAndRegionedSources.java @@ -23,8 +23,8 @@ import static io.deephaven.replication.ReplicationUtils.*; /** - * Code generation for basic {@link RegionedColumnSource} implementations as well as well as the primary region - * interfaces for some primitive types. + * Code generation for basic RegionedColumnSource implementations as well as well as the primary region interfaces for + * some primitive types. */ public class ReplicateRegionsAndRegionedSources { @@ -63,7 +63,7 @@ private static void fixupByte(String path) throws IOException { private static void fixupLong(String path) throws IOException { final File file = new File(path); List lines = FileUtils.readLines(file, Charset.defaultCharset()); - lines = addImport(lines, "import io.deephaven.time.DateTime;", + lines = addImport(lines, "import io.deephaven.engine.table.ColumnSource;", "import io.deephaven.engine.table.impl.sources.LocalDateWrapperSource;", "import io.deephaven.engine.table.impl.sources.LocalTimeWrapperSource;", @@ -77,8 +77,7 @@ private static void fixupLong(String path) throws IOException { " return true;", " }", "", - " return alternateDataType == Instant.class ||", - " alternateDataType == DateTime.class;", + " return alternateDataType == Instant.class;", " }", "", " @SuppressWarnings(\"unchecked\")", @@ -86,8 +85,6 @@ private static void fixupLong(String path) throws IOException { " protected ColumnSource doReinterpret(@NotNull Class alternateDataType) {", " if(alternateDataType == Instant.class) {", " return (ColumnSource) toInstant();", - " } else if(alternateDataType == DateTime.class) {", - " return (ColumnSource) toDateTime();", " }", "", " return super.doReinterpret(alternateDataType);", @@ -103,11 +100,6 @@ private static void fixupLong(String path) throws IOException { " return new RegionedColumnSourceInstant((RegionedColumnSourceLong) this);", " }", "", - " public ColumnSource toDateTime() {", - " //noinspection unchecked", - " return new RegionedColumnSourceDateTime((RegionedColumnSourceLong) this);", - " }", - "", " @Override", " public ColumnSource toZonedDateTime(ZoneId zone) {", " //noinspection unchecked", diff --git a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java index 50f38ead91d..22bb90c8ab4 100644 --- a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java +++ b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java @@ -9,6 +9,7 @@ import java.io.File; import java.io.IOException; import java.nio.charset.Charset; +import java.time.Instant; import java.util.Arrays; import java.util.Collections; import java.util.List; @@ -17,12 +18,11 @@ import static io.deephaven.replication.ReplicatePrimitiveCode.*; import static io.deephaven.replication.ReplicationUtils.*; -// public class ReplicateSegmentedSortedMultiset { public static void main(String[] args) throws IOException { charToAllButBooleanAndLong( "engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/CharSegmentedSortedMultiset.java"); - insertDateTimeExtensions(charToLong( + insertInstantExtensions(charToLong( "engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/CharSegmentedSortedMultiset.java")); String objectSsm = charToObject( @@ -72,7 +72,7 @@ public static void main(String[] args) throws IOException { fixupLongKernelOperator( charToLong( "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/CharChunkedDistinctOperator.java"), - " externalResult = new DateTimeSsmSourceWrapper(internalResult);"); + " externalResult = new InstantSsmSourceWrapper(internalResult);"); fixupObjectKernelOperator( charToObject( "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/CharChunkedDistinctOperator.java"), @@ -83,7 +83,7 @@ public static void main(String[] args) throws IOException { fixupLongKernelOperator( charToLong( "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/CharChunkedUniqueOperator.java"), - " externalResult = new BoxedColumnSource.OfDateTime(internalResult);"); + " externalResult = new BoxedColumnSource.OfInstant(internalResult);"); fixupObjectKernelOperator( charToObject( "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/CharChunkedUniqueOperator.java"), @@ -92,7 +92,7 @@ public static void main(String[] args) throws IOException { charToAllButBoolean( "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/count/CharRollupCountDistinctOperator.java"); fixupObjectKernelOperator(charToObject( - "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/count/CharRollupCountDistinctOperator.java"), + "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/count/CharRollupCountDistinctOperator.java"), "ssms"); charToAllButBooleanAndLong( @@ -100,7 +100,7 @@ public static void main(String[] args) throws IOException { fixupLongKernelOperator( charToLong( "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/CharRollupDistinctOperator.java"), - " externalResult = new DateTimeSsmSourceWrapper(internalResult);"); + " externalResult = new InstantSsmSourceWrapper(internalResult);"); fixupObjectKernelOperator( charToObject( "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/CharRollupDistinctOperator.java"), @@ -111,7 +111,7 @@ public static void main(String[] args) throws IOException { fixupLongKernelOperator( charToLong( "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/CharRollupUniqueOperator.java"), - " externalResult = new BoxedColumnSource.OfDateTime(internalResult);"); + " externalResult = new BoxedColumnSource.OfInstant(internalResult);"); fixupObjectKernelOperator( charToObject( "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/CharRollupUniqueOperator.java"), @@ -123,13 +123,13 @@ private static void fixupLongKernelOperator(String longPath, String externalResu List lines = FileUtils.readLines(longFile, Charset.defaultCharset()); lines = addImport(lines, "import io.deephaven.engine.table.impl.sources.BoxedColumnSource;", - "import io.deephaven.time.DateTime;", - "import io.deephaven.engine.table.impl.by.ssmcountdistinct.DateTimeSsmSourceWrapper;"); + "import io.deephaven.engine.table.impl.by.ssmcountdistinct.InstantSsmSourceWrapper;"); + lines = addImport(lines, Instant.class); lines = replaceRegion(lines, "Constructor", indent(Collections.singletonList("Class type,"), 12)); lines = replaceRegion(lines, "ResultAssignment", indent(Arrays.asList( - "if(type == DateTime.class) {", + "if(type == Instant.class) {", externalResultSetter, "} else {", " externalResult = internalResult;", @@ -232,26 +232,26 @@ private static List fixupObjectCompare(List lines) { " }")); } - private static void insertDateTimeExtensions(String longPath) throws IOException { + private static void insertInstantExtensions(String longPath) throws IOException { final File longFile = new File(longPath); List lines = FileUtils.readLines(longFile, Charset.defaultCharset()); lines = addImport(lines, - "import io.deephaven.time.DateTime;", "import io.deephaven.vector.ObjectVectorDirect;", "import io.deephaven.time.DateTimeUtils;"); + lines = addImport(lines, Instant.class); lines = insertRegion(lines, "Extensions", Arrays.asList( - " public DateTime getAsDate(long i) {", - " return DateTimeUtils.nanosToTime(get(i));", + " public Instant getAsInstant(long i) {", + " return DateTimeUtils.epochNanosToInstant(get(i));", " }", "", - " public ObjectVector subArrayAsDate(long fromIndexInclusive, long toIndexExclusive) {", - " return new ObjectVectorDirect<>(keyArrayAsDate(fromIndexInclusive, toIndexExclusive));", + " public ObjectVector subArrayAsInstants(long fromIndexInclusive, long toIndexExclusive) {", + " return new ObjectVectorDirect<>(keyArrayAsInstants(fromIndexInclusive, toIndexExclusive));", " }", "", - " public ObjectVector subArrayByPositionsAsDates(long[] positions) {", - " final DateTime[] keyArray = new DateTime[positions.length];", + " public ObjectVector subArrayByPositionsAsInstants(long[] positions) {", + " final Instant[] keyArray = new Instant[positions.length];", " int writePos = 0;", " for (long position : positions) {", " keyArray[writePos++] = getAsDate(position);", @@ -260,30 +260,30 @@ private static void insertDateTimeExtensions(String longPath) throws IOException " return new ObjectVectorDirect<>(keyArray);", " }", "", - " public DateTime[] toDateArray() {", - " return keyArrayAsDate();", + " public Instant[] toInstantArray() {", + " return keyArrayAsInstants();", " }", "", - " public Chunk toDateChunk() {", - " return ObjectChunk.chunkWrap(toDateArray());", + " public Chunk toInstantChunk() {", + " return ObjectChunk.chunkWrap(toInstantArray());", " }", "", - " public void fillDateChunk(WritableChunk destChunk) {", + " public void fillInstantChunk(WritableChunk destChunk) {", " if(isEmpty()) {", " return ;", " }", "", " //noinspection unchecked", - " WritableObjectChunk writable = destChunk.asWritableObjectChunk();", + " WritableObjectChunk writable = destChunk.asWritableObjectChunk();", " if (leafCount == 1) {", " for(int ii = 0; ii < size(); ii++) {", - " writable.set(ii, DateTimeUtils.nanosToTime(directoryValues[ii]));", + " writable.set(ii, DateTimeUtils.epochNanosToInstant(directoryValues[ii]));", " }", " } else if (leafCount > 0) {", " int offset = 0;", " for (int li = 0; li < leafCount; ++li) {", " for(int jj = 0; jj < leafSizes[li]; jj++) {", - " writable.set(jj + offset, DateTimeUtils.nanosToTime(leafValues[li][jj]));", + " writable.set(jj + offset, DateTimeUtils.epochNanosToInstant(leafValues[li][jj]));", " }", " offset += leafSizes[li];", " }", @@ -291,12 +291,12 @@ private static void insertDateTimeExtensions(String longPath) throws IOException " }", "", "", - " public ObjectVector getDirectAsDate() {", - " return new ObjectVectorDirect<>(keyArrayAsDate());", + " public ObjectVector getDirectAsInstants() {", + " return new ObjectVectorDirect<>(keyArrayAsInstants());", " }", "", - " private DateTime[] keyArrayAsDate() {", - " return keyArrayAsDate(0, size()-1);", + " private Instant[] keyArrayAsInstants() {", + " return keyArrayAsInstants(0, size()-1);", " }", "", " /**", @@ -305,16 +305,16 @@ private static void insertDateTimeExtensions(String longPath) throws IOException " * @param last", " * @return", " */", - " private DateTime[] keyArrayAsDate(long first, long last) {", + " private Instant[] keyArrayAsInstants(long first, long last) {", " if(isEmpty()) {", - " return DateTimeUtils.ZERO_LENGTH_DATETIME_ARRAY;", + " return DateTimeUtils.ZERO_LENGTH_INSTANT_ARRAY;", " }", "", " final int totalSize = (int)(last - first + 1);", - " final DateTime[] keyArray = new DateTime[intSize()];", + " final Instant[] keyArray = new Instant[intSize()];", " if (leafCount == 1) {", " for(int ii = 0; ii < totalSize; ii++) {", - " keyArray[ii] = DateTimeUtils.nanosToTime(directoryValues[ii + (int)first]);", + " keyArray[ii] = DateTimeUtils.epochNanosToInstant(directoryValues[ii + (int)first]);", " }", " } else if (leafCount > 0) {", " int offset = 0;", @@ -326,7 +326,7 @@ private static void insertDateTimeExtensions(String longPath) throws IOException " if(toSkip < leafSizes[li]) {", " final int nToCopy = Math.min(leafSizes[li] - toSkip, totalSize);", " for(int jj = 0; jj < nToCopy; jj++) {", - " keyArray[jj] = DateTimeUtils.nanosToTime(leafValues[li][jj + toSkip]);", + " keyArray[jj] = DateTimeUtils.epochNanosToInstant(leafValues[li][jj + toSkip]);", " }", " copied = nToCopy;", " offset = copied;", @@ -337,7 +337,7 @@ private static void insertDateTimeExtensions(String longPath) throws IOException " } else {", " int nToCopy = Math.min(leafSizes[li], totalSize - copied);", " for(int jj = 0; jj < nToCopy; jj++) {", - " keyArray[jj + offset] = DateTimeUtils.nanosToTime(leafValues[li][jj]);", + " keyArray[jj + offset] = DateTimeUtils.epochNanosToInstant(leafValues[li][jj]);", " }", " offset += leafSizes[li];", " copied += nToCopy;", @@ -347,11 +347,11 @@ private static void insertDateTimeExtensions(String longPath) throws IOException " return keyArray;", " }", "", - " public String toDateString() {", + " public String toInstantString() {", " final StringBuilder arrAsString = new StringBuilder(\"[\");", " if (leafCount == 1) {", " for(int ii = 0; ii < intSize(); ii++) {", - " arrAsString.append(DateTimeUtils.nanosToTime(directoryValues[ii])).append(\", \");", + " arrAsString.append(DateTimeUtils.epochNanosToInstant(directoryValues[ii])).append(\", \");", " }", " ", " arrAsString.replace(arrAsString.length() - 2, arrAsString.length(), \"]\");", @@ -359,7 +359,7 @@ private static void insertDateTimeExtensions(String longPath) throws IOException " } else if (leafCount > 0) {", " for (int li = 0; li < leafCount; ++li) {", " for(int ai = 0; ai < leafSizes[li]; ai++) {", - " arrAsString.append(DateTimeUtils.nanosToTime(leafValues[li][ai])).append(\", \");", + " arrAsString.append(DateTimeUtils.epochNanosToInstant(leafValues[li][ai])).append(\", \");", " }", " }", "", diff --git a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java index 65ea6715043..9bd6a0583ae 100644 --- a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java +++ b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java @@ -111,7 +111,6 @@ private static void replicateObjectSizedChunk() throws IOException { private static void fixupImmutableLongArraySource(String longImmutableSource) throws IOException { final File resultClassJavaFile = new File(longImmutableSource); List lines = FileUtils.readLines(resultClassJavaFile, Charset.defaultCharset()); - lines = addImport(lines, "import io.deephaven.time.DateTime;"); lines = addImport(lines, "import io.deephaven.engine.table.ColumnSource;"); lines = addImport(lines, LongFunction.class, ToLongFunction.class, Instant.class, ZonedDateTime.class, LocalDate.class, LocalTime.class, Require.class, ZoneId.class); @@ -135,7 +134,7 @@ private static void fixupImmutableLongArraySource(String longImmutableSource) th lines = replaceRegion(lines, "reinterpretation", Arrays.asList( " @Override", " public boolean allowsReinterpret(@NotNull final Class alternateDataType) {", - " return alternateDataType == long.class || alternateDataType == Instant.class || alternateDataType == DateTime.class;", + " return alternateDataType == long.class || alternateDataType == Instant.class;", " }", "", " @SuppressWarnings(\"unchecked\")", @@ -143,8 +142,6 @@ private static void fixupImmutableLongArraySource(String longImmutableSource) th " protected ColumnSource doReinterpret(@NotNull Class alternateDataType) {", " if (alternateDataType == this.getType()) {", " return (ColumnSource) this;", - " } else if(alternateDataType == DateTime.class) {", - " return (ColumnSource) toDateTime();", " } else if (alternateDataType == Instant.class) {", " return (ColumnSource) toInstant();", " }", @@ -173,11 +170,6 @@ private static void fixupImmutableLongArraySource(String longImmutableSource) th " }", "", " @Override", - " public ColumnSource toDateTime() {", - " return new ImmutableDateTimeArraySource(this);", - " }", - "", - " @Override", " public ColumnSource toInstant() {", " return new ImmutableInstantArraySource(this);", " }", @@ -192,7 +184,6 @@ private static void fixupImmutableLongArraySource(String longImmutableSource) th private static void fixupImmutableConstantLongSource(String longImmutableSource) throws IOException { final File resultClassJavaFile = new File(longImmutableSource); List lines = FileUtils.readLines(resultClassJavaFile, Charset.defaultCharset()); - lines = addImport(lines, "import io.deephaven.time.DateTime;"); lines = addImport(lines, "import io.deephaven.engine.table.ColumnSource;"); lines = addImport(lines, Instant.class, ZonedDateTime.class, LocalDate.class, LocalTime.class, Require.class, ZoneId.class); @@ -201,7 +192,7 @@ private static void fixupImmutableConstantLongSource(String longImmutableSource) lines = replaceRegion(lines, "reinterpretation", Arrays.asList( " @Override", " public boolean allowsReinterpret(@NotNull final Class alternateDataType) {", - " return alternateDataType == long.class || alternateDataType == Instant.class || alternateDataType == DateTime.class;", + " return alternateDataType == long.class || alternateDataType == Instant.class;", " }", "", " @SuppressWarnings(\"unchecked\")", @@ -209,8 +200,6 @@ private static void fixupImmutableConstantLongSource(String longImmutableSource) " protected ColumnSource doReinterpret(@NotNull Class alternateDataType) {", " if (alternateDataType == this.getType()) {", " return (ColumnSource) this;", - " } else if(alternateDataType == DateTime.class) {", - " return (ColumnSource) toDateTime();", " } else if (alternateDataType == Instant.class) {", " return (ColumnSource) toInstant();", " }", @@ -239,11 +228,6 @@ private static void fixupImmutableConstantLongSource(String longImmutableSource) " }", "", " @Override", - " public ColumnSource toDateTime() {", - " return new ImmutableConstantDateTimeSource(this);", - " }", - "", - " @Override", " public ColumnSource toInstant() {", " return new ImmutableConstantInstantSource(this);", " }", @@ -258,7 +242,6 @@ private static void fixupImmutableConstantLongSource(String longImmutableSource) private static void fixupImmutable2DLongArraySource(String longImmutableSource) throws IOException { final File resultClassJavaFile = new File(longImmutableSource); List lines = FileUtils.readLines(resultClassJavaFile, Charset.defaultCharset()); - lines = addImport(lines, "import io.deephaven.time.DateTime;"); lines = addImport(lines, "import io.deephaven.engine.table.ColumnSource;"); lines = addImport(lines, LongFunction.class, ToLongFunction.class, Instant.class, ZonedDateTime.class, LocalDate.class, LocalTime.class, Require.class, ZoneId.class); @@ -282,7 +265,7 @@ private static void fixupImmutable2DLongArraySource(String longImmutableSource) lines = replaceRegion(lines, "reinterpretation", Arrays.asList( " @Override", " public boolean allowsReinterpret(@NotNull final Class alternateDataType) {", - " return alternateDataType == long.class || alternateDataType == Instant.class || alternateDataType == DateTime.class;", + " return alternateDataType == long.class || alternateDataType == Instant.class;", " }", "", " @SuppressWarnings(\"unchecked\")", @@ -290,8 +273,6 @@ private static void fixupImmutable2DLongArraySource(String longImmutableSource) " protected ColumnSource doReinterpret(@NotNull Class alternateDataType) {", " if (alternateDataType == this.getType()) {", " return (ColumnSource) this;", - " } else if(alternateDataType == DateTime.class) {", - " return (ColumnSource) toDateTime();", " } else if (alternateDataType == Instant.class) {", " return (ColumnSource) toInstant();", " }", @@ -320,11 +301,6 @@ private static void fixupImmutable2DLongArraySource(String longImmutableSource) " }", "", " @Override", - " public ColumnSource toDateTime() {", - " return new Immutable2DDateTimeArraySource(this);", - " }", - "", - " @Override", " public ColumnSource toInstant() {", " return new Immutable2DInstantArraySource(this);", " }", @@ -340,7 +316,8 @@ private static void fixupByteReinterpret(String byteImmutableSource) throws IOEx final File resultClassJavaFile = new File(byteImmutableSource); List lines = FileUtils.readLines(resultClassJavaFile, Charset.defaultCharset()); lines = addImport(lines, "import io.deephaven.engine.table.ColumnSource;"); - lines = replaceRegion(lines, "reinterpretation", Arrays.asList(" @Override", + lines = replaceRegion(lines, "reinterpretation", Arrays.asList( + " @Override", " public boolean allowsReinterpret(", " @NotNull final Class alternateDataType) {", " return alternateDataType == Boolean.class;", @@ -886,7 +863,6 @@ private static void replicateLongArraySource() throws IOException { final File classFile = new File(className); List lines = FileUtils.readLines(classFile, Charset.defaultCharset()); lines = addImport(lines, - "import io.deephaven.time.DateTime;", "import io.deephaven.engine.table.impl.util.copy.CopyKernel;"); lines = addImport(lines, LongFunction.class, ToLongFunction.class, Instant.class, ZonedDateTime.class, LocalDate.class, LocalTime.class, Require.class, ZoneId.class); @@ -932,7 +908,7 @@ private static void replicateLongArraySource() throws IOException { lines = replaceRegion(lines, "reinterpretation", Arrays.asList( " @Override", " public boolean allowsReinterpret(@NotNull final Class alternateDataType) {", - " return alternateDataType == long.class || alternateDataType == Instant.class || alternateDataType == DateTime.class;", + " return alternateDataType == long.class || alternateDataType == Instant.class;", " }", "", " @SuppressWarnings(\"unchecked\")", @@ -940,8 +916,6 @@ private static void replicateLongArraySource() throws IOException { " protected ColumnSource doReinterpret(@NotNull Class alternateDataType) {", " if (alternateDataType == this.getType()) {", " return (ColumnSource) this;", - " } else if(alternateDataType == DateTime.class) {", - " return (ColumnSource) toDateTime();", " } else if (alternateDataType == Instant.class) {", " return (ColumnSource) toInstant();", " }", @@ -970,11 +944,6 @@ private static void replicateLongArraySource() throws IOException { " }", "", " @Override", - " public ColumnSource toDateTime() {", - " return new DateTimeArraySource(this);", - " }", - "", - " @Override", " public ColumnSource toInstant() {", " return new InstantArraySource(this);", " }", @@ -991,7 +960,6 @@ private static void replicateLongSparseArraySource() throws IOException { "engine/table/src/main/java/io/deephaven/engine/table/impl/sources/CharacterSparseArraySource.java"); final File classFile = new File(className); List lines = FileUtils.readLines(classFile, Charset.defaultCharset()); - lines = addImport(lines, "import io.deephaven.time.DateTime;"); lines = addImport(lines, LongFunction.class, ToLongFunction.class, Instant.class, ZonedDateTime.class, LocalDate.class, LocalTime.class, Require.class, ZoneId.class); lines = standardCleanups(lines); @@ -1014,7 +982,7 @@ private static void replicateLongSparseArraySource() throws IOException { lines = replaceRegion(lines, "reinterpretation", Arrays.asList( " @Override", " public boolean allowsReinterpret(@NotNull final Class alternateDataType) {", - " return alternateDataType == long.class || alternateDataType == Instant.class || alternateDataType == DateTime.class;", + " return alternateDataType == long.class || alternateDataType == Instant.class", " }", "", " @SuppressWarnings(\"unchecked\")", @@ -1022,8 +990,6 @@ private static void replicateLongSparseArraySource() throws IOException { " protected ColumnSource doReinterpret(@NotNull Class alternateDataType) {", " if (alternateDataType == this.getType()) {", " return (ColumnSource) this;", - " } else if(alternateDataType == DateTime.class) {", - " return (ColumnSource) toDateTime();", " } else if (alternateDataType == Instant.class) {", " return (ColumnSource) toInstant();", " }", @@ -1052,11 +1018,6 @@ private static void replicateLongSparseArraySource() throws IOException { " }", "", " @Override", - " public ColumnSource toDateTime() {", - " return new DateTimeSparseArraySource(this);", - " }", - "", - " @Override", " public ColumnSource toInstant() {", " return new InstantSparseArraySource(this);", " }", diff --git a/replication/static/src/main/java/io/deephaven/replicators/ReplicateUpdateBy.java b/replication/static/src/main/java/io/deephaven/replicators/ReplicateUpdateBy.java index 1d3713ad5e1..26b57121666 100644 --- a/replication/static/src/main/java/io/deephaven/replicators/ReplicateUpdateBy.java +++ b/replication/static/src/main/java/io/deephaven/replicators/ReplicateUpdateBy.java @@ -8,8 +8,10 @@ import java.io.File; import java.io.IOException; import java.nio.charset.Charset; +import java.time.Instant; import java.util.Collections; import java.util.List; +import java.util.Map; import static io.deephaven.replication.ReplicationUtils.*; @@ -393,12 +395,10 @@ private static void fixupStandardObject(String objectResult, final String classN private static void augmentLongWithReinterps(final String longResult) throws IOException { final File objectFile = new File(longResult); List lines = FileUtils.readLines(objectFile, Charset.defaultCharset()); - lines = addImport(lines, "import io.deephaven.engine.table.ColumnSource;", - "import java.util.Map;", - "import java.util.Collections;", - "import io.deephaven.time.DateTime;", - "import java.time.Instant;", + lines = addImport(lines, + "import io.deephaven.engine.table.ColumnSource;", "import io.deephaven.engine.table.impl.sources.ReinterpretUtils;"); + lines = addImport(lines, Instant.class, Map.class, Collections.class); lines = replaceRegion(lines, "extra-fields", Collections.singletonList(" private final Class type;")); lines = replaceRegion(lines, "extra-constructor-args", @@ -411,8 +411,8 @@ private static void augmentLongWithReinterps(final String longResult) throws IOE " @Override\n" + " public Map> getOutputColumns() {\n" + " final ColumnSource actualOutput;\n" + - " if(type == DateTime.class) {\n" + - " actualOutput = ReinterpretUtils.longToDateTimeSource(outputSource);\n" + + " if(type == Instant.class) {\n" + + " actualOutput = ReinterpretUtils.longToInstantSource(outputSource);\n" + " } else {\n" + " actualOutput = outputSource;\n" + " }\n" + diff --git a/replication/static/src/main/java/io/deephaven/replicators/TupleSourceCodeGenerator.java b/replication/static/src/main/java/io/deephaven/replicators/TupleSourceCodeGenerator.java index e54a037db93..c271a6f6a0a 100644 --- a/replication/static/src/main/java/io/deephaven/replicators/TupleSourceCodeGenerator.java +++ b/replication/static/src/main/java/io/deephaven/replicators/TupleSourceCodeGenerator.java @@ -52,18 +52,18 @@ public class TupleSourceCodeGenerator { enum ColumnSourceType { // @formatter:off - BYTE( "Byte", "byte", null, null, false, CS + ".getByte(" + RK + ")" , CS + ".getPrevByte(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Byte)" + VAL, "io.deephaven.util.type.TypeUtils" ), - SHORT( "Short", "short", null, null, false, CS + ".getShort(" + RK + ")" , CS + ".getPrevShort(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Short)" + VAL, "io.deephaven.util.type.TypeUtils" ), - INT( "Integer", "int", null, null, false, CS + ".getInt(" + RK + ")" , CS + ".getPrevInt(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Integer)" + VAL, "io.deephaven.util.type.TypeUtils" ), - LONG( "Long", "long", null, null, false, CS + ".getLong(" + RK + ")" , CS + ".getPrevLong(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Long)" + VAL, "io.deephaven.util.type.TypeUtils" ), - FLOAT( "Float", "float", null, null, false, CS + ".getFloat(" + RK + ")" , CS + ".getPrevFloat(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Float)" + VAL, "io.deephaven.util.type.TypeUtils" ), - DOUBLE( "Double", "double", null, null, false, CS + ".getDouble(" + RK + ")" , CS + ".getPrevDouble(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Double)" + VAL, "io.deephaven.util.type.TypeUtils" ), - CHAR( "Character", "char", null, null, false, CS + ".getChar(" + RK + ")" , CS + ".getPrevChar(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Character)" + VAL, "io.deephaven.util.type.TypeUtils" ), - OBJECT( "Object", "java.lang.Object", null, null, false, CS + ".get(" + RK + ")" , CS + ".getPrev(" + RK + ")" , VAL , VAL , VAL ), - R_BOOLEAN( "ReinterpretedBoolean", "byte", null, null, true, CS + ".getByte(" + RK + ")" , CS + ".getPrevByte(" + RK + ")" , "BooleanUtils.byteAsBoolean(" + VAL + ')', "BooleanUtils.booleanAsByte(" + VAL + ')', "(Boolean)" + VAL, "io.deephaven.util.type.TypeUtils", "io.deephaven.util.BooleanUtils" ), - BOOLEAN( "Boolean", "java.lang.Boolean", "byte", R_BOOLEAN, false, "BooleanUtils.booleanAsByte(" + CS + ".getBoolean(" + RK + "))", "BooleanUtils.booleanAsByte(" + CS + ".getPrevBoolean(" + RK + "))", "BooleanUtils.byteAsBoolean(" + VAL + ')', "BooleanUtils.booleanAsByte(" + VAL + ')', "(Boolean)" + VAL, "io.deephaven.util.BooleanUtils" ), - R_DATETIME("ReinterpretedDateTime", "long", null, null, true, CS + ".getLong(" + RK + ")" , CS + ".getPrevLong(" + RK + ")" , "DateTimeUtils.nanosToTime(" + VAL + ')', "DateTimeUtils.nanos(" + VAL + ')', "(DateTime)" + VAL, "io.deephaven.util.type.TypeUtils", "io.deephaven.time.DateTime", "io.deephaven.time.DateTimeUtils"), - DATETIME( "DateTime", "io.deephaven.time.DateTime", "long", R_DATETIME, false, "DateTimeUtils.nanos(" + CS + ".get(" + RK + "))", "DateTimeUtils.nanos(" + CS + ".getPrev(" + RK + "))", "DateTimeUtils.nanosToTime(" + VAL + ')', "DateTimeUtils.nanos(" + VAL + ')', "(DateTime)" + VAL, "io.deephaven.time.DateTime","io.deephaven.time.DateTimeUtils" ), + BYTE( "Byte", "byte", null, null, false, CS + ".getByte(" + RK + ")" , CS + ".getPrevByte(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Byte)" + VAL, "io.deephaven.util.type.TypeUtils" ), + SHORT( "Short", "short", null, null, false, CS + ".getShort(" + RK + ")" , CS + ".getPrevShort(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Short)" + VAL, "io.deephaven.util.type.TypeUtils" ), + INT( "Integer", "int", null, null, false, CS + ".getInt(" + RK + ")" , CS + ".getPrevInt(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Integer)" + VAL, "io.deephaven.util.type.TypeUtils" ), + LONG( "Long", "long", null, null, false, CS + ".getLong(" + RK + ")" , CS + ".getPrevLong(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Long)" + VAL, "io.deephaven.util.type.TypeUtils" ), + FLOAT( "Float", "float", null, null, false, CS + ".getFloat(" + RK + ")" , CS + ".getPrevFloat(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Float)" + VAL, "io.deephaven.util.type.TypeUtils" ), + DOUBLE( "Double", "double", null, null, false, CS + ".getDouble(" + RK + ")" , CS + ".getPrevDouble(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Double)" + VAL, "io.deephaven.util.type.TypeUtils" ), + CHAR( "Character", "char", null, null, false, CS + ".getChar(" + RK + ")" , CS + ".getPrevChar(" + RK + ")" , "TypeUtils.box(" + VAL + ')', "TypeUtils.unbox(" + VAL + ')', "(Character)" + VAL, "io.deephaven.util.type.TypeUtils" ), + OBJECT( "Object", "java.lang.Object", null, null, false, CS + ".get(" + RK + ")" , CS + ".getPrev(" + RK + ")" , VAL , VAL , VAL ), + R_BOOLEAN( "ReinterpretedBoolean", "byte", null, null, true, CS + ".getByte(" + RK + ")" , CS + ".getPrevByte(" + RK + ")" , "BooleanUtils.byteAsBoolean(" + VAL + ')', "BooleanUtils.booleanAsByte(" + VAL + ')', "(Boolean)" + VAL, "io.deephaven.util.type.TypeUtils", "io.deephaven.util.BooleanUtils" ), + BOOLEAN( "Boolean", "java.lang.Boolean", "byte", R_BOOLEAN, false, "BooleanUtils.booleanAsByte(" + CS + ".getBoolean(" + RK + "))", "BooleanUtils.booleanAsByte(" + CS + ".getPrevBoolean(" + RK + "))", "BooleanUtils.byteAsBoolean(" + VAL + ')', "BooleanUtils.booleanAsByte(" + VAL + ')', "(Boolean)" + VAL, "io.deephaven.util.BooleanUtils" ), + R_INSTANT("ReinterpretedInstant", "long", null, null, true, CS + ".getLong(" + RK + ")" , CS + ".getPrevLong(" + RK + ")" , "DateTimeUtils.epochNanosToInstant(" + VAL + ')', "DateTimeUtils.epochNanos(" + VAL + ')', "(Instant)" + VAL, "io.deephaven.util.type.TypeUtils", "io.deephaven.time.DateTimeUtils", "java.time.Instant"), + INSTANT( "Instant", "java.time.Instant", "long", R_INSTANT, false, "DateTimeUtils.epochNanos(" + CS + ".get(" + RK + "))", "DateTimeUtils.epochNanos(" + CS + ".getPrev(" + RK + "))", "DateTimeUtils.epochNanosToInstant(" + VAL + ')', "DateTimeUtils.epochNanos(" + VAL + ')', "(Instant)" + VAL, "io.deephaven.time.DateTimeUtils", "java.time.Instant" ), ; // @formatter:on From 1138db0a23b285f3e36211fc1cefbc9a60e04f9a Mon Sep 17 00:00:00 2001 From: Ryan Caudy Date: Wed, 24 May 2023 13:20:29 -0400 Subject: [PATCH 02/11] Rename ConvertableTimeSource to ConvertibleTimeSource. Remove toDateTime. Remove implementations of toDateTime from (some) non-replicated code (still a WIP). Run static replication. Holding back tuple sources for a separate commit, because there are so many. --- .../by/LongChunkedAddOnlyMinMaxOperator.java | 2 +- .../distinct/LongChunkedDistinctOperator.java | 6 +- .../distinct/LongRollupDistinctOperator.java | 6 +- .../unique/LongChunkedUniqueOperator.java | 8 +- .../unique/LongRollupUniqueOperator.java | 8 +- .../impl/select/ReinterpretedColumn.java | 22 ++-- ...Source.java => ConvertibleTimeSource.java} | 10 +- .../impl/sources/DateTimeArraySource.java | 2 +- .../sources/DateTimeSparseArraySource.java | 2 +- .../sources/InstantSparseArraySource.java | 2 +- .../impl/sources/LocalDateWrapperSource.java | 4 +- .../impl/sources/LocalTimeWrapperSource.java | 4 +- .../table/impl/sources/LongArraySource.java | 12 +- .../LongAsZonedDateTimeColumnSource.java | 2 +- .../impl/sources/LongSparseArraySource.java | 13 +- .../sources/NanosBasedTimeArraySource.java | 2 +- .../NanosBasedTimeSparseArraySource.java | 2 +- .../impl/sources/RedirectedColumnSource.java | 19 ++- .../impl/sources/ShiftedColumnSource.java | 22 ++-- .../sources/ZonedDateTimeArraySource.java | 2 +- .../ZonedDateTimeSparseArraySource.java | 2 +- .../immutable/Immutable2DLongArraySource.java | 13 +- .../Immutable2DNanosBasedTimeArraySource.java | 20 +-- .../Immutable2DZonedDateTimeArraySource.java | 4 +- .../ImmutableConstantLongSource.java | 13 +- ...ImmutableConstantNanosBasedTimeSource.java | 15 +-- .../ImmutableConstantZonedDateTimeSource.java | 4 +- .../immutable/ImmutableLongArraySource.java | 13 +- .../ImmutableNanosBasedTimeArraySource.java | 13 +- .../ImmutableZonedDateTimeArraySource.java | 4 +- .../RegionedColumnSourceDateTime.java | 4 +- .../regioned/RegionedColumnSourceInstant.java | 10 +- .../regioned/RegionedColumnSourceLong.java | 15 +-- .../RegionedColumnSourceZonedDateTime.java | 12 +- .../RegionedTableComponentFactoryImpl.java | 2 - .../ssms/LongSegmentedSortedMultiset.java | 57 ++++----- .../updateby/fill/LongFillByOperator.java | 10 +- .../minmax/LongCumMinMaxOperator.java | 10 +- ...a => TestRegionedColumnSourceInstant.java} | 116 +++++++++--------- .../ReplicateRegionsAndRegionedSources.java | 4 +- .../ReplicateSourcesAndChunks.java | 10 +- 41 files changed, 200 insertions(+), 301 deletions(-) rename engine/table/src/main/java/io/deephaven/engine/table/impl/sources/{ConvertableTimeSource.java => ConvertibleTimeSource.java} (87%) rename engine/table/src/test/java/io/deephaven/engine/table/impl/sources/regioned/{TestRegionedColumnSourceDateTime.java => TestRegionedColumnSourceInstant.java} (61%) diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/LongChunkedAddOnlyMinMaxOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/LongChunkedAddOnlyMinMaxOperator.java index d4eb218ccf6..eb3096a7824 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/LongChunkedAddOnlyMinMaxOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/LongChunkedAddOnlyMinMaxOperator.java @@ -10,7 +10,6 @@ import java.time.Instant; import io.deephaven.engine.table.impl.sources.InstantArraySource; -import io.deephaven.engine.table.impl.sources.LongArraySource; import io.deephaven.engine.table.impl.sources.NanosBasedTimeArraySource; import io.deephaven.chunk.attributes.ChunkLengths; @@ -19,6 +18,7 @@ import io.deephaven.engine.rowset.chunkattributes.RowKeys; import io.deephaven.util.QueryConstants; import io.deephaven.util.compare.LongComparisons; +import io.deephaven.engine.table.impl.sources.LongArraySource; import io.deephaven.engine.table.ColumnSource; import io.deephaven.chunk.*; import org.apache.commons.lang3.mutable.MutableInt; diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongChunkedDistinctOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongChunkedDistinctOperator.java index c9bc69e9cab..995cac884ae 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongChunkedDistinctOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongChunkedDistinctOperator.java @@ -8,7 +8,9 @@ */ package io.deephaven.engine.table.impl.by.ssmcountdistinct.distinct; -import io.deephaven.time.DateTime; +import java.time.Instant; + +import io.deephaven.engine.table.impl.sources.BoxedColumnSource; import io.deephaven.engine.table.impl.by.ssmcountdistinct.InstantSsmSourceWrapper; import io.deephaven.engine.rowset.WritableRowSet; @@ -63,7 +65,7 @@ public LongChunkedDistinctOperator( this.internalResult = new LongSsmBackedSource(); // endregion SsmCreation // region ResultAssignment - if(type == DateTime.class) { + if(type == Instant.class) { externalResult = new InstantSsmSourceWrapper(internalResult); } else { externalResult = internalResult; diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongRollupDistinctOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongRollupDistinctOperator.java index 422d7505ee6..3316241e980 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongRollupDistinctOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/distinct/LongRollupDistinctOperator.java @@ -8,7 +8,9 @@ */ package io.deephaven.engine.table.impl.by.ssmcountdistinct.distinct; -import io.deephaven.time.DateTime; +import java.time.Instant; + +import io.deephaven.engine.table.impl.sources.BoxedColumnSource; import io.deephaven.engine.table.impl.by.ssmcountdistinct.InstantSsmSourceWrapper; import io.deephaven.engine.rowset.WritableRowSet; @@ -60,7 +62,7 @@ public LongRollupDistinctOperator( this.internalResult = new LongSsmBackedSource(); // endregion SsmCreation // region ResultAssignment - if(type == DateTime.class) { + if(type == Instant.class) { externalResult = new InstantSsmSourceWrapper(internalResult); } else { externalResult = internalResult; diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongChunkedUniqueOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongChunkedUniqueOperator.java index 5c1b5269558..878a699c338 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongChunkedUniqueOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongChunkedUniqueOperator.java @@ -8,8 +8,10 @@ */ package io.deephaven.engine.table.impl.by.ssmcountdistinct.unique; +import java.time.Instant; + import io.deephaven.engine.table.impl.sources.BoxedColumnSource; -import io.deephaven.time.DateTime; +import io.deephaven.engine.table.impl.by.ssmcountdistinct.InstantSsmSourceWrapper; import io.deephaven.engine.rowset.WritableRowSet; import io.deephaven.engine.rowset.RowSet; @@ -75,8 +77,8 @@ public LongChunkedUniqueOperator( this.internalResult = new LongArraySource(); // endregion ResultCreation // region ResultAssignment - if(type == DateTime.class) { - externalResult = new BoxedColumnSource.OfDateTime(internalResult); + if(type == Instant.class) { + externalResult = new BoxedColumnSource.OfInstant(internalResult); } else { externalResult = internalResult; } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongRollupUniqueOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongRollupUniqueOperator.java index 5f7b68f7898..68befeee289 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongRollupUniqueOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/unique/LongRollupUniqueOperator.java @@ -8,8 +8,10 @@ */ package io.deephaven.engine.table.impl.by.ssmcountdistinct.unique; +import java.time.Instant; + import io.deephaven.engine.table.impl.sources.BoxedColumnSource; -import io.deephaven.time.DateTime; +import io.deephaven.engine.table.impl.by.ssmcountdistinct.InstantSsmSourceWrapper; import io.deephaven.engine.rowset.WritableRowSet; import io.deephaven.engine.rowset.RowSet; @@ -74,8 +76,8 @@ public LongRollupUniqueOperator( this.internalResult = new LongArraySource(); // endregion ResultCreation // region ResultAssignment - if(type == DateTime.class) { - externalResult = new BoxedColumnSource.OfDateTime(internalResult); + if(type == Instant.class) { + externalResult = new BoxedColumnSource.OfInstant(internalResult); } else { externalResult = internalResult; } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java index ce83563f8be..e1974eefe57 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java @@ -13,7 +13,7 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.rowset.TrackingRowSet; -import io.deephaven.engine.table.impl.sources.ConvertableTimeSource; +import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource; import io.deephaven.engine.table.impl.sources.LocalDateWrapperSource; import io.deephaven.engine.table.impl.sources.LocalTimeWrapperSource; import io.deephaven.engine.table.impl.sources.LongAsDateTimeColumnSource; @@ -131,8 +131,8 @@ public List initInputs(TrackingRowSet rowSet, Map boolean allowsReinterpret(@NotNull final Class ColumnSource doReinterpret(@NotNull Class alternateDataType) { if (alternateDataType == this.getType()) { return (ColumnSource) this; - } else if(alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == Instant.class) { return (ColumnSource) toInstant(); } @@ -1235,11 +1232,6 @@ public ColumnSource toLocalTime(final @NotNull ZoneId zone) { return new LocalTimeWrapperSource(toZonedDateTime(zone), zone); } - @Override - public ColumnSource toDateTime() { - return new DateTimeArraySource(this); - } - @Override public ColumnSource toInstant() { return new InstantArraySource(this); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongAsZonedDateTimeColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongAsZonedDateTimeColumnSource.java index f9c1a8c7cfe..3cd9c58fa09 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongAsZonedDateTimeColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongAsZonedDateTimeColumnSource.java @@ -13,7 +13,7 @@ * Reinterpret result {@link ColumnSource} implementations that translates {@code long} to {@link ZonedDateTime} values. */ public class LongAsZonedDateTimeColumnSource extends BoxedLongAsTimeSource - implements ConvertableTimeSource.Zoned { + implements ConvertibleTimeSource.Zoned { private final ZoneId zone; public LongAsZonedDateTimeColumnSource(ColumnSource alternateColumnSource, ZoneId zone) { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongSparseArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongSparseArraySource.java index 35c37bb0475..b91c165fba8 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongSparseArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongSparseArraySource.java @@ -17,8 +17,6 @@ import io.deephaven.base.verify.Require; import java.time.ZoneId; -import io.deephaven.time.DateTime; - import io.deephaven.engine.table.impl.DefaultGetContext; import io.deephaven.chunk.*; import io.deephaven.engine.rowset.chunkattributes.OrderedRowKeyRanges; @@ -56,7 +54,7 @@ * (C-haracter is deliberately spelled that way in order to prevent Replicate from altering this very comment). */ public class LongSparseArraySource extends SparseArrayColumnSource - implements MutableColumnSourceGetDefaults.ForLong , ConvertableTimeSource { + implements MutableColumnSourceGetDefaults.ForLong , ConvertibleTimeSource { // region recyclers private static final SoftRecycler recycler = new SoftRecycler<>(DEFAULT_RECYCLER_CAPACITY, () -> new long[BLOCK_SIZE], null); @@ -1388,7 +1386,7 @@ public LongChunk getPrevChunk(@NotNull final GetContext context, @NotNul // region reinterpretation @Override public boolean allowsReinterpret(@NotNull final Class alternateDataType) { - return alternateDataType == long.class || alternateDataType == Instant.class || alternateDataType == DateTime.class; + return alternateDataType == long.class || alternateDataType == Instant.class } @SuppressWarnings("unchecked") @@ -1396,8 +1394,6 @@ public boolean allowsReinterpret(@NotNull final Class ColumnSource doReinterpret(@NotNull Class alternateDataType) { if (alternateDataType == this.getType()) { return (ColumnSource) this; - } else if(alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == Instant.class) { return (ColumnSource) toInstant(); } @@ -1425,11 +1421,6 @@ public ColumnSource toLocalTime(final @NotNull ZoneId zone) { return new LocalTimeWrapperSource(toZonedDateTime(zone), zone); } - @Override - public ColumnSource toDateTime() { - return new DateTimeSparseArraySource(this); - } - @Override public ColumnSource toInstant() { return new InstantSparseArraySource(this); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeArraySource.java index 835b1f02a31..6852a3109a3 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeArraySource.java @@ -23,7 +23,7 @@ public abstract class NanosBasedTimeArraySource extends AbstractDeferredGroupingColumnSource implements FillUnordered, ShiftData.ShiftCallback, WritableColumnSource, - InMemoryColumnSource, WritableSourceWithPrepareForParallelPopulation, ConvertableTimeSource { + InMemoryColumnSource, WritableSourceWithPrepareForParallelPopulation, ConvertibleTimeSource { protected final LongArraySource nanoSource; diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeSparseArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeSparseArraySource.java index 2eecefec3bc..5c23f9890aa 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeSparseArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeSparseArraySource.java @@ -30,7 +30,7 @@ public abstract class NanosBasedTimeSparseArraySource extends AbstractDeferredGroupingColumnSource implements FillUnordered, WritableColumnSource, InMemoryColumnSource, PossiblyImmutableColumnSource, WritableSourceWithPrepareForParallelPopulation, ShiftData.RowSetShiftCallback, - ConvertableTimeSource { + ConvertibleTimeSource { protected final LongSparseArraySource nanoSource; diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/RedirectedColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/RedirectedColumnSource.java index f2a286710f4..6fca34c0330 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/RedirectedColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/RedirectedColumnSource.java @@ -3,7 +3,6 @@ */ package io.deephaven.engine.table.impl.sources; -import io.deephaven.base.text.Convert; import io.deephaven.base.verify.Assert; import io.deephaven.engine.table.ChunkSource; import io.deephaven.engine.table.SharedContext; @@ -43,7 +42,7 @@ * @param */ public class RedirectedColumnSource extends AbstractDeferredGroupingColumnSource - implements UngroupableColumnSource, ConvertableTimeSource { + implements UngroupableColumnSource, ConvertibleTimeSource { /** * Redirect the innerSource if it is not agnostic to redirection. Otherwise, return the innerSource. * @@ -388,43 +387,43 @@ && supportsTimeConversion()) { @Override public boolean supportsTimeConversion() { - return innerSource instanceof ConvertableTimeSource - && ((ConvertableTimeSource) innerSource).supportsTimeConversion(); + return innerSource instanceof ConvertibleTimeSource + && ((ConvertibleTimeSource) innerSource).supportsTimeConversion(); } @Override public ColumnSource toEpochNano() { - return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertableTimeSource) innerSource) + return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertibleTimeSource) innerSource) .toEpochNano()); } @Override public ColumnSource toDateTime() { - return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertableTimeSource) innerSource) + return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertibleTimeSource) innerSource) .toDateTime()); } @Override public ColumnSource toInstant() { - return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertableTimeSource) innerSource) + return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertibleTimeSource) innerSource) .toInstant()); } @Override public ColumnSource toZonedDateTime(ZoneId zone) { - return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertableTimeSource) innerSource) + return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertibleTimeSource) innerSource) .toZonedDateTime(zone)); } @Override public ColumnSource toLocalDate(ZoneId zone) { - return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertableTimeSource) innerSource) + return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertibleTimeSource) innerSource) .toLocalDate(zone)); } @Override public ColumnSource toLocalTime(ZoneId zone) { - return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertableTimeSource) innerSource) + return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertibleTimeSource) innerSource) .toLocalTime(zone)); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ShiftedColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ShiftedColumnSource.java index e7b85f602f4..80e6b925150 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ShiftedColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ShiftedColumnSource.java @@ -34,7 +34,7 @@ * @param */ public class ShiftedColumnSource extends AbstractColumnSource - implements UngroupableColumnSource, ConvertableTimeSource, InMemoryColumnSource { + implements UngroupableColumnSource, ConvertibleTimeSource, InMemoryColumnSource { protected final ColumnSource innerSource; protected final TrackingRowSet rowSet; protected final long shift; @@ -374,38 +374,38 @@ public void releaseCachedResources() { @Override public ColumnSource toZonedDateTime(ZoneId zone) { - return new ShiftedColumnSource<>(rowSet, ((ConvertableTimeSource) innerSource).toZonedDateTime(zone), shift); + return new ShiftedColumnSource<>(rowSet, ((ConvertibleTimeSource) innerSource).toZonedDateTime(zone), shift); } @Override public ColumnSource toLocalDate(ZoneId zone) { - return new ShiftedColumnSource<>(rowSet, ((ConvertableTimeSource) innerSource).toLocalDate(zone), shift); + return new ShiftedColumnSource<>(rowSet, ((ConvertibleTimeSource) innerSource).toLocalDate(zone), shift); } @Override public ColumnSource toLocalTime(ZoneId zone) { - return new ShiftedColumnSource<>(rowSet, ((ConvertableTimeSource) innerSource).toLocalTime(zone), shift); + return new ShiftedColumnSource<>(rowSet, ((ConvertibleTimeSource) innerSource).toLocalTime(zone), shift); } @Override public ColumnSource toInstant() { - return new ShiftedColumnSource<>(rowSet, ((ConvertableTimeSource) innerSource).toInstant(), shift); + return new ShiftedColumnSource<>(rowSet, ((ConvertibleTimeSource) innerSource).toInstant(), shift); } @Override public ColumnSource toDateTime() { - return new ShiftedColumnSource<>(rowSet, ((ConvertableTimeSource) innerSource).toDateTime(), shift); + return new ShiftedColumnSource<>(rowSet, ((ConvertibleTimeSource) innerSource).toDateTime(), shift); } @Override public ColumnSource toEpochNano() { - return new ShiftedColumnSource<>(rowSet, ((ConvertableTimeSource) innerSource).toEpochNano(), shift); + return new ShiftedColumnSource<>(rowSet, ((ConvertibleTimeSource) innerSource).toEpochNano(), shift); } @Override public boolean supportsTimeConversion() { - return innerSource instanceof ConvertableTimeSource - && ((ConvertableTimeSource) innerSource).supportsTimeConversion(); + return innerSource instanceof ConvertibleTimeSource + && ((ConvertibleTimeSource) innerSource).supportsTimeConversion(); } @SuppressWarnings("unchecked") @@ -416,8 +416,8 @@ protected ColumnSource doReinterpret( return new ReinterpretToOriginalForBoolean<>(alternateDataType); } - if (innerSource instanceof ConvertableTimeSource - && ((ConvertableTimeSource) innerSource).supportsTimeConversion()) { + if (innerSource instanceof ConvertibleTimeSource + && ((ConvertibleTimeSource) innerSource).supportsTimeConversion()) { if (alternateDataType == long.class || alternateDataType == Long.class) { return (ColumnSource) toEpochNano(); } else if (alternateDataType == DateTime.class) { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ZonedDateTimeArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ZonedDateTimeArraySource.java index ece53c1f7c1..08f140e4380 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ZonedDateTimeArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ZonedDateTimeArraySource.java @@ -15,7 +15,7 @@ * Array-backed ColumnSource for {@link ZonedDateTime}s. Allows reinterpretation as long. */ public class ZonedDateTimeArraySource extends NanosBasedTimeArraySource - implements MutableColumnSourceGetDefaults.ForObject, ConvertableTimeSource.Zoned { + implements MutableColumnSourceGetDefaults.ForObject, ConvertibleTimeSource.Zoned { private final ZoneId zone; public ZonedDateTimeArraySource(final @NotNull String zone) { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ZonedDateTimeSparseArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ZonedDateTimeSparseArraySource.java index 98e1ebe75b8..6a9d2cdbb01 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ZonedDateTimeSparseArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ZonedDateTimeSparseArraySource.java @@ -15,7 +15,7 @@ * Array-backed ColumnSource for {@link ZonedDateTime}s. Allows reinterpretation as long. */ public class ZonedDateTimeSparseArraySource extends NanosBasedTimeSparseArraySource - implements MutableColumnSourceGetDefaults.ForObject, ConvertableTimeSource.Zoned { + implements MutableColumnSourceGetDefaults.ForObject, ConvertibleTimeSource.Zoned { private final ZoneId zone; public ZonedDateTimeSparseArraySource(final @NotNull String zone) { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DLongArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DLongArraySource.java index 080eb0a626a..e83dfdfcdd5 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DLongArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DLongArraySource.java @@ -19,8 +19,6 @@ import io.deephaven.engine.table.ColumnSource; -import io.deephaven.time.DateTime; - import io.deephaven.chunk.*; import io.deephaven.chunk.attributes.Values; import io.deephaven.engine.rowset.RowSequence; @@ -54,7 +52,7 @@ public class Immutable2DLongArraySource extends AbstractDeferredGroupingColumnSource implements ImmutableColumnSourceGetDefaults.ForLong, WritableColumnSource, FillUnordered, InMemoryColumnSource, ChunkedBackingStoreExposedWritableSource, WritableSourceWithPrepareForParallelPopulation - , ConvertableTimeSource { + , ConvertibleTimeSource { private static final int DEFAULT_SEGMENT_SHIFT = 30; private final long segmentShift; private final int segmentMask; @@ -469,7 +467,7 @@ public void prepareForParallelPopulation(RowSet rowSet) { // region reinterpretation @Override public boolean allowsReinterpret(@NotNull final Class alternateDataType) { - return alternateDataType == long.class || alternateDataType == Instant.class || alternateDataType == DateTime.class; + return alternateDataType == long.class || alternateDataType == Instant.class; } @SuppressWarnings("unchecked") @@ -477,8 +475,6 @@ public boolean allowsReinterpret(@NotNull final Class ColumnSource doReinterpret(@NotNull Class alternateDataType) { if (alternateDataType == this.getType()) { return (ColumnSource) this; - } else if(alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == Instant.class) { return (ColumnSource) toInstant(); } @@ -506,11 +502,6 @@ public ColumnSource toLocalTime(final @NotNull ZoneId zone) { return new LocalTimeWrapperSource(toZonedDateTime(zone), zone); } - @Override - public ColumnSource toDateTime() { - return new Immutable2DDateTimeArraySource(this); - } - @Override public ColumnSource toInstant() { return new Immutable2DInstantArraySource(this); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DNanosBasedTimeArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DNanosBasedTimeArraySource.java index 4fee1b01869..a6fe9a58cc9 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DNanosBasedTimeArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DNanosBasedTimeArraySource.java @@ -7,18 +7,13 @@ import io.deephaven.chunk.*; import io.deephaven.chunk.attributes.Values; import io.deephaven.engine.rowset.RowSequence; -import io.deephaven.engine.rowset.RowSequenceFactory; import io.deephaven.engine.rowset.RowSet; import io.deephaven.engine.rowset.chunkattributes.RowKeys; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.SharedContext; import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.WritableSourceWithPrepareForParallelPopulation; -import io.deephaven.engine.table.impl.DefaultGetContext; -import io.deephaven.engine.table.impl.ImmutableColumnSourceGetDefaults; import io.deephaven.engine.table.impl.sources.*; -import io.deephaven.time.DateTime; -import org.apache.commons.lang3.mutable.MutableInt; import org.jetbrains.annotations.NotNull; import java.time.Instant; @@ -26,15 +21,14 @@ import java.time.LocalTime; import java.time.ZoneId; import java.time.ZonedDateTime; -import java.util.Arrays; // region boxing imports -import static io.deephaven.util.QueryConstants.NULL_LONG; + // endregion boxing imports public abstract class Immutable2DNanosBasedTimeArraySource extends AbstractDeferredGroupingColumnSource - implements WritableColumnSource, FillUnordered, InMemoryColumnSource, ConvertableTimeSource, + implements WritableColumnSource, FillUnordered, InMemoryColumnSource, ConvertibleTimeSource, WritableSourceWithPrepareForParallelPopulation { protected final Immutable2DLongArraySource nanoSource; @@ -204,8 +198,7 @@ public void prepareForParallelPopulation(RowSet rowSet) { @Override public boolean allowsReinterpret( @NotNull final Class alternateDataType) { - return alternateDataType == long.class || alternateDataType == Instant.class - || alternateDataType == DateTime.class; + return alternateDataType == long.class || alternateDataType == Instant.class; } @SuppressWarnings("unchecked") @@ -214,8 +207,6 @@ protected ColumnSource doReinterpret( @NotNull Class alternateDataType) { if (alternateDataType == this.getType()) { return (ColumnSource) this; - } else if (alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == long.class || alternateDataType == Long.class) { return (ColumnSource) toEpochNano(); } else if (alternateDataType == Instant.class) { @@ -246,11 +237,6 @@ public ColumnSource toLocalTime(final @NotNull ZoneId zone) { return new LocalTimeWrapperSource(toZonedDateTime(zone), zone); } - @Override - public ColumnSource toDateTime() { - return new Immutable2DDateTimeArraySource(nanoSource); - } - @Override public ColumnSource toInstant() { return new Immutable2DInstantArraySource(nanoSource); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DZonedDateTimeArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DZonedDateTimeArraySource.java index 4f0d99b26b3..574f186cfbd 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DZonedDateTimeArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DZonedDateTimeArraySource.java @@ -5,7 +5,7 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.ImmutableColumnSourceGetDefaults; -import io.deephaven.engine.table.impl.sources.ConvertableTimeSource; +import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource; import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.NotNull; @@ -16,7 +16,7 @@ * ImmutableArraySource for {@link ZonedDateTime}s. Allows reinterpretation as long. */ public class Immutable2DZonedDateTimeArraySource extends Immutable2DNanosBasedTimeArraySource - implements ImmutableColumnSourceGetDefaults.ForObject, ConvertableTimeSource.Zoned { + implements ImmutableColumnSourceGetDefaults.ForObject, ConvertibleTimeSource.Zoned { private final ZoneId zone; public Immutable2DZonedDateTimeArraySource( diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantLongSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantLongSource.java index 8e6996bbd9e..c7c5ca6bc79 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantLongSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantLongSource.java @@ -17,8 +17,6 @@ import io.deephaven.engine.table.ColumnSource; -import io.deephaven.time.DateTime; - import io.deephaven.chunk.LongChunk; import io.deephaven.chunk.WritableLongChunk; import io.deephaven.chunk.WritableChunk; @@ -43,7 +41,7 @@ public class ImmutableConstantLongSource extends AbstractColumnSource implements ImmutableColumnSourceGetDefaults.ForLong, ShiftData.ShiftCallback, InMemoryColumnSource, - RowKeyAgnosticChunkSource , ConvertableTimeSource { + RowKeyAgnosticChunkSource , ConvertibleTimeSource { private final long value; @@ -111,7 +109,7 @@ public boolean providesFillUnordered() { // region reinterpretation @Override public boolean allowsReinterpret(@NotNull final Class alternateDataType) { - return alternateDataType == long.class || alternateDataType == Instant.class || alternateDataType == DateTime.class; + return alternateDataType == long.class || alternateDataType == Instant.class; } @SuppressWarnings("unchecked") @@ -119,8 +117,6 @@ public boolean allowsReinterpret(@NotNull final Class ColumnSource doReinterpret(@NotNull Class alternateDataType) { if (alternateDataType == this.getType()) { return (ColumnSource) this; - } else if(alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == Instant.class) { return (ColumnSource) toInstant(); } @@ -148,11 +144,6 @@ public ColumnSource toLocalTime(final @NotNull ZoneId zone) { return new LocalTimeWrapperSource(toZonedDateTime(zone), zone); } - @Override - public ColumnSource toDateTime() { - return new ImmutableConstantDateTimeSource(this); - } - @Override public ColumnSource toInstant() { return new ImmutableConstantInstantSource(this); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantNanosBasedTimeSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantNanosBasedTimeSource.java index caf8b3213d0..75326d34f2c 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantNanosBasedTimeSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantNanosBasedTimeSource.java @@ -12,13 +12,12 @@ import io.deephaven.engine.rowset.chunkattributes.RowKeys; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.AbstractColumnSource; -import io.deephaven.engine.table.impl.sources.ConvertableTimeSource; +import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource; import io.deephaven.engine.table.impl.sources.InMemoryColumnSource; import io.deephaven.engine.table.impl.sources.LocalDateWrapperSource; import io.deephaven.engine.table.impl.sources.LocalTimeWrapperSource; import io.deephaven.engine.table.impl.sources.RowKeyAgnosticChunkSource; import io.deephaven.engine.table.impl.util.ShiftData; -import io.deephaven.time.DateTime; import org.jetbrains.annotations.NotNull; import java.time.Instant; @@ -29,7 +28,7 @@ public abstract class ImmutableConstantNanosBasedTimeSource extends AbstractColumnSource implements ShiftData.ShiftCallback, InMemoryColumnSource, RowKeyAgnosticChunkSource, - ConvertableTimeSource { + ConvertibleTimeSource { protected final ImmutableConstantLongSource nanoSource; @@ -123,8 +122,7 @@ public boolean providesFillUnordered() { @Override public boolean allowsReinterpret( @NotNull final Class alternateDataType) { - return alternateDataType == long.class || alternateDataType == Instant.class - || alternateDataType == DateTime.class; + return alternateDataType == long.class || alternateDataType == Instant.class; } @SuppressWarnings("unchecked") @@ -133,8 +131,6 @@ protected ColumnSource doReinterpret( @NotNull Class alternateDataType) { if (alternateDataType == this.getType()) { return (ColumnSource) this; - } else if (alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == long.class || alternateDataType == Long.class) { return (ColumnSource) toEpochNano(); } else if (alternateDataType == Instant.class) { @@ -165,11 +161,6 @@ public ColumnSource toLocalTime(final @NotNull ZoneId zone) { return new LocalTimeWrapperSource(toZonedDateTime(zone), zone); } - @Override - public ColumnSource toDateTime() { - return new ImmutableConstantDateTimeSource(nanoSource); - } - @Override public ColumnSource toInstant() { return new ImmutableConstantInstantSource(nanoSource); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantZonedDateTimeSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantZonedDateTimeSource.java index 6cf30c0f7d4..e5000d5e039 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantZonedDateTimeSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantZonedDateTimeSource.java @@ -5,7 +5,7 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.ImmutableColumnSourceGetDefaults; -import io.deephaven.engine.table.impl.sources.ConvertableTimeSource; +import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource; import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.NotNull; @@ -16,7 +16,7 @@ * Constant ImmutableColumnSource for {@link ZonedDateTime}s. Allows reinterpretation as long. */ public class ImmutableConstantZonedDateTimeSource extends ImmutableConstantNanosBasedTimeSource - implements ImmutableColumnSourceGetDefaults.ForObject, ConvertableTimeSource.Zoned { + implements ImmutableColumnSourceGetDefaults.ForObject, ConvertibleTimeSource.Zoned { private final ZoneId zone; public ImmutableConstantZonedDateTimeSource( diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableLongArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableLongArraySource.java index 01aa7642347..6862f2c6269 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableLongArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableLongArraySource.java @@ -19,8 +19,6 @@ import io.deephaven.engine.table.ColumnSource; -import io.deephaven.time.DateTime; - import io.deephaven.chunk.*; import io.deephaven.chunk.attributes.Values; import io.deephaven.engine.rowset.RowSequence; @@ -53,7 +51,7 @@ public class ImmutableLongArraySource extends AbstractDeferredGroupingColumnSource implements ImmutableColumnSourceGetDefaults.ForLong, WritableColumnSource, FillUnordered, InMemoryColumnSource, ChunkedBackingStoreExposedWritableSource, WritableSourceWithPrepareForParallelPopulation - , ConvertableTimeSource { + , ConvertibleTimeSource { private long[] data; // region constructor @@ -430,7 +428,7 @@ public void setArray(long [] array) { // region reinterpretation @Override public boolean allowsReinterpret(@NotNull final Class alternateDataType) { - return alternateDataType == long.class || alternateDataType == Instant.class || alternateDataType == DateTime.class; + return alternateDataType == long.class || alternateDataType == Instant.class; } @SuppressWarnings("unchecked") @@ -438,8 +436,6 @@ public boolean allowsReinterpret(@NotNull final Class ColumnSource doReinterpret(@NotNull Class alternateDataType) { if (alternateDataType == this.getType()) { return (ColumnSource) this; - } else if(alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == Instant.class) { return (ColumnSource) toInstant(); } @@ -467,11 +463,6 @@ public ColumnSource toLocalTime(final @NotNull ZoneId zone) { return new LocalTimeWrapperSource(toZonedDateTime(zone), zone); } - @Override - public ColumnSource toDateTime() { - return new ImmutableDateTimeArraySource(this); - } - @Override public ColumnSource toInstant() { return new ImmutableInstantArraySource(this); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableNanosBasedTimeArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableNanosBasedTimeArraySource.java index 4124b2a892b..f291e77d77d 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableNanosBasedTimeArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableNanosBasedTimeArraySource.java @@ -8,7 +8,6 @@ import io.deephaven.engine.table.SharedContext; import io.deephaven.engine.table.WritableSourceWithPrepareForParallelPopulation; -import io.deephaven.time.DateTime; import io.deephaven.chunk.*; import io.deephaven.chunk.attributes.Values; @@ -27,7 +26,7 @@ public abstract class ImmutableNanosBasedTimeArraySource extends AbstractDeferredGroupingColumnSource - implements WritableColumnSource, FillUnordered, InMemoryColumnSource, ConvertableTimeSource, + implements WritableColumnSource, FillUnordered, InMemoryColumnSource, ConvertibleTimeSource, WritableSourceWithPrepareForParallelPopulation { protected final ImmutableLongArraySource nanoSource; @@ -178,8 +177,7 @@ public void prepareForParallelPopulation(RowSet rowSet) { @Override public boolean allowsReinterpret( @NotNull final Class alternateDataType) { - return alternateDataType == long.class || alternateDataType == Instant.class - || alternateDataType == DateTime.class; + return alternateDataType == long.class || alternateDataType == Instant.class; } @SuppressWarnings("unchecked") @@ -188,8 +186,6 @@ protected ColumnSource doReinterpret( @NotNull Class alternateDataType) { if (alternateDataType == this.getType()) { return (ColumnSource) this; - } else if (alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == long.class || alternateDataType == Long.class) { return (ColumnSource) toEpochNano(); } else if (alternateDataType == Instant.class) { @@ -220,11 +216,6 @@ public ColumnSource toLocalTime(final @NotNull ZoneId zone) { return new LocalTimeWrapperSource(toZonedDateTime(zone), zone); } - @Override - public ColumnSource toDateTime() { - return new ImmutableDateTimeArraySource(nanoSource); - } - @Override public ColumnSource toInstant() { return new ImmutableInstantArraySource(nanoSource); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableZonedDateTimeArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableZonedDateTimeArraySource.java index 2f53ff1cea5..7e451dcf41f 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableZonedDateTimeArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableZonedDateTimeArraySource.java @@ -5,7 +5,7 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.ImmutableColumnSourceGetDefaults; -import io.deephaven.engine.table.impl.sources.ConvertableTimeSource; +import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource; import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.NotNull; @@ -16,7 +16,7 @@ * ImmutableArraySource for {@link ZonedDateTime}s. Allows reinterpretation as long. */ public class ImmutableZonedDateTimeArraySource extends ImmutableNanosBasedTimeArraySource - implements ImmutableColumnSourceGetDefaults.ForObject, ConvertableTimeSource.Zoned { + implements ImmutableColumnSourceGetDefaults.ForObject, ConvertibleTimeSource.Zoned { private final ZoneId zone; public ImmutableZonedDateTimeArraySource( diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceDateTime.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceDateTime.java index 0a2c1d51067..3bce9fea1f3 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceDateTime.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceDateTime.java @@ -5,7 +5,7 @@ import io.deephaven.chunk.attributes.Values; import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.impl.sources.ConvertableTimeSource; +import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource; import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.table.impl.ColumnSourceGetDefaults; @@ -24,7 +24,7 @@ */ final class RegionedColumnSourceDateTime extends RegionedColumnSourceReferencing> - implements ColumnSourceGetDefaults.ForObject, ConvertableTimeSource { + implements ColumnSourceGetDefaults.ForObject, ConvertibleTimeSource { public RegionedColumnSourceDateTime() { this(new RegionedColumnSourceLong.AsValues()); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceInstant.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceInstant.java index 092b12050e1..d90c58bb209 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceInstant.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceInstant.java @@ -8,8 +8,7 @@ import io.deephaven.engine.rowset.RowSequence; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.ColumnSourceGetDefaults; -import io.deephaven.engine.table.impl.sources.ConvertableTimeSource; -import io.deephaven.time.DateTime; +import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource; import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.NotNull; @@ -24,7 +23,7 @@ */ final class RegionedColumnSourceInstant extends RegionedColumnSourceReferencing> - implements ColumnSourceGetDefaults.ForObject, ConvertableTimeSource { + implements ColumnSourceGetDefaults.ForObject, ConvertibleTimeSource { public RegionedColumnSourceInstant() { this(new RegionedColumnSourceLong.AsValues()); @@ -84,11 +83,6 @@ public ColumnSource toLocalTime(ZoneId zone) { (RegionedColumnSourceLong) getNativeSource()); } - @Override - public ColumnSource toDateTime() { - return new RegionedColumnSourceDateTime((RegionedColumnSourceLong) getNativeSource()); - } - @Override public ColumnSource toEpochNano() { return getNativeSource(); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceLong.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceLong.java index e303b00a395..fdcc2f60eb0 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceLong.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceLong.java @@ -14,11 +14,10 @@ import java.time.LocalTime; import java.time.ZoneId; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.sources.LocalDateWrapperSource; import io.deephaven.engine.table.impl.sources.LocalTimeWrapperSource; -import io.deephaven.engine.table.impl.sources.ConvertableTimeSource; +import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource; import io.deephaven.engine.rowset.RowSequence; import io.deephaven.engine.table.ColumnDefinition; @@ -36,7 +35,7 @@ */ abstract class RegionedColumnSourceLong extends RegionedColumnSourceArray> - implements ColumnSourceGetDefaults.ForLong ,ConvertableTimeSource { + implements ColumnSourceGetDefaults.ForLong , ConvertibleTimeSource { RegionedColumnSourceLong(@NotNull final ColumnRegionLong nullRegion, @NotNull final MakeDeferred> makeDeferred) { @@ -67,8 +66,7 @@ public boolean allowsReinterpret(@NotNull Class boolean allowsReinterpret(@NotNull Class ColumnSource doReinterpret(@NotNull Class alternateDataType) { if(alternateDataType == Instant.class) { return (ColumnSource) toInstant(); - } else if(alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } return super.doReinterpret(alternateDataType); @@ -93,11 +89,6 @@ public ColumnSource toInstant() { return new RegionedColumnSourceInstant((RegionedColumnSourceLong) this); } - public ColumnSource toDateTime() { - //noinspection unchecked - return new RegionedColumnSourceDateTime((RegionedColumnSourceLong) this); - } - @Override public ColumnSource toZonedDateTime(ZoneId zone) { //noinspection unchecked diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceZonedDateTime.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceZonedDateTime.java index 0e80fe387f4..bb3f57fc269 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceZonedDateTime.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceZonedDateTime.java @@ -8,10 +8,9 @@ import io.deephaven.engine.rowset.RowSequence; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.ColumnSourceGetDefaults; -import io.deephaven.engine.table.impl.sources.ConvertableTimeSource; +import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource; import io.deephaven.engine.table.impl.sources.LocalDateWrapperSource; import io.deephaven.engine.table.impl.sources.LocalTimeWrapperSource; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.NotNull; @@ -26,8 +25,8 @@ */ final class RegionedColumnSourceZonedDateTime extends RegionedColumnSourceReferencing> - implements ColumnSourceGetDefaults.ForObject, ConvertableTimeSource, - ConvertableTimeSource.Zoned { + implements ColumnSourceGetDefaults.ForObject, ConvertibleTimeSource, + ConvertibleTimeSource.Zoned { private final ZoneId zone; public static ColumnSource asLocalDate(ZoneId zone, RegionedColumnSourceLong inner) { @@ -98,11 +97,6 @@ public ColumnSource toLocalTime(ZoneId zone) { (RegionedColumnSourceLong) getNativeSource()); } - @Override - public ColumnSource toDateTime() { - return new RegionedColumnSourceDateTime((RegionedColumnSourceLong) getNativeSource()); - } - @Override public ColumnSource toEpochNano() { return getNativeSource(); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedTableComponentFactoryImpl.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedTableComponentFactoryImpl.java index be02ad6acb1..70a7154f799 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedTableComponentFactoryImpl.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedTableComponentFactoryImpl.java @@ -5,7 +5,6 @@ import io.deephaven.engine.table.ColumnDefinition; import io.deephaven.engine.table.impl.locations.TableDataException; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.ColumnSourceManager; import io.deephaven.engine.table.impl.ColumnToCodecMappings; import io.deephaven.util.type.TypeUtils; @@ -35,7 +34,6 @@ public class RegionedTableComponentFactoryImpl implements RegionedTableComponent typeToSupplier.put(Long.class, RegionedColumnSourceLong.AsValues::new); typeToSupplier.put(Short.class, RegionedColumnSourceShort.AsValues::new); typeToSupplier.put(Boolean.class, RegionedColumnSourceBoolean::new); - typeToSupplier.put(DateTime.class, RegionedColumnSourceDateTime::new); typeToSupplier.put(Instant.class, RegionedColumnSourceInstant::new); SIMPLE_DATA_TYPE_TO_REGIONED_COLUMN_SOURCE_SUPPLIER = Collections.unmodifiableMap(typeToSupplier); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java index 32047ded13f..908922fa1dd 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java @@ -8,7 +8,8 @@ */ package io.deephaven.engine.table.impl.ssms; -import io.deephaven.time.DateTime; +import java.time.Instant; + import io.deephaven.vector.ObjectVectorDirect; import io.deephaven.time.DateTimeUtils; @@ -2518,16 +2519,16 @@ public String toString() { } // region Extensions - public DateTime getAsDate(long i) { - return DateTimeUtils.epochNanosToDateTime(get(i)); + public Instant getAsInstant(long i) { + return DateTimeUtils.epochNanosToInstant(get(i)); } - public ObjectVector subArrayAsDate(long fromIndexInclusive, long toIndexExclusive) { - return new ObjectVectorDirect<>(keyArrayAsDate(fromIndexInclusive, toIndexExclusive)); + public ObjectVector subArrayAsInstants(long fromIndexInclusive, long toIndexExclusive) { + return new ObjectVectorDirect<>(keyArrayAsInstants(fromIndexInclusive, toIndexExclusive)); } - public ObjectVector subArrayByPositionsAsDates(long[] positions) { - final DateTime[] keyArray = new DateTime[positions.length]; + public ObjectVector subArrayByPositionsAsInstants(long[] positions) { + final Instant[] keyArray = new Instant[positions.length]; int writePos = 0; for (long position : positions) { keyArray[writePos++] = getAsDate(position); @@ -2536,30 +2537,30 @@ public ObjectVector subArrayByPositionsAsDates(long[] positions) { return new ObjectVectorDirect<>(keyArray); } - public DateTime[] toDateArray() { - return keyArrayAsDate(); + public Instant[] toInstantArray() { + return keyArrayAsInstants(); } - public Chunk toDateChunk() { - return ObjectChunk.chunkWrap(toDateArray()); + public Chunk toInstantChunk() { + return ObjectChunk.chunkWrap(toInstantArray()); } - public void fillDateChunk(WritableChunk destChunk) { + public void fillInstantChunk(WritableChunk destChunk) { if(isEmpty()) { return ; } //noinspection unchecked - WritableObjectChunk writable = destChunk.asWritableObjectChunk(); + WritableObjectChunk writable = destChunk.asWritableObjectChunk(); if (leafCount == 1) { for(int ii = 0; ii < size(); ii++) { - writable.set(ii, DateTimeUtils.epochNanosToDateTime(directoryValues[ii])); + writable.set(ii, DateTimeUtils.epochNanosToInstant(directoryValues[ii])); } } else if (leafCount > 0) { int offset = 0; for (int li = 0; li < leafCount; ++li) { for(int jj = 0; jj < leafSizes[li]; jj++) { - writable.set(jj + offset, DateTimeUtils.epochNanosToDateTime(leafValues[li][jj])); + writable.set(jj + offset, DateTimeUtils.epochNanosToInstant(leafValues[li][jj])); } offset += leafSizes[li]; } @@ -2567,12 +2568,12 @@ public void fillDateChunk(WritableChunk destChunk) { } - public ObjectVector getDirectAsDate() { - return new ObjectVectorDirect<>(keyArrayAsDate()); + public ObjectVector getDirectAsInstants() { + return new ObjectVectorDirect<>(keyArrayAsInstants()); } - private DateTime[] keyArrayAsDate() { - return keyArrayAsDate(0, size()-1); + private Instant[] keyArrayAsInstants() { + return keyArrayAsInstants(0, size()-1); } /** @@ -2581,16 +2582,16 @@ private DateTime[] keyArrayAsDate() { * @param last * @return */ - private DateTime[] keyArrayAsDate(long first, long last) { + private Instant[] keyArrayAsInstants(long first, long last) { if(isEmpty()) { - return DateTimeUtils.ZERO_LENGTH_DATETIME_ARRAY; + return DateTimeUtils.ZERO_LENGTH_INSTANT_ARRAY; } final int totalSize = (int)(last - first + 1); - final DateTime[] keyArray = new DateTime[intSize()]; + final Instant[] keyArray = new Instant[intSize()]; if (leafCount == 1) { for(int ii = 0; ii < totalSize; ii++) { - keyArray[ii] = DateTimeUtils.epochNanosToDateTime(directoryValues[ii + (int)first]); + keyArray[ii] = DateTimeUtils.epochNanosToInstant(directoryValues[ii + (int)first]); } } else if (leafCount > 0) { int offset = 0; @@ -2602,7 +2603,7 @@ private DateTime[] keyArrayAsDate(long first, long last) { if(toSkip < leafSizes[li]) { final int nToCopy = Math.min(leafSizes[li] - toSkip, totalSize); for(int jj = 0; jj < nToCopy; jj++) { - keyArray[jj] = DateTimeUtils.epochNanosToDateTime(leafValues[li][jj + toSkip]); + keyArray[jj] = DateTimeUtils.epochNanosToInstant(leafValues[li][jj + toSkip]); } copied = nToCopy; offset = copied; @@ -2613,7 +2614,7 @@ private DateTime[] keyArrayAsDate(long first, long last) { } else { int nToCopy = Math.min(leafSizes[li], totalSize - copied); for(int jj = 0; jj < nToCopy; jj++) { - keyArray[jj + offset] = DateTimeUtils.epochNanosToDateTime(leafValues[li][jj]); + keyArray[jj + offset] = DateTimeUtils.epochNanosToInstant(leafValues[li][jj]); } offset += leafSizes[li]; copied += nToCopy; @@ -2623,11 +2624,11 @@ private DateTime[] keyArrayAsDate(long first, long last) { return keyArray; } - public String toDateString() { + public String toInstantString() { final StringBuilder arrAsString = new StringBuilder("["); if (leafCount == 1) { for(int ii = 0; ii < intSize(); ii++) { - arrAsString.append(DateTimeUtils.epochNanosToDateTime(directoryValues[ii])).append(", "); + arrAsString.append(DateTimeUtils.epochNanosToInstant(directoryValues[ii])).append(", "); } arrAsString.replace(arrAsString.length() - 2, arrAsString.length(), "]"); @@ -2635,7 +2636,7 @@ public String toDateString() { } else if (leafCount > 0) { for (int li = 0; li < leafCount; ++li) { for(int ai = 0; ai < leafSizes[li]; ai++) { - arrAsString.append(DateTimeUtils.epochNanosToDateTime(leafValues[li][ai])).append(", "); + arrAsString.append(DateTimeUtils.epochNanosToInstant(leafValues[li][ai])).append(", "); } } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/fill/LongFillByOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/fill/LongFillByOperator.java index a2f294bf8f4..3973dc5d303 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/fill/LongFillByOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/fill/LongFillByOperator.java @@ -5,11 +5,11 @@ */ package io.deephaven.engine.table.impl.updateby.fill; -import io.deephaven.engine.table.ColumnSource; +import java.time.Instant; import java.util.Map; import java.util.Collections; -import io.deephaven.time.DateTime; -import java.time.Instant; + +import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.sources.ReinterpretUtils; import io.deephaven.base.verify.Assert; @@ -76,8 +76,8 @@ public UpdateByOperator.Context makeUpdateContext(final int affectedChunkSize, f @Override public Map> getOutputColumns() { final ColumnSource actualOutput; - if(type == DateTime.class) { - actualOutput = ReinterpretUtils.longToDateTimeSource(outputSource); + if(type == Instant.class) { + actualOutput = ReinterpretUtils.longToInstantSource(outputSource); } else { actualOutput = outputSource; } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/minmax/LongCumMinMaxOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/minmax/LongCumMinMaxOperator.java index 338cc95c54a..0c2ea59b22b 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/minmax/LongCumMinMaxOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/minmax/LongCumMinMaxOperator.java @@ -5,11 +5,11 @@ */ package io.deephaven.engine.table.impl.updateby.minmax; -import io.deephaven.engine.table.ColumnSource; +import java.time.Instant; import java.util.Map; import java.util.Collections; -import io.deephaven.time.DateTime; -import java.time.Instant; + +import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.sources.ReinterpretUtils; import io.deephaven.base.verify.Assert; @@ -79,8 +79,8 @@ public LongCumMinMaxOperator(@NotNull final MatchPair pair, @Override public Map> getOutputColumns() { final ColumnSource actualOutput; - if(type == DateTime.class) { - actualOutput = ReinterpretUtils.longToDateTimeSource(outputSource); + if(type == Instant.class) { + actualOutput = ReinterpretUtils.longToInstantSource(outputSource); } else { actualOutput = outputSource; } diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/regioned/TestRegionedColumnSourceDateTime.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/regioned/TestRegionedColumnSourceInstant.java similarity index 61% rename from engine/table/src/test/java/io/deephaven/engine/table/impl/sources/regioned/TestRegionedColumnSourceDateTime.java rename to engine/table/src/test/java/io/deephaven/engine/table/impl/sources/regioned/TestRegionedColumnSourceInstant.java index 657aa984177..37e9e3dc516 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/regioned/TestRegionedColumnSourceDateTime.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/regioned/TestRegionedColumnSourceInstant.java @@ -4,52 +4,51 @@ package io.deephaven.engine.table.impl.sources.regioned; import io.deephaven.chunk.attributes.Values; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; -import io.deephaven.util.QueryConstants; import io.deephaven.engine.table.ColumnSource; import org.junit.Test; +import java.time.Instant; import java.time.ZoneId; @SuppressWarnings("JUnit4AnnotatedMethodInJUnit3TestCase") -public class TestRegionedColumnSourceDateTime - extends TstRegionedColumnSourceReferencing> { +public class TestRegionedColumnSourceInstant + extends TstRegionedColumnSourceReferencing> { private static final ZoneId TZ_NY = ZoneId.of("America/New_York"); - public TestRegionedColumnSourceDateTime() { + public TestRegionedColumnSourceInstant() { super(ColumnRegionLong.class); } - private static final DateTime[] TEST_DATES = new DateTime[] { + private static final Instant[] TEST_INSTANTS = new Instant[] { null, DateTimeUtils.now(), DateTimeUtils.atMidnight(DateTimeUtils.now(), TZ_NY), - DateTimeUtils.parseDateTime("2013-01-15T12:19:32.000 NY"), - DateTimeUtils.parseDateTime("2013-01-15T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2013-01-15T16:00:00.000 NY"), - DateTimeUtils.parseDateTime("2013-01-15T16:15:00.000 NY"), - DateTimeUtils.parseDateTime("2000-01-01T00:00:00.000 NY"), - DateTimeUtils.parseDateTime("1999-12-31T23:59:59.000 NY"), - DateTimeUtils.parseDateTime("1981-02-22T19:50:00.000 NY") + DateTimeUtils.parseInstant("2013-01-15T12:19:32.000 NY"), + DateTimeUtils.parseInstant("2013-01-15T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2013-01-15T16:00:00.000 NY"), + DateTimeUtils.parseInstant("2013-01-15T16:15:00.000 NY"), + DateTimeUtils.parseInstant("2000-01-01T00:00:00.000 NY"), + DateTimeUtils.parseInstant("1999-12-31T23:59:59.000 NY"), + DateTimeUtils.parseInstant("1981-02-22T19:50:00.000 NY") }; private ColumnSource SUT_AS_LONG; private void assertLookup(final long elementIndex, final int expectedRegionIndex, - final DateTime output, + final Instant output, final boolean prev, final boolean reinterpreted) { checking(new Expectations() { { oneOf(cr[expectedRegionIndex]).getLong(elementIndex); - will(returnValue(output == null ? QueryConstants.NULL_LONG : output.getNanos())); + will(returnValue(DateTimeUtils.epochNanos(output))); } }); if (reinterpreted) { - assertEquals(output == null ? QueryConstants.NULL_LONG : output.getNanos(), + assertEquals(DateTimeUtils.epochNanos(output), prev ? SUT_AS_LONG.getPrevLong(elementIndex) : SUT_AS_LONG.getLong(elementIndex)); } else { assertEquals(output, prev ? SUT.getPrev(elementIndex) : SUT.get(elementIndex)); @@ -61,11 +60,10 @@ private void assertLookup(final long elementIndex, public void setUp() throws Exception { super.setUp(); - SUT = new RegionedColumnSourceDateTime(); - assertEquals(DateTime.class, SUT.getType()); + SUT = new RegionedColumnSourceInstant(); + assertEquals(Instant.class, SUT.getType()); SUT_AS_LONG = SUT.reinterpret(long.class); assertEquals(long.class, SUT_AS_LONG.getType()); - assertEquals(RegionedColumnSourceDateTime.class, SUT_AS_LONG.reinterpret(DateTime.class).getClass()); } @Override @@ -73,20 +71,20 @@ public void testGet() { fillRegions(); // noinspection ConstantConditions - assertLookup(0L, 0, TEST_DATES[0], false, false); - assertLookup(RegionedColumnSource.getLastRowKey(0), 0, TEST_DATES[1], false, false); + assertLookup(0L, 0, TEST_INSTANTS[0], false, false); + assertLookup(RegionedColumnSource.getLastRowKey(0), 0, TEST_INSTANTS[1], false, false); - assertLookup(RegionedColumnSource.getFirstRowKey(1) + 1, 1, TEST_DATES[2], false, false); - assertLookup(RegionedColumnSource.getLastRowKey(1) - 1, 1, TEST_DATES[3], false, false); + assertLookup(RegionedColumnSource.getFirstRowKey(1) + 1, 1, TEST_INSTANTS[2], false, false); + assertLookup(RegionedColumnSource.getLastRowKey(1) - 1, 1, TEST_INSTANTS[3], false, false); - assertLookup(RegionedColumnSource.getFirstRowKey(4) + 2, 4, TEST_DATES[4], false, false); - assertLookup(RegionedColumnSource.getLastRowKey(4) - 2, 4, TEST_DATES[5], false, false); + assertLookup(RegionedColumnSource.getFirstRowKey(4) + 2, 4, TEST_INSTANTS[4], false, false); + assertLookup(RegionedColumnSource.getLastRowKey(4) - 2, 4, TEST_INSTANTS[5], false, false); - assertLookup(RegionedColumnSource.getFirstRowKey(8) + 3, 8, TEST_DATES[6], false, false); - assertLookup(RegionedColumnSource.getLastRowKey(8) - 3, 8, TEST_DATES[7], false, false); + assertLookup(RegionedColumnSource.getFirstRowKey(8) + 3, 8, TEST_INSTANTS[6], false, false); + assertLookup(RegionedColumnSource.getLastRowKey(8) - 3, 8, TEST_INSTANTS[7], false, false); - assertLookup(RegionedColumnSource.getFirstRowKey(9) + 4, 9, TEST_DATES[8], false, false); - assertLookup(RegionedColumnSource.getLastRowKey(9) - 4, 9, TEST_DATES[9], false, false); + assertLookup(RegionedColumnSource.getFirstRowKey(9) + 4, 9, TEST_INSTANTS[8], false, false); + assertLookup(RegionedColumnSource.getLastRowKey(9) - 4, 9, TEST_INSTANTS[9], false, false); } @Override @@ -94,20 +92,20 @@ public void testGetPrev() { fillRegions(); // noinspection ConstantConditions - assertLookup(0L, 0, TEST_DATES[0], true, false); - assertLookup(RegionedColumnSource.getLastRowKey(0), 0, TEST_DATES[1], true, false); + assertLookup(0L, 0, TEST_INSTANTS[0], true, false); + assertLookup(RegionedColumnSource.getLastRowKey(0), 0, TEST_INSTANTS[1], true, false); - assertLookup(RegionedColumnSource.getFirstRowKey(1) + 1, 1, TEST_DATES[2], true, false); - assertLookup(RegionedColumnSource.getLastRowKey(1) - 1, 1, TEST_DATES[3], true, false); + assertLookup(RegionedColumnSource.getFirstRowKey(1) + 1, 1, TEST_INSTANTS[2], true, false); + assertLookup(RegionedColumnSource.getLastRowKey(1) - 1, 1, TEST_INSTANTS[3], true, false); - assertLookup(RegionedColumnSource.getFirstRowKey(4) + 2, 4, TEST_DATES[4], true, false); - assertLookup(RegionedColumnSource.getLastRowKey(4) - 2, 4, TEST_DATES[5], true, false); + assertLookup(RegionedColumnSource.getFirstRowKey(4) + 2, 4, TEST_INSTANTS[4], true, false); + assertLookup(RegionedColumnSource.getLastRowKey(4) - 2, 4, TEST_INSTANTS[5], true, false); - assertLookup(RegionedColumnSource.getFirstRowKey(8) + 3, 8, TEST_DATES[6], true, false); - assertLookup(RegionedColumnSource.getLastRowKey(8) - 3, 8, TEST_DATES[7], true, false); + assertLookup(RegionedColumnSource.getFirstRowKey(8) + 3, 8, TEST_INSTANTS[6], true, false); + assertLookup(RegionedColumnSource.getLastRowKey(8) - 3, 8, TEST_INSTANTS[7], true, false); - assertLookup(RegionedColumnSource.getFirstRowKey(9) + 4, 9, TEST_DATES[8], true, false); - assertLookup(RegionedColumnSource.getLastRowKey(9) - 4, 9, TEST_DATES[9], true, false); + assertLookup(RegionedColumnSource.getFirstRowKey(9) + 4, 9, TEST_INSTANTS[8], true, false); + assertLookup(RegionedColumnSource.getLastRowKey(9) - 4, 9, TEST_INSTANTS[9], true, false); } @Test @@ -115,20 +113,20 @@ public void testGetReinterpreted() { fillRegions(); // noinspection ConstantConditions - assertLookup(0L, 0, TEST_DATES[0], false, true); - assertLookup(RegionedColumnSource.getLastRowKey(0), 0, TEST_DATES[1], false, true); + assertLookup(0L, 0, TEST_INSTANTS[0], false, true); + assertLookup(RegionedColumnSource.getLastRowKey(0), 0, TEST_INSTANTS[1], false, true); - assertLookup(RegionedColumnSource.getFirstRowKey(1) + 1, 1, TEST_DATES[2], false, true); - assertLookup(RegionedColumnSource.getLastRowKey(1) - 1, 1, TEST_DATES[3], false, true); + assertLookup(RegionedColumnSource.getFirstRowKey(1) + 1, 1, TEST_INSTANTS[2], false, true); + assertLookup(RegionedColumnSource.getLastRowKey(1) - 1, 1, TEST_INSTANTS[3], false, true); - assertLookup(RegionedColumnSource.getFirstRowKey(4) + 2, 4, TEST_DATES[4], false, true); - assertLookup(RegionedColumnSource.getLastRowKey(4) - 2, 4, TEST_DATES[5], false, true); + assertLookup(RegionedColumnSource.getFirstRowKey(4) + 2, 4, TEST_INSTANTS[4], false, true); + assertLookup(RegionedColumnSource.getLastRowKey(4) - 2, 4, TEST_INSTANTS[5], false, true); - assertLookup(RegionedColumnSource.getFirstRowKey(8) + 3, 8, TEST_DATES[6], false, true); - assertLookup(RegionedColumnSource.getLastRowKey(8) - 3, 8, TEST_DATES[7], false, true); + assertLookup(RegionedColumnSource.getFirstRowKey(8) + 3, 8, TEST_INSTANTS[6], false, true); + assertLookup(RegionedColumnSource.getLastRowKey(8) - 3, 8, TEST_INSTANTS[7], false, true); - assertLookup(RegionedColumnSource.getFirstRowKey(9) + 4, 9, TEST_DATES[8], false, true); - assertLookup(RegionedColumnSource.getLastRowKey(9) - 4, 9, TEST_DATES[9], false, true); + assertLookup(RegionedColumnSource.getFirstRowKey(9) + 4, 9, TEST_INSTANTS[8], false, true); + assertLookup(RegionedColumnSource.getLastRowKey(9) - 4, 9, TEST_INSTANTS[9], false, true); } @Test @@ -136,19 +134,19 @@ public void testGetPrevReinterpreted() { fillRegions(); // noinspection ConstantConditions - assertLookup(0L, 0, TEST_DATES[0], true, true); - assertLookup(RegionedColumnSource.getLastRowKey(0), 0, TEST_DATES[1], true, true); + assertLookup(0L, 0, TEST_INSTANTS[0], true, true); + assertLookup(RegionedColumnSource.getLastRowKey(0), 0, TEST_INSTANTS[1], true, true); - assertLookup(RegionedColumnSource.getFirstRowKey(1) + 1, 1, TEST_DATES[2], true, true); - assertLookup(RegionedColumnSource.getLastRowKey(1) - 1, 1, TEST_DATES[3], true, true); + assertLookup(RegionedColumnSource.getFirstRowKey(1) + 1, 1, TEST_INSTANTS[2], true, true); + assertLookup(RegionedColumnSource.getLastRowKey(1) - 1, 1, TEST_INSTANTS[3], true, true); - assertLookup(RegionedColumnSource.getFirstRowKey(4) + 2, 4, TEST_DATES[4], true, true); - assertLookup(RegionedColumnSource.getLastRowKey(4) - 2, 4, TEST_DATES[5], true, true); + assertLookup(RegionedColumnSource.getFirstRowKey(4) + 2, 4, TEST_INSTANTS[4], true, true); + assertLookup(RegionedColumnSource.getLastRowKey(4) - 2, 4, TEST_INSTANTS[5], true, true); - assertLookup(RegionedColumnSource.getFirstRowKey(8) + 3, 8, TEST_DATES[6], true, true); - assertLookup(RegionedColumnSource.getLastRowKey(8) - 3, 8, TEST_DATES[7], true, true); + assertLookup(RegionedColumnSource.getFirstRowKey(8) + 3, 8, TEST_INSTANTS[6], true, true); + assertLookup(RegionedColumnSource.getLastRowKey(8) - 3, 8, TEST_INSTANTS[7], true, true); - assertLookup(RegionedColumnSource.getFirstRowKey(9) + 4, 9, TEST_DATES[8], true, true); - assertLookup(RegionedColumnSource.getLastRowKey(9) - 4, 9, TEST_DATES[9], true, true); + assertLookup(RegionedColumnSource.getFirstRowKey(9) + 4, 9, TEST_INSTANTS[8], true, true); + assertLookup(RegionedColumnSource.getLastRowKey(9) - 4, 9, TEST_INSTANTS[9], true, true); } } diff --git a/replication/static/src/main/java/io/deephaven/replicators/ReplicateRegionsAndRegionedSources.java b/replication/static/src/main/java/io/deephaven/replicators/ReplicateRegionsAndRegionedSources.java index 1f79499c77d..4ca2e83bc37 100644 --- a/replication/static/src/main/java/io/deephaven/replicators/ReplicateRegionsAndRegionedSources.java +++ b/replication/static/src/main/java/io/deephaven/replicators/ReplicateRegionsAndRegionedSources.java @@ -67,9 +67,9 @@ private static void fixupLong(String path) throws IOException { "import io.deephaven.engine.table.ColumnSource;", "import io.deephaven.engine.table.impl.sources.LocalDateWrapperSource;", "import io.deephaven.engine.table.impl.sources.LocalTimeWrapperSource;", - "import io.deephaven.engine.table.impl.sources.ConvertableTimeSource;"); + "import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource;"); lines = addImport(lines, Instant.class, ZonedDateTime.class, LocalDate.class, LocalTime.class, ZoneId.class); - lines = globalReplacements(lines, "/\\*\\s+MIXIN_INTERFACES\\s+\\*/", ",ConvertableTimeSource "); + lines = globalReplacements(lines, "/\\*\\s+MIXIN_INTERFACES\\s+\\*/", ", ConvertibleTimeSource"); lines = replaceRegion(lines, "reinterpretation", Arrays.asList( " @Override", " public boolean allowsReinterpret(@NotNull Class alternateDataType) {", diff --git a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java index 9bd6a0583ae..87f553cefa0 100644 --- a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java +++ b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java @@ -115,7 +115,7 @@ private static void fixupImmutableLongArraySource(String longImmutableSource) th lines = addImport(lines, LongFunction.class, ToLongFunction.class, Instant.class, ZonedDateTime.class, LocalDate.class, LocalTime.class, Require.class, ZoneId.class); lines = standardCleanups(lines); - lines = globalReplacements(lines, "/\\*\\s*MIXIN_IMPLS\\s*\\*/", ", ConvertableTimeSource"); + lines = globalReplacements(lines, "/\\*\\s*MIXIN_IMPLS\\s*\\*/", ", ConvertibleTimeSource"); lines = replaceRegion(lines, "fillChunkByRanges", l -> addLongToBoxedAdapter(l, "LongFunction", "WritableObjectChunk", "asWritableObjectChunk")); lines = replaceRegion(lines, "fillChunkByKeys", l -> addLongToBoxedAdapter(l, "LongFunction", @@ -188,7 +188,7 @@ private static void fixupImmutableConstantLongSource(String longImmutableSource) lines = addImport(lines, Instant.class, ZonedDateTime.class, LocalDate.class, LocalTime.class, Require.class, ZoneId.class); lines = standardCleanups(lines); - lines = globalReplacements(lines, "/\\*\\s*MIXIN_IMPLS\\s*\\*/", ", ConvertableTimeSource"); + lines = globalReplacements(lines, "/\\*\\s*MIXIN_IMPLS\\s*\\*/", ", ConvertibleTimeSource"); lines = replaceRegion(lines, "reinterpretation", Arrays.asList( " @Override", " public boolean allowsReinterpret(@NotNull final Class alternateDataType) {", @@ -246,7 +246,7 @@ private static void fixupImmutable2DLongArraySource(String longImmutableSource) lines = addImport(lines, LongFunction.class, ToLongFunction.class, Instant.class, ZonedDateTime.class, LocalDate.class, LocalTime.class, Require.class, ZoneId.class); lines = standardCleanups(lines); - lines = globalReplacements(lines, "/\\*\\s*MIXIN_IMPLS\\s*\\*/", ", ConvertableTimeSource"); + lines = globalReplacements(lines, "/\\*\\s*MIXIN_IMPLS\\s*\\*/", ", ConvertibleTimeSource"); lines = replaceRegion(lines, "fillChunkByRanges", l -> addLongToBoxedAdapter(l, "LongFunction", "WritableObjectChunk", "asWritableObjectChunk")); lines = replaceRegion(lines, "fillChunkByKeys", l -> addLongToBoxedAdapter(l, "LongFunction", @@ -867,7 +867,7 @@ private static void replicateLongArraySource() throws IOException { lines = addImport(lines, LongFunction.class, ToLongFunction.class, Instant.class, ZonedDateTime.class, LocalDate.class, LocalTime.class, Require.class, ZoneId.class); lines = standardCleanups(lines); - lines = globalReplacements(lines, "/\\*\\s*MIXIN_IMPLS\\s*\\*/", ", ConvertableTimeSource"); + lines = globalReplacements(lines, "/\\*\\s*MIXIN_IMPLS\\s*\\*/", ", ConvertibleTimeSource"); lines = replaceRegion(lines, "getAndAddUnsafe", Arrays.asList( " public final long getAndAddUnsafe(long index, long addend) {", " final int blockIndex = (int) (index >> LOG_BLOCK_SIZE);", @@ -963,7 +963,7 @@ private static void replicateLongSparseArraySource() throws IOException { lines = addImport(lines, LongFunction.class, ToLongFunction.class, Instant.class, ZonedDateTime.class, LocalDate.class, LocalTime.class, Require.class, ZoneId.class); lines = standardCleanups(lines); - lines = globalReplacements(lines, "/\\*\\s*MIXIN_IMPLS\\s*\\*/", ", ConvertableTimeSource"); + lines = globalReplacements(lines, "/\\*\\s*MIXIN_IMPLS\\s*\\*/", ", ConvertibleTimeSource"); lines = replaceRegion(lines, "fillByRanges", l -> addLongToBoxedAdapter(l, "LongFunction", "WritableObjectChunk", "asWritableObjectChunk")); lines = replaceRegion(lines, "fillByKeys", l -> addLongToBoxedAdapter(l, "LongFunction", From fc7eed2effbed08f9ba29b23247423814dec9a72 Mon Sep 17 00:00:00 2001 From: Ryan Caudy Date: Wed, 24 May 2023 13:20:45 -0400 Subject: [PATCH 03/11] Regenerated tuple sources --- ...oleanBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... BooleanByteInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...eanCharacterInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ooleanDoubleInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...BooleanFloatInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...oleanInstantBooleanColumnTupleSource.java} | 36 +++++----- ... BooleanInstantByteColumnTupleSource.java} | 36 +++++----- ...eanInstantCharacterColumnTupleSource.java} | 36 +++++----- ...a => BooleanInstantColumnTupleSource.java} | 36 +++++----- ...ooleanInstantDoubleColumnTupleSource.java} | 36 +++++----- ...BooleanInstantFloatColumnTupleSource.java} | 36 +++++----- ...oleanInstantInstantColumnTupleSource.java} | 54 +++++++------- ...oleanInstantIntegerColumnTupleSource.java} | 36 +++++----- ... BooleanInstantLongColumnTupleSource.java} | 36 +++++----- ...ooleanInstantObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...BooleanInstantShortColumnTupleSource.java} | 36 +++++----- ...oleanIntegerInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... BooleanLongInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ooleanObjectInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 18 ++--- ...erpretedInstantByteColumnTupleSource.java} | 18 ++--- ...tedInstantCharacterColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...pretedInstantDoubleColumnTupleSource.java} | 18 ++--- ...rpretedInstantFloatColumnTupleSource.java} | 18 ++--- ...retedInstantInstantColumnTupleSource.java} | 42 +++++------ ...retedInstantIntegerColumnTupleSource.java} | 18 ++--- ...erpretedInstantLongColumnTupleSource.java} | 18 ++--- ...pretedInstantObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...rpretedInstantShortColumnTupleSource.java} | 18 ++--- ...BooleanShortInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... ByteBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... => ByteByteInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...yteCharacterInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...> ByteDoubleInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...=> ByteFloatInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... ByteInstantBooleanColumnTupleSource.java} | 36 +++++----- ... => ByteInstantByteColumnTupleSource.java} | 36 +++++----- ...yteInstantCharacterColumnTupleSource.java} | 36 +++++----- ...java => ByteInstantColumnTupleSource.java} | 36 +++++----- ...> ByteInstantDoubleColumnTupleSource.java} | 36 +++++----- ...=> ByteInstantFloatColumnTupleSource.java} | 36 +++++----- ... ByteInstantInstantColumnTupleSource.java} | 54 +++++++------- ... ByteInstantIntegerColumnTupleSource.java} | 36 +++++----- ... => ByteInstantLongColumnTupleSource.java} | 36 +++++----- ...> ByteInstantObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...=> ByteInstantShortColumnTupleSource.java} | 36 +++++----- ... ByteIntegerInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... => ByteLongInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...> ByteObjectInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 18 ++--- ...erpretedInstantByteColumnTupleSource.java} | 18 ++--- ...tedInstantCharacterColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...pretedInstantDoubleColumnTupleSource.java} | 18 ++--- ...rpretedInstantFloatColumnTupleSource.java} | 18 ++--- ...retedInstantInstantColumnTupleSource.java} | 42 +++++------ ...retedInstantIntegerColumnTupleSource.java} | 18 ++--- ...erpretedInstantLongColumnTupleSource.java} | 18 ++--- ...pretedInstantObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...rpretedInstantShortColumnTupleSource.java} | 18 ++--- ...=> ByteShortInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...acterBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...haracterByteInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...terCharacterInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...racterDoubleInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...aracterFloatInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...acterInstantBooleanColumnTupleSource.java} | 36 +++++----- ...haracterInstantByteColumnTupleSource.java} | 36 +++++----- ...terInstantCharacterColumnTupleSource.java} | 36 +++++----- ...=> CharacterInstantColumnTupleSource.java} | 36 +++++----- ...racterInstantDoubleColumnTupleSource.java} | 36 +++++----- ...aracterInstantFloatColumnTupleSource.java} | 36 +++++----- ...acterInstantInstantColumnTupleSource.java} | 54 +++++++------- ...acterInstantIntegerColumnTupleSource.java} | 36 +++++----- ...haracterInstantLongColumnTupleSource.java} | 36 +++++----- ...racterInstantObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...aracterInstantShortColumnTupleSource.java} | 36 +++++----- ...acterIntegerInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...haracterLongInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...racterObjectInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 18 ++--- ...erpretedInstantByteColumnTupleSource.java} | 18 ++--- ...tedInstantCharacterColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...pretedInstantDoubleColumnTupleSource.java} | 18 ++--- ...rpretedInstantFloatColumnTupleSource.java} | 18 ++--- ...retedInstantInstantColumnTupleSource.java} | 42 +++++------ ...retedInstantIntegerColumnTupleSource.java} | 18 ++--- ...erpretedInstantLongColumnTupleSource.java} | 18 ++--- ...pretedInstantObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...rpretedInstantShortColumnTupleSource.java} | 18 ++--- ...aracterShortInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...oubleBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...> DoubleByteInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...bleCharacterInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...DoubleDoubleInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... DoubleFloatInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...oubleInstantBooleanColumnTupleSource.java} | 36 +++++----- ...> DoubleInstantByteColumnTupleSource.java} | 36 +++++----- ...bleInstantCharacterColumnTupleSource.java} | 36 +++++----- ...va => DoubleInstantColumnTupleSource.java} | 36 +++++----- ...DoubleInstantDoubleColumnTupleSource.java} | 36 +++++----- ... DoubleInstantFloatColumnTupleSource.java} | 36 +++++----- ...oubleInstantInstantColumnTupleSource.java} | 54 +++++++------- ...oubleInstantIntegerColumnTupleSource.java} | 36 +++++----- ...> DoubleInstantLongColumnTupleSource.java} | 36 +++++----- ...DoubleInstantObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ... DoubleInstantShortColumnTupleSource.java} | 36 +++++----- ...oubleIntegerInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...> DoubleLongInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...DoubleObjectInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 18 ++--- ...erpretedInstantByteColumnTupleSource.java} | 18 ++--- ...tedInstantCharacterColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...pretedInstantDoubleColumnTupleSource.java} | 18 ++--- ...rpretedInstantFloatColumnTupleSource.java} | 18 ++--- ...retedInstantInstantColumnTupleSource.java} | 42 +++++------ ...retedInstantIntegerColumnTupleSource.java} | 18 ++--- ...erpretedInstantLongColumnTupleSource.java} | 18 ++--- ...pretedInstantObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...rpretedInstantShortColumnTupleSource.java} | 18 ++--- ... DoubleShortInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...FloatBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...=> FloatByteInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...oatCharacterInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... FloatDoubleInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...> FloatFloatInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...FloatInstantBooleanColumnTupleSource.java} | 36 +++++----- ...=> FloatInstantByteColumnTupleSource.java} | 36 +++++----- ...oatInstantCharacterColumnTupleSource.java} | 36 +++++----- ...ava => FloatInstantColumnTupleSource.java} | 36 +++++----- ... FloatInstantDoubleColumnTupleSource.java} | 36 +++++----- ...> FloatInstantFloatColumnTupleSource.java} | 36 +++++----- ...FloatInstantInstantColumnTupleSource.java} | 54 +++++++------- ...FloatInstantIntegerColumnTupleSource.java} | 36 +++++----- ...=> FloatInstantLongColumnTupleSource.java} | 36 +++++----- ... FloatInstantObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...> FloatInstantShortColumnTupleSource.java} | 36 +++++----- ...FloatIntegerInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...=> FloatLongInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... FloatObjectInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 18 ++--- ...erpretedInstantByteColumnTupleSource.java} | 18 ++--- ...tedInstantCharacterColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...pretedInstantDoubleColumnTupleSource.java} | 18 ++--- ...rpretedInstantFloatColumnTupleSource.java} | 18 ++--- ...retedInstantInstantColumnTupleSource.java} | 42 +++++------ ...retedInstantIntegerColumnTupleSource.java} | 18 ++--- ...erpretedInstantLongColumnTupleSource.java} | 18 ++--- ...pretedInstantObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...rpretedInstantShortColumnTupleSource.java} | 18 ++--- ...> FloatShortInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...stantBooleanBooleanColumnTupleSource.java} | 36 +++++----- ... InstantBooleanByteColumnTupleSource.java} | 36 +++++----- ...antBooleanCharacterColumnTupleSource.java} | 36 +++++----- ...a => InstantBooleanColumnTupleSource.java} | 36 +++++----- ...nstantBooleanDoubleColumnTupleSource.java} | 36 +++++----- ...InstantBooleanFloatColumnTupleSource.java} | 36 +++++----- ...stantBooleanInstantColumnTupleSource.java} | 54 +++++++------- ...stantBooleanIntegerColumnTupleSource.java} | 36 +++++----- ... InstantBooleanLongColumnTupleSource.java} | 36 +++++----- ...nstantBooleanObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...InstantBooleanShortColumnTupleSource.java} | 36 +++++----- ... InstantByteBooleanColumnTupleSource.java} | 36 +++++----- ... => InstantByteByteColumnTupleSource.java} | 36 +++++----- ...nstantByteCharacterColumnTupleSource.java} | 36 +++++----- ...java => InstantByteColumnTupleSource.java} | 36 +++++----- ...> InstantByteDoubleColumnTupleSource.java} | 36 +++++----- ...=> InstantByteFloatColumnTupleSource.java} | 36 +++++----- ... InstantByteInstantColumnTupleSource.java} | 54 +++++++------- ... InstantByteIntegerColumnTupleSource.java} | 36 +++++----- ... => InstantByteLongColumnTupleSource.java} | 36 +++++----- ...> InstantByteObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...=> InstantByteShortColumnTupleSource.java} | 36 +++++----- ...antCharacterBooleanColumnTupleSource.java} | 36 +++++----- ...nstantCharacterByteColumnTupleSource.java} | 36 +++++----- ...tCharacterCharacterColumnTupleSource.java} | 36 +++++----- ...=> InstantCharacterColumnTupleSource.java} | 36 +++++----- ...tantCharacterDoubleColumnTupleSource.java} | 36 +++++----- ...stantCharacterFloatColumnTupleSource.java} | 36 +++++----- ...antCharacterInstantColumnTupleSource.java} | 54 +++++++------- ...antCharacterIntegerColumnTupleSource.java} | 36 +++++----- ...nstantCharacterLongColumnTupleSource.java} | 36 +++++----- ...tantCharacterObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...stantCharacterShortColumnTupleSource.java} | 36 +++++----- ...nstantDoubleBooleanColumnTupleSource.java} | 36 +++++----- ...> InstantDoubleByteColumnTupleSource.java} | 36 +++++----- ...tantDoubleCharacterColumnTupleSource.java} | 36 +++++----- ...va => InstantDoubleColumnTupleSource.java} | 36 +++++----- ...InstantDoubleDoubleColumnTupleSource.java} | 36 +++++----- ... InstantDoubleFloatColumnTupleSource.java} | 36 +++++----- ...nstantDoubleInstantColumnTupleSource.java} | 54 +++++++------- ...nstantDoubleIntegerColumnTupleSource.java} | 36 +++++----- ...> InstantDoubleLongColumnTupleSource.java} | 36 +++++----- ...InstantDoubleObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ... InstantDoubleShortColumnTupleSource.java} | 36 +++++----- ...InstantFloatBooleanColumnTupleSource.java} | 36 +++++----- ...=> InstantFloatByteColumnTupleSource.java} | 36 +++++----- ...stantFloatCharacterColumnTupleSource.java} | 36 +++++----- ...ava => InstantFloatColumnTupleSource.java} | 36 +++++----- ... InstantFloatDoubleColumnTupleSource.java} | 36 +++++----- ...> InstantFloatFloatColumnTupleSource.java} | 36 +++++----- ...InstantFloatInstantColumnTupleSource.java} | 54 +++++++------- ...InstantFloatIntegerColumnTupleSource.java} | 36 +++++----- ...=> InstantFloatLongColumnTupleSource.java} | 36 +++++----- ... InstantFloatObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...> InstantFloatShortColumnTupleSource.java} | 36 +++++----- ...stantInstantBooleanColumnTupleSource.java} | 54 +++++++------- ... InstantInstantByteColumnTupleSource.java} | 54 +++++++------- ...antInstantCharacterColumnTupleSource.java} | 54 +++++++------- ...a => InstantInstantColumnTupleSource.java} | 54 +++++++------- ...nstantInstantDoubleColumnTupleSource.java} | 54 +++++++------- ...InstantInstantFloatColumnTupleSource.java} | 54 +++++++------- ...stantInstantInstantColumnTupleSource.java} | 72 +++++++++---------- ...stantInstantIntegerColumnTupleSource.java} | 54 +++++++------- ... InstantInstantLongColumnTupleSource.java} | 54 +++++++------- ...nstantInstantObjectColumnTupleSource.java} | 54 +++++++------- ...einterpretedBooleanColumnTupleSource.java} | 54 +++++++------- ...einterpretedInstantColumnTupleSource.java} | 60 ++++++++-------- ...InstantInstantShortColumnTupleSource.java} | 54 +++++++------- ...stantIntegerBooleanColumnTupleSource.java} | 36 +++++----- ... InstantIntegerByteColumnTupleSource.java} | 36 +++++----- ...antIntegerCharacterColumnTupleSource.java} | 36 +++++----- ...a => InstantIntegerColumnTupleSource.java} | 36 +++++----- ...nstantIntegerDoubleColumnTupleSource.java} | 36 +++++----- ...InstantIntegerFloatColumnTupleSource.java} | 36 +++++----- ...stantIntegerInstantColumnTupleSource.java} | 54 +++++++------- ...stantIntegerIntegerColumnTupleSource.java} | 36 +++++----- ... InstantIntegerLongColumnTupleSource.java} | 36 +++++----- ...nstantIntegerObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...InstantIntegerShortColumnTupleSource.java} | 36 +++++----- ... InstantLongBooleanColumnTupleSource.java} | 36 +++++----- ... => InstantLongByteColumnTupleSource.java} | 36 +++++----- ...nstantLongCharacterColumnTupleSource.java} | 36 +++++----- ...java => InstantLongColumnTupleSource.java} | 36 +++++----- ...> InstantLongDoubleColumnTupleSource.java} | 36 +++++----- ...=> InstantLongFloatColumnTupleSource.java} | 36 +++++----- ... InstantLongInstantColumnTupleSource.java} | 54 +++++++------- ... InstantLongIntegerColumnTupleSource.java} | 36 +++++----- ... => InstantLongLongColumnTupleSource.java} | 36 +++++----- ...> InstantLongObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...=> InstantLongShortColumnTupleSource.java} | 36 +++++----- ...nstantObjectBooleanColumnTupleSource.java} | 36 +++++----- ...> InstantObjectByteColumnTupleSource.java} | 36 +++++----- ...tantObjectCharacterColumnTupleSource.java} | 36 +++++----- ...va => InstantObjectColumnTupleSource.java} | 36 +++++----- ...InstantObjectDoubleColumnTupleSource.java} | 36 +++++----- ... InstantObjectFloatColumnTupleSource.java} | 36 +++++----- ...nstantObjectInstantColumnTupleSource.java} | 54 +++++++------- ...nstantObjectIntegerColumnTupleSource.java} | 36 +++++----- ...> InstantObjectLongColumnTupleSource.java} | 36 +++++----- ...InstantObjectObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ... InstantObjectShortColumnTupleSource.java} | 36 +++++----- ...retedBooleanBooleanColumnTupleSource.java} | 36 +++++----- ...erpretedBooleanByteColumnTupleSource.java} | 36 +++++----- ...tedBooleanCharacterColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...pretedBooleanDoubleColumnTupleSource.java} | 36 +++++----- ...rpretedBooleanFloatColumnTupleSource.java} | 36 +++++----- ...retedBooleanInstantColumnTupleSource.java} | 54 +++++++------- ...retedBooleanIntegerColumnTupleSource.java} | 36 +++++----- ...erpretedBooleanLongColumnTupleSource.java} | 36 +++++----- ...pretedBooleanObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...rpretedBooleanShortColumnTupleSource.java} | 36 +++++----- ...retedInstantBooleanColumnTupleSource.java} | 42 +++++------ ...erpretedInstantByteColumnTupleSource.java} | 42 +++++------ ...tedInstantCharacterColumnTupleSource.java} | 42 +++++------ ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...pretedInstantDoubleColumnTupleSource.java} | 42 +++++------ ...rpretedInstantFloatColumnTupleSource.java} | 42 +++++------ ...retedInstantInstantColumnTupleSource.java} | 60 ++++++++-------- ...retedInstantIntegerColumnTupleSource.java} | 42 +++++------ ...erpretedInstantLongColumnTupleSource.java} | 42 +++++------ ...pretedInstantObjectColumnTupleSource.java} | 42 +++++------ ...einterpretedBooleanColumnTupleSource.java} | 42 +++++------ ...einterpretedInstantColumnTupleSource.java} | 48 ++++++------- ...rpretedInstantShortColumnTupleSource.java} | 42 +++++------ ...InstantShortBooleanColumnTupleSource.java} | 36 +++++----- ...=> InstantShortByteColumnTupleSource.java} | 36 +++++----- ...stantShortCharacterColumnTupleSource.java} | 36 +++++----- ...ava => InstantShortColumnTupleSource.java} | 36 +++++----- ... InstantShortDoubleColumnTupleSource.java} | 36 +++++----- ...> InstantShortFloatColumnTupleSource.java} | 36 +++++----- ...InstantShortInstantColumnTupleSource.java} | 54 +++++++------- ...InstantShortIntegerColumnTupleSource.java} | 36 +++++----- ...=> InstantShortLongColumnTupleSource.java} | 36 +++++----- ... InstantShortObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...> InstantShortShortColumnTupleSource.java} | 36 +++++----- ...tegerBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... IntegerByteInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...gerCharacterInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ntegerDoubleInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...IntegerFloatInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...tegerInstantBooleanColumnTupleSource.java} | 36 +++++----- ... IntegerInstantByteColumnTupleSource.java} | 36 +++++----- ...gerInstantCharacterColumnTupleSource.java} | 36 +++++----- ...a => IntegerInstantColumnTupleSource.java} | 36 +++++----- ...ntegerInstantDoubleColumnTupleSource.java} | 36 +++++----- ...IntegerInstantFloatColumnTupleSource.java} | 36 +++++----- ...tegerInstantInstantColumnTupleSource.java} | 54 +++++++------- ...tegerInstantIntegerColumnTupleSource.java} | 36 +++++----- ... IntegerInstantLongColumnTupleSource.java} | 36 +++++----- ...ntegerInstantObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...IntegerInstantShortColumnTupleSource.java} | 36 +++++----- ...tegerIntegerInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... IntegerLongInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ntegerObjectInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 18 ++--- ...erpretedInstantByteColumnTupleSource.java} | 18 ++--- ...tedInstantCharacterColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...pretedInstantDoubleColumnTupleSource.java} | 18 ++--- ...rpretedInstantFloatColumnTupleSource.java} | 18 ++--- ...retedInstantInstantColumnTupleSource.java} | 42 +++++------ ...retedInstantIntegerColumnTupleSource.java} | 18 ++--- ...erpretedInstantLongColumnTupleSource.java} | 18 ++--- ...pretedInstantObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...rpretedInstantShortColumnTupleSource.java} | 18 ++--- ...IntegerShortInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... LongBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... => LongByteInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ongCharacterInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...> LongDoubleInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...=> LongFloatInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... LongInstantBooleanColumnTupleSource.java} | 36 +++++----- ... => LongInstantByteColumnTupleSource.java} | 36 +++++----- ...ongInstantCharacterColumnTupleSource.java} | 36 +++++----- ...java => LongInstantColumnTupleSource.java} | 36 +++++----- ...> LongInstantDoubleColumnTupleSource.java} | 36 +++++----- ...=> LongInstantFloatColumnTupleSource.java} | 36 +++++----- ... LongInstantInstantColumnTupleSource.java} | 54 +++++++------- ... LongInstantIntegerColumnTupleSource.java} | 36 +++++----- ... => LongInstantLongColumnTupleSource.java} | 36 +++++----- ...> LongInstantObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...=> LongInstantShortColumnTupleSource.java} | 36 +++++----- ... LongIntegerInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... => LongLongInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...> LongObjectInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 18 ++--- ...erpretedInstantByteColumnTupleSource.java} | 18 ++--- ...tedInstantCharacterColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...pretedInstantDoubleColumnTupleSource.java} | 18 ++--- ...rpretedInstantFloatColumnTupleSource.java} | 18 ++--- ...retedInstantInstantColumnTupleSource.java} | 42 +++++------ ...retedInstantIntegerColumnTupleSource.java} | 18 ++--- ...erpretedInstantLongColumnTupleSource.java} | 18 ++--- ...pretedInstantObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...rpretedInstantShortColumnTupleSource.java} | 18 ++--- ...=> LongShortInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...bjectBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...> ObjectByteInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ectCharacterInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ObjectDoubleInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... ObjectFloatInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...bjectInstantBooleanColumnTupleSource.java} | 36 +++++----- ...> ObjectInstantByteColumnTupleSource.java} | 36 +++++----- ...ectInstantCharacterColumnTupleSource.java} | 36 +++++----- ...va => ObjectInstantColumnTupleSource.java} | 36 +++++----- ...ObjectInstantDoubleColumnTupleSource.java} | 36 +++++----- ... ObjectInstantFloatColumnTupleSource.java} | 36 +++++----- ...bjectInstantInstantColumnTupleSource.java} | 54 +++++++------- ...bjectInstantIntegerColumnTupleSource.java} | 36 +++++----- ...> ObjectInstantLongColumnTupleSource.java} | 36 +++++----- ...ObjectInstantObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ... ObjectInstantShortColumnTupleSource.java} | 36 +++++----- ...bjectIntegerInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...> ObjectLongInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ObjectObjectInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 18 ++--- ...erpretedInstantByteColumnTupleSource.java} | 18 ++--- ...tedInstantCharacterColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...pretedInstantDoubleColumnTupleSource.java} | 18 ++--- ...rpretedInstantFloatColumnTupleSource.java} | 18 ++--- ...retedInstantInstantColumnTupleSource.java} | 42 +++++------ ...retedInstantIntegerColumnTupleSource.java} | 18 ++--- ...erpretedInstantLongColumnTupleSource.java} | 18 ++--- ...pretedInstantObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...rpretedInstantShortColumnTupleSource.java} | 18 ++--- ... ObjectShortInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...oleanBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...dBooleanByteInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...eanCharacterInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ooleanDoubleInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...BooleanFloatInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...oleanInstantBooleanColumnTupleSource.java} | 36 +++++----- ...dBooleanInstantByteColumnTupleSource.java} | 36 +++++----- ...eanInstantCharacterColumnTupleSource.java} | 36 +++++----- ...retedBooleanInstantColumnTupleSource.java} | 36 +++++----- ...ooleanInstantDoubleColumnTupleSource.java} | 36 +++++----- ...BooleanInstantFloatColumnTupleSource.java} | 36 +++++----- ...oleanInstantInstantColumnTupleSource.java} | 54 +++++++------- ...oleanInstantIntegerColumnTupleSource.java} | 36 +++++----- ...dBooleanInstantLongColumnTupleSource.java} | 36 +++++----- ...ooleanInstantObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...BooleanInstantShortColumnTupleSource.java} | 36 +++++----- ...oleanIntegerInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...dBooleanLongInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ooleanObjectInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 18 ++--- ...erpretedInstantByteColumnTupleSource.java} | 18 ++--- ...tedInstantCharacterColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...pretedInstantDoubleColumnTupleSource.java} | 18 ++--- ...rpretedInstantFloatColumnTupleSource.java} | 18 ++--- ...retedInstantInstantColumnTupleSource.java} | 42 +++++------ ...retedInstantIntegerColumnTupleSource.java} | 18 ++--- ...erpretedInstantLongColumnTupleSource.java} | 18 ++--- ...pretedInstantObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...rpretedInstantShortColumnTupleSource.java} | 18 ++--- ...BooleanShortInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...stantBooleanBooleanColumnTupleSource.java} | 18 ++--- ...dInstantBooleanByteColumnTupleSource.java} | 18 ++--- ...antBooleanCharacterColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 18 ++--- ...nstantBooleanDoubleColumnTupleSource.java} | 18 ++--- ...InstantBooleanFloatColumnTupleSource.java} | 18 ++--- ...stantBooleanInstantColumnTupleSource.java} | 42 +++++------ ...stantBooleanIntegerColumnTupleSource.java} | 18 ++--- ...dInstantBooleanLongColumnTupleSource.java} | 18 ++--- ...nstantBooleanObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...InstantBooleanShortColumnTupleSource.java} | 18 ++--- ...dInstantByteBooleanColumnTupleSource.java} | 18 ++--- ...etedInstantByteByteColumnTupleSource.java} | 18 ++--- ...nstantByteCharacterColumnTupleSource.java} | 18 ++--- ...erpretedInstantByteColumnTupleSource.java} | 18 ++--- ...edInstantByteDoubleColumnTupleSource.java} | 18 ++--- ...tedInstantByteFloatColumnTupleSource.java} | 18 ++--- ...dInstantByteInstantColumnTupleSource.java} | 42 +++++------ ...dInstantByteIntegerColumnTupleSource.java} | 18 ++--- ...etedInstantByteLongColumnTupleSource.java} | 18 ++--- ...edInstantByteObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...tedInstantByteShortColumnTupleSource.java} | 18 ++--- ...antCharacterBooleanColumnTupleSource.java} | 18 ++--- ...nstantCharacterByteColumnTupleSource.java} | 18 ++--- ...tCharacterCharacterColumnTupleSource.java} | 18 ++--- ...tedInstantCharacterColumnTupleSource.java} | 18 ++--- ...tantCharacterDoubleColumnTupleSource.java} | 18 ++--- ...stantCharacterFloatColumnTupleSource.java} | 18 ++--- ...antCharacterInstantColumnTupleSource.java} | 42 +++++------ ...antCharacterIntegerColumnTupleSource.java} | 18 ++--- ...nstantCharacterLongColumnTupleSource.java} | 18 ++--- ...tantCharacterObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...stantCharacterShortColumnTupleSource.java} | 18 ++--- ...nstantDoubleBooleanColumnTupleSource.java} | 18 ++--- ...edInstantDoubleByteColumnTupleSource.java} | 18 ++--- ...tantDoubleCharacterColumnTupleSource.java} | 18 ++--- ...pretedInstantDoubleColumnTupleSource.java} | 18 ++--- ...InstantDoubleDoubleColumnTupleSource.java} | 18 ++--- ...dInstantDoubleFloatColumnTupleSource.java} | 18 ++--- ...nstantDoubleInstantColumnTupleSource.java} | 42 +++++------ ...nstantDoubleIntegerColumnTupleSource.java} | 18 ++--- ...edInstantDoubleLongColumnTupleSource.java} | 18 ++--- ...InstantDoubleObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...dInstantDoubleShortColumnTupleSource.java} | 18 ++--- ...InstantFloatBooleanColumnTupleSource.java} | 18 ++--- ...tedInstantFloatByteColumnTupleSource.java} | 18 ++--- ...stantFloatCharacterColumnTupleSource.java} | 18 ++--- ...rpretedInstantFloatColumnTupleSource.java} | 18 ++--- ...dInstantFloatDoubleColumnTupleSource.java} | 18 ++--- ...edInstantFloatFloatColumnTupleSource.java} | 18 ++--- ...InstantFloatInstantColumnTupleSource.java} | 42 +++++------ ...InstantFloatIntegerColumnTupleSource.java} | 18 ++--- ...tedInstantFloatLongColumnTupleSource.java} | 18 ++--- ...dInstantFloatObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...edInstantFloatShortColumnTupleSource.java} | 18 ++--- ...stantInstantBooleanColumnTupleSource.java} | 42 +++++------ ...dInstantInstantByteColumnTupleSource.java} | 42 +++++------ ...antInstantCharacterColumnTupleSource.java} | 42 +++++------ ...retedInstantInstantColumnTupleSource.java} | 42 +++++------ ...nstantInstantDoubleColumnTupleSource.java} | 42 +++++------ ...InstantInstantFloatColumnTupleSource.java} | 42 +++++------ ...stantInstantInstantColumnTupleSource.java} | 60 ++++++++-------- ...stantInstantIntegerColumnTupleSource.java} | 42 +++++------ ...dInstantInstantLongColumnTupleSource.java} | 42 +++++------ ...nstantInstantObjectColumnTupleSource.java} | 42 +++++------ ...einterpretedBooleanColumnTupleSource.java} | 42 +++++------ ...einterpretedInstantColumnTupleSource.java} | 48 ++++++------- ...InstantInstantShortColumnTupleSource.java} | 42 +++++------ ...stantIntegerBooleanColumnTupleSource.java} | 18 ++--- ...dInstantIntegerByteColumnTupleSource.java} | 18 ++--- ...antIntegerCharacterColumnTupleSource.java} | 18 ++--- ...retedInstantIntegerColumnTupleSource.java} | 18 ++--- ...nstantIntegerDoubleColumnTupleSource.java} | 18 ++--- ...InstantIntegerFloatColumnTupleSource.java} | 18 ++--- ...stantIntegerInstantColumnTupleSource.java} | 42 +++++------ ...stantIntegerIntegerColumnTupleSource.java} | 18 ++--- ...dInstantIntegerLongColumnTupleSource.java} | 18 ++--- ...nstantIntegerObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...InstantIntegerShortColumnTupleSource.java} | 18 ++--- ...dInstantLongBooleanColumnTupleSource.java} | 18 ++--- ...etedInstantLongByteColumnTupleSource.java} | 18 ++--- ...nstantLongCharacterColumnTupleSource.java} | 18 ++--- ...erpretedInstantLongColumnTupleSource.java} | 18 ++--- ...edInstantLongDoubleColumnTupleSource.java} | 18 ++--- ...tedInstantLongFloatColumnTupleSource.java} | 18 ++--- ...dInstantLongInstantColumnTupleSource.java} | 42 +++++------ ...dInstantLongIntegerColumnTupleSource.java} | 18 ++--- ...etedInstantLongLongColumnTupleSource.java} | 18 ++--- ...edInstantLongObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...tedInstantLongShortColumnTupleSource.java} | 18 ++--- ...nstantObjectBooleanColumnTupleSource.java} | 18 ++--- ...edInstantObjectByteColumnTupleSource.java} | 18 ++--- ...tantObjectCharacterColumnTupleSource.java} | 18 ++--- ...pretedInstantObjectColumnTupleSource.java} | 18 ++--- ...InstantObjectDoubleColumnTupleSource.java} | 18 ++--- ...dInstantObjectFloatColumnTupleSource.java} | 18 ++--- ...nstantObjectInstantColumnTupleSource.java} | 42 +++++------ ...nstantObjectIntegerColumnTupleSource.java} | 18 ++--- ...edInstantObjectLongColumnTupleSource.java} | 18 ++--- ...InstantObjectObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...dInstantObjectShortColumnTupleSource.java} | 18 ++--- ...retedBooleanBooleanColumnTupleSource.java} | 18 ++--- ...erpretedBooleanByteColumnTupleSource.java} | 18 ++--- ...tedBooleanCharacterColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...pretedBooleanDoubleColumnTupleSource.java} | 18 ++--- ...rpretedBooleanFloatColumnTupleSource.java} | 18 ++--- ...retedBooleanInstantColumnTupleSource.java} | 42 +++++------ ...retedBooleanIntegerColumnTupleSource.java} | 18 ++--- ...erpretedBooleanLongColumnTupleSource.java} | 18 ++--- ...pretedBooleanObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...rpretedBooleanShortColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 24 +++---- ...erpretedInstantByteColumnTupleSource.java} | 24 +++---- ...tedInstantCharacterColumnTupleSource.java} | 24 +++---- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...pretedInstantDoubleColumnTupleSource.java} | 24 +++---- ...rpretedInstantFloatColumnTupleSource.java} | 24 +++---- ...retedInstantInstantColumnTupleSource.java} | 48 ++++++------- ...retedInstantIntegerColumnTupleSource.java} | 24 +++---- ...erpretedInstantLongColumnTupleSource.java} | 24 +++---- ...pretedInstantObjectColumnTupleSource.java} | 24 +++---- ...einterpretedBooleanColumnTupleSource.java} | 24 +++---- ...einterpretedInstantColumnTupleSource.java} | 30 ++++---- ...rpretedInstantShortColumnTupleSource.java} | 24 +++---- ...InstantShortBooleanColumnTupleSource.java} | 18 ++--- ...tedInstantShortByteColumnTupleSource.java} | 18 ++--- ...stantShortCharacterColumnTupleSource.java} | 18 ++--- ...rpretedInstantShortColumnTupleSource.java} | 18 ++--- ...dInstantShortDoubleColumnTupleSource.java} | 18 ++--- ...edInstantShortFloatColumnTupleSource.java} | 18 ++--- ...InstantShortInstantColumnTupleSource.java} | 42 +++++------ ...InstantShortIntegerColumnTupleSource.java} | 18 ++--- ...tedInstantShortLongColumnTupleSource.java} | 18 ++--- ...dInstantShortObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...edInstantShortShortColumnTupleSource.java} | 18 ++--- ...ShortBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...=> ShortByteInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ortCharacterInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... ShortDoubleInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...> ShortFloatInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...ShortInstantBooleanColumnTupleSource.java} | 36 +++++----- ...=> ShortInstantByteColumnTupleSource.java} | 36 +++++----- ...ortInstantCharacterColumnTupleSource.java} | 36 +++++----- ...ava => ShortInstantColumnTupleSource.java} | 36 +++++----- ... ShortInstantDoubleColumnTupleSource.java} | 36 +++++----- ...> ShortInstantFloatColumnTupleSource.java} | 36 +++++----- ...ShortInstantInstantColumnTupleSource.java} | 54 +++++++------- ...ShortInstantIntegerColumnTupleSource.java} | 36 +++++----- ...=> ShortInstantLongColumnTupleSource.java} | 36 +++++----- ... ShortInstantObjectColumnTupleSource.java} | 36 +++++----- ...einterpretedBooleanColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 42 +++++------ ...> ShortInstantShortColumnTupleSource.java} | 36 +++++----- ...ShortIntegerInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...=> ShortLongInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ... ShortObjectInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedBooleanInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...retedInstantBooleanColumnTupleSource.java} | 18 ++--- ...erpretedInstantByteColumnTupleSource.java} | 18 ++--- ...tedInstantCharacterColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- ...pretedInstantDoubleColumnTupleSource.java} | 18 ++--- ...rpretedInstantFloatColumnTupleSource.java} | 18 ++--- ...retedInstantInstantColumnTupleSource.java} | 42 +++++------ ...retedInstantIntegerColumnTupleSource.java} | 18 ++--- ...erpretedInstantLongColumnTupleSource.java} | 18 ++--- ...pretedInstantObjectColumnTupleSource.java} | 18 ++--- ...einterpretedBooleanColumnTupleSource.java} | 18 ++--- ...einterpretedInstantColumnTupleSource.java} | 24 +++---- ...rpretedInstantShortColumnTupleSource.java} | 18 ++--- ...> ShortShortInstantColumnTupleSource.java} | 36 +++++----- ...einterpretedInstantColumnTupleSource.java} | 18 ++--- 772 files changed, 11364 insertions(+), 11364 deletions(-) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanBooleanDateTimeColumnTupleSource.java => BooleanBooleanInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanBooleanReinterpretedDateTimeColumnTupleSource.java => BooleanBooleanReinterpretedInstantColumnTupleSource.java} (91%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanByteDateTimeColumnTupleSource.java => BooleanByteInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanByteReinterpretedDateTimeColumnTupleSource.java => BooleanByteReinterpretedInstantColumnTupleSource.java} (91%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanCharacterDateTimeColumnTupleSource.java => BooleanCharacterInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanCharacterReinterpretedDateTimeColumnTupleSource.java => BooleanCharacterReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDoubleDateTimeColumnTupleSource.java => BooleanDoubleInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDoubleReinterpretedDateTimeColumnTupleSource.java => BooleanDoubleReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanFloatDateTimeColumnTupleSource.java => BooleanFloatInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanFloatReinterpretedDateTimeColumnTupleSource.java => BooleanFloatReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeBooleanColumnTupleSource.java => BooleanInstantBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeByteColumnTupleSource.java => BooleanInstantByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeCharacterColumnTupleSource.java => BooleanInstantCharacterColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeColumnTupleSource.java => BooleanInstantColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeDoubleColumnTupleSource.java => BooleanInstantDoubleColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeFloatColumnTupleSource.java => BooleanInstantFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeDateTimeColumnTupleSource.java => BooleanInstantInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeIntegerColumnTupleSource.java => BooleanInstantIntegerColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeLongColumnTupleSource.java => BooleanInstantLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeObjectColumnTupleSource.java => BooleanInstantObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeReinterpretedBooleanColumnTupleSource.java => BooleanInstantReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeReinterpretedDateTimeColumnTupleSource.java => BooleanInstantReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanDateTimeShortColumnTupleSource.java => BooleanInstantShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanIntegerDateTimeColumnTupleSource.java => BooleanIntegerInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanIntegerReinterpretedDateTimeColumnTupleSource.java => BooleanIntegerReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanLongDateTimeColumnTupleSource.java => BooleanLongInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanLongReinterpretedDateTimeColumnTupleSource.java => BooleanLongReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanObjectDateTimeColumnTupleSource.java => BooleanObjectInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanObjectReinterpretedDateTimeColumnTupleSource.java => BooleanObjectReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedBooleanDateTimeColumnTupleSource.java => BooleanReinterpretedBooleanInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => BooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeBooleanColumnTupleSource.java => BooleanReinterpretedInstantBooleanColumnTupleSource.java} (91%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeByteColumnTupleSource.java => BooleanReinterpretedInstantByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeCharacterColumnTupleSource.java => BooleanReinterpretedInstantCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeColumnTupleSource.java => BooleanReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeDoubleColumnTupleSource.java => BooleanReinterpretedInstantDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeFloatColumnTupleSource.java => BooleanReinterpretedInstantFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeDateTimeColumnTupleSource.java => BooleanReinterpretedInstantInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeIntegerColumnTupleSource.java => BooleanReinterpretedInstantIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeLongColumnTupleSource.java => BooleanReinterpretedInstantLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeObjectColumnTupleSource.java => BooleanReinterpretedInstantObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => BooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => BooleanReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (87%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanReinterpretedDateTimeShortColumnTupleSource.java => BooleanReinterpretedInstantShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanShortDateTimeColumnTupleSource.java => BooleanShortInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{BooleanShortReinterpretedDateTimeColumnTupleSource.java => BooleanShortReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteBooleanDateTimeColumnTupleSource.java => ByteBooleanInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteBooleanReinterpretedDateTimeColumnTupleSource.java => ByteBooleanReinterpretedInstantColumnTupleSource.java} (91%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteByteDateTimeColumnTupleSource.java => ByteByteInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteByteReinterpretedDateTimeColumnTupleSource.java => ByteByteReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteCharacterDateTimeColumnTupleSource.java => ByteCharacterInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteCharacterReinterpretedDateTimeColumnTupleSource.java => ByteCharacterReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDoubleDateTimeColumnTupleSource.java => ByteDoubleInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDoubleReinterpretedDateTimeColumnTupleSource.java => ByteDoubleReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteFloatDateTimeColumnTupleSource.java => ByteFloatInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteFloatReinterpretedDateTimeColumnTupleSource.java => ByteFloatReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeBooleanColumnTupleSource.java => ByteInstantBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeByteColumnTupleSource.java => ByteInstantByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeCharacterColumnTupleSource.java => ByteInstantCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeColumnTupleSource.java => ByteInstantColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeDoubleColumnTupleSource.java => ByteInstantDoubleColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeFloatColumnTupleSource.java => ByteInstantFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeDateTimeColumnTupleSource.java => ByteInstantInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeIntegerColumnTupleSource.java => ByteInstantIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeLongColumnTupleSource.java => ByteInstantLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeObjectColumnTupleSource.java => ByteInstantObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeReinterpretedBooleanColumnTupleSource.java => ByteInstantReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeReinterpretedDateTimeColumnTupleSource.java => ByteInstantReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteDateTimeShortColumnTupleSource.java => ByteInstantShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteIntegerDateTimeColumnTupleSource.java => ByteIntegerInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteIntegerReinterpretedDateTimeColumnTupleSource.java => ByteIntegerReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteLongDateTimeColumnTupleSource.java => ByteLongInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteLongReinterpretedDateTimeColumnTupleSource.java => ByteLongReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteObjectDateTimeColumnTupleSource.java => ByteObjectInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteObjectReinterpretedDateTimeColumnTupleSource.java => ByteObjectReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedBooleanDateTimeColumnTupleSource.java => ByteReinterpretedBooleanInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => ByteReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeBooleanColumnTupleSource.java => ByteReinterpretedInstantBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeByteColumnTupleSource.java => ByteReinterpretedInstantByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeCharacterColumnTupleSource.java => ByteReinterpretedInstantCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeColumnTupleSource.java => ByteReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeDoubleColumnTupleSource.java => ByteReinterpretedInstantDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeFloatColumnTupleSource.java => ByteReinterpretedInstantFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeDateTimeColumnTupleSource.java => ByteReinterpretedInstantInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeIntegerColumnTupleSource.java => ByteReinterpretedInstantIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeLongColumnTupleSource.java => ByteReinterpretedInstantLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeObjectColumnTupleSource.java => ByteReinterpretedInstantObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => ByteReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => ByteReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteReinterpretedDateTimeShortColumnTupleSource.java => ByteReinterpretedInstantShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteShortDateTimeColumnTupleSource.java => ByteShortInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ByteShortReinterpretedDateTimeColumnTupleSource.java => ByteShortReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterBooleanDateTimeColumnTupleSource.java => CharacterBooleanInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterBooleanReinterpretedDateTimeColumnTupleSource.java => CharacterBooleanReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterByteDateTimeColumnTupleSource.java => CharacterByteInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterByteReinterpretedDateTimeColumnTupleSource.java => CharacterByteReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterCharacterDateTimeColumnTupleSource.java => CharacterCharacterInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterCharacterReinterpretedDateTimeColumnTupleSource.java => CharacterCharacterReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDoubleDateTimeColumnTupleSource.java => CharacterDoubleInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDoubleReinterpretedDateTimeColumnTupleSource.java => CharacterDoubleReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterFloatDateTimeColumnTupleSource.java => CharacterFloatInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterFloatReinterpretedDateTimeColumnTupleSource.java => CharacterFloatReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeBooleanColumnTupleSource.java => CharacterInstantBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeByteColumnTupleSource.java => CharacterInstantByteColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeCharacterColumnTupleSource.java => CharacterInstantCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeColumnTupleSource.java => CharacterInstantColumnTupleSource.java} (80%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeDoubleColumnTupleSource.java => CharacterInstantDoubleColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeFloatColumnTupleSource.java => CharacterInstantFloatColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeDateTimeColumnTupleSource.java => CharacterInstantInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeIntegerColumnTupleSource.java => CharacterInstantIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeLongColumnTupleSource.java => CharacterInstantLongColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeObjectColumnTupleSource.java => CharacterInstantObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeReinterpretedBooleanColumnTupleSource.java => CharacterInstantReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeReinterpretedDateTimeColumnTupleSource.java => CharacterInstantReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterDateTimeShortColumnTupleSource.java => CharacterInstantShortColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterIntegerDateTimeColumnTupleSource.java => CharacterIntegerInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterIntegerReinterpretedDateTimeColumnTupleSource.java => CharacterIntegerReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterLongDateTimeColumnTupleSource.java => CharacterLongInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterLongReinterpretedDateTimeColumnTupleSource.java => CharacterLongReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterObjectDateTimeColumnTupleSource.java => CharacterObjectInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterObjectReinterpretedDateTimeColumnTupleSource.java => CharacterObjectReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedBooleanDateTimeColumnTupleSource.java => CharacterReinterpretedBooleanInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => CharacterReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeBooleanColumnTupleSource.java => CharacterReinterpretedInstantBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeByteColumnTupleSource.java => CharacterReinterpretedInstantByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeCharacterColumnTupleSource.java => CharacterReinterpretedInstantCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeColumnTupleSource.java => CharacterReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeDoubleColumnTupleSource.java => CharacterReinterpretedInstantDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeFloatColumnTupleSource.java => CharacterReinterpretedInstantFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeDateTimeColumnTupleSource.java => CharacterReinterpretedInstantInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeIntegerColumnTupleSource.java => CharacterReinterpretedInstantIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeLongColumnTupleSource.java => CharacterReinterpretedInstantLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeObjectColumnTupleSource.java => CharacterReinterpretedInstantObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => CharacterReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => CharacterReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterReinterpretedDateTimeShortColumnTupleSource.java => CharacterReinterpretedInstantShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterShortDateTimeColumnTupleSource.java => CharacterShortInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{CharacterShortReinterpretedDateTimeColumnTupleSource.java => CharacterShortReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleBooleanDateTimeColumnTupleSource.java => DoubleBooleanInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleBooleanReinterpretedDateTimeColumnTupleSource.java => DoubleBooleanReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleByteDateTimeColumnTupleSource.java => DoubleByteInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleByteReinterpretedDateTimeColumnTupleSource.java => DoubleByteReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleCharacterDateTimeColumnTupleSource.java => DoubleCharacterInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleCharacterReinterpretedDateTimeColumnTupleSource.java => DoubleCharacterReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDoubleDateTimeColumnTupleSource.java => DoubleDoubleInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDoubleReinterpretedDateTimeColumnTupleSource.java => DoubleDoubleReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleFloatDateTimeColumnTupleSource.java => DoubleFloatInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleFloatReinterpretedDateTimeColumnTupleSource.java => DoubleFloatReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeBooleanColumnTupleSource.java => DoubleInstantBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeByteColumnTupleSource.java => DoubleInstantByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeCharacterColumnTupleSource.java => DoubleInstantCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeColumnTupleSource.java => DoubleInstantColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeDoubleColumnTupleSource.java => DoubleInstantDoubleColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeFloatColumnTupleSource.java => DoubleInstantFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeDateTimeColumnTupleSource.java => DoubleInstantInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeIntegerColumnTupleSource.java => DoubleInstantIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeLongColumnTupleSource.java => DoubleInstantLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeObjectColumnTupleSource.java => DoubleInstantObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeReinterpretedBooleanColumnTupleSource.java => DoubleInstantReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeReinterpretedDateTimeColumnTupleSource.java => DoubleInstantReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleDateTimeShortColumnTupleSource.java => DoubleInstantShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleIntegerDateTimeColumnTupleSource.java => DoubleIntegerInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleIntegerReinterpretedDateTimeColumnTupleSource.java => DoubleIntegerReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleLongDateTimeColumnTupleSource.java => DoubleLongInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleLongReinterpretedDateTimeColumnTupleSource.java => DoubleLongReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleObjectDateTimeColumnTupleSource.java => DoubleObjectInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleObjectReinterpretedDateTimeColumnTupleSource.java => DoubleObjectReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedBooleanDateTimeColumnTupleSource.java => DoubleReinterpretedBooleanInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => DoubleReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeBooleanColumnTupleSource.java => DoubleReinterpretedInstantBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeByteColumnTupleSource.java => DoubleReinterpretedInstantByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeCharacterColumnTupleSource.java => DoubleReinterpretedInstantCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeColumnTupleSource.java => DoubleReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeDoubleColumnTupleSource.java => DoubleReinterpretedInstantDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeFloatColumnTupleSource.java => DoubleReinterpretedInstantFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeDateTimeColumnTupleSource.java => DoubleReinterpretedInstantInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeIntegerColumnTupleSource.java => DoubleReinterpretedInstantIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeLongColumnTupleSource.java => DoubleReinterpretedInstantLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeObjectColumnTupleSource.java => DoubleReinterpretedInstantObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => DoubleReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => DoubleReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleReinterpretedDateTimeShortColumnTupleSource.java => DoubleReinterpretedInstantShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleShortDateTimeColumnTupleSource.java => DoubleShortInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DoubleShortReinterpretedDateTimeColumnTupleSource.java => DoubleShortReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatBooleanDateTimeColumnTupleSource.java => FloatBooleanInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatBooleanReinterpretedDateTimeColumnTupleSource.java => FloatBooleanReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatByteDateTimeColumnTupleSource.java => FloatByteInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatByteReinterpretedDateTimeColumnTupleSource.java => FloatByteReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatCharacterDateTimeColumnTupleSource.java => FloatCharacterInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatCharacterReinterpretedDateTimeColumnTupleSource.java => FloatCharacterReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDoubleDateTimeColumnTupleSource.java => FloatDoubleInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDoubleReinterpretedDateTimeColumnTupleSource.java => FloatDoubleReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatFloatDateTimeColumnTupleSource.java => FloatFloatInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatFloatReinterpretedDateTimeColumnTupleSource.java => FloatFloatReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeBooleanColumnTupleSource.java => FloatInstantBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeByteColumnTupleSource.java => FloatInstantByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeCharacterColumnTupleSource.java => FloatInstantCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeColumnTupleSource.java => FloatInstantColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeDoubleColumnTupleSource.java => FloatInstantDoubleColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeFloatColumnTupleSource.java => FloatInstantFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeDateTimeColumnTupleSource.java => FloatInstantInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeIntegerColumnTupleSource.java => FloatInstantIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeLongColumnTupleSource.java => FloatInstantLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeObjectColumnTupleSource.java => FloatInstantObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeReinterpretedBooleanColumnTupleSource.java => FloatInstantReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeReinterpretedDateTimeColumnTupleSource.java => FloatInstantReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatDateTimeShortColumnTupleSource.java => FloatInstantShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatIntegerDateTimeColumnTupleSource.java => FloatIntegerInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatIntegerReinterpretedDateTimeColumnTupleSource.java => FloatIntegerReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatLongDateTimeColumnTupleSource.java => FloatLongInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatLongReinterpretedDateTimeColumnTupleSource.java => FloatLongReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatObjectDateTimeColumnTupleSource.java => FloatObjectInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatObjectReinterpretedDateTimeColumnTupleSource.java => FloatObjectReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedBooleanDateTimeColumnTupleSource.java => FloatReinterpretedBooleanInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => FloatReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeBooleanColumnTupleSource.java => FloatReinterpretedInstantBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeByteColumnTupleSource.java => FloatReinterpretedInstantByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeCharacterColumnTupleSource.java => FloatReinterpretedInstantCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeColumnTupleSource.java => FloatReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeDoubleColumnTupleSource.java => FloatReinterpretedInstantDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeFloatColumnTupleSource.java => FloatReinterpretedInstantFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeDateTimeColumnTupleSource.java => FloatReinterpretedInstantInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeIntegerColumnTupleSource.java => FloatReinterpretedInstantIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeLongColumnTupleSource.java => FloatReinterpretedInstantLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeObjectColumnTupleSource.java => FloatReinterpretedInstantObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => FloatReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => FloatReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatReinterpretedDateTimeShortColumnTupleSource.java => FloatReinterpretedInstantShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatShortDateTimeColumnTupleSource.java => FloatShortInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{FloatShortReinterpretedDateTimeColumnTupleSource.java => FloatShortReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanBooleanColumnTupleSource.java => InstantBooleanBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanByteColumnTupleSource.java => InstantBooleanByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanCharacterColumnTupleSource.java => InstantBooleanCharacterColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanColumnTupleSource.java => InstantBooleanColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanDoubleColumnTupleSource.java => InstantBooleanDoubleColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanFloatColumnTupleSource.java => InstantBooleanFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanDateTimeColumnTupleSource.java => InstantBooleanInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanIntegerColumnTupleSource.java => InstantBooleanIntegerColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanLongColumnTupleSource.java => InstantBooleanLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanObjectColumnTupleSource.java => InstantBooleanObjectColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanReinterpretedBooleanColumnTupleSource.java => InstantBooleanReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanReinterpretedDateTimeColumnTupleSource.java => InstantBooleanReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeBooleanShortColumnTupleSource.java => InstantBooleanShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteBooleanColumnTupleSource.java => InstantByteBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteByteColumnTupleSource.java => InstantByteByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteCharacterColumnTupleSource.java => InstantByteCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteColumnTupleSource.java => InstantByteColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteDoubleColumnTupleSource.java => InstantByteDoubleColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteFloatColumnTupleSource.java => InstantByteFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteDateTimeColumnTupleSource.java => InstantByteInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteIntegerColumnTupleSource.java => InstantByteIntegerColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteLongColumnTupleSource.java => InstantByteLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteObjectColumnTupleSource.java => InstantByteObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteReinterpretedBooleanColumnTupleSource.java => InstantByteReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteReinterpretedDateTimeColumnTupleSource.java => InstantByteReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeByteShortColumnTupleSource.java => InstantByteShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterBooleanColumnTupleSource.java => InstantCharacterBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterByteColumnTupleSource.java => InstantCharacterByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterCharacterColumnTupleSource.java => InstantCharacterCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterColumnTupleSource.java => InstantCharacterColumnTupleSource.java} (80%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterDoubleColumnTupleSource.java => InstantCharacterDoubleColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterFloatColumnTupleSource.java => InstantCharacterFloatColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterDateTimeColumnTupleSource.java => InstantCharacterInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterIntegerColumnTupleSource.java => InstantCharacterIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterLongColumnTupleSource.java => InstantCharacterLongColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterObjectColumnTupleSource.java => InstantCharacterObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterReinterpretedBooleanColumnTupleSource.java => InstantCharacterReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterReinterpretedDateTimeColumnTupleSource.java => InstantCharacterReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeCharacterShortColumnTupleSource.java => InstantCharacterShortColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleBooleanColumnTupleSource.java => InstantDoubleBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleByteColumnTupleSource.java => InstantDoubleByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleCharacterColumnTupleSource.java => InstantDoubleCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleColumnTupleSource.java => InstantDoubleColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleDoubleColumnTupleSource.java => InstantDoubleDoubleColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleFloatColumnTupleSource.java => InstantDoubleFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleDateTimeColumnTupleSource.java => InstantDoubleInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleIntegerColumnTupleSource.java => InstantDoubleIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleLongColumnTupleSource.java => InstantDoubleLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleObjectColumnTupleSource.java => InstantDoubleObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleReinterpretedBooleanColumnTupleSource.java => InstantDoubleReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleReinterpretedDateTimeColumnTupleSource.java => InstantDoubleReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDoubleShortColumnTupleSource.java => InstantDoubleShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatBooleanColumnTupleSource.java => InstantFloatBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatByteColumnTupleSource.java => InstantFloatByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatCharacterColumnTupleSource.java => InstantFloatCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatColumnTupleSource.java => InstantFloatColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatDoubleColumnTupleSource.java => InstantFloatDoubleColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatFloatColumnTupleSource.java => InstantFloatFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatDateTimeColumnTupleSource.java => InstantFloatInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatIntegerColumnTupleSource.java => InstantFloatIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatLongColumnTupleSource.java => InstantFloatLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatObjectColumnTupleSource.java => InstantFloatObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatReinterpretedBooleanColumnTupleSource.java => InstantFloatReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatReinterpretedDateTimeColumnTupleSource.java => InstantFloatReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeFloatShortColumnTupleSource.java => InstantFloatShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeBooleanColumnTupleSource.java => InstantInstantBooleanColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeByteColumnTupleSource.java => InstantInstantByteColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeCharacterColumnTupleSource.java => InstantInstantCharacterColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeColumnTupleSource.java => InstantInstantColumnTupleSource.java} (70%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeDoubleColumnTupleSource.java => InstantInstantDoubleColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeFloatColumnTupleSource.java => InstantInstantFloatColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeDateTimeColumnTupleSource.java => InstantInstantInstantColumnTupleSource.java} (65%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeIntegerColumnTupleSource.java => InstantInstantIntegerColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeLongColumnTupleSource.java => InstantInstantLongColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeObjectColumnTupleSource.java => InstantInstantObjectColumnTupleSource.java} (73%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeReinterpretedBooleanColumnTupleSource.java => InstantInstantReinterpretedBooleanColumnTupleSource.java} (73%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeReinterpretedDateTimeColumnTupleSource.java => InstantInstantReinterpretedInstantColumnTupleSource.java} (70%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeDateTimeShortColumnTupleSource.java => InstantInstantShortColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerBooleanColumnTupleSource.java => InstantIntegerBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerByteColumnTupleSource.java => InstantIntegerByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerCharacterColumnTupleSource.java => InstantIntegerCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerColumnTupleSource.java => InstantIntegerColumnTupleSource.java} (80%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerDoubleColumnTupleSource.java => InstantIntegerDoubleColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerFloatColumnTupleSource.java => InstantIntegerFloatColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerDateTimeColumnTupleSource.java => InstantIntegerInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerIntegerColumnTupleSource.java => InstantIntegerIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerLongColumnTupleSource.java => InstantIntegerLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerObjectColumnTupleSource.java => InstantIntegerObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerReinterpretedBooleanColumnTupleSource.java => InstantIntegerReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerReinterpretedDateTimeColumnTupleSource.java => InstantIntegerReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeIntegerShortColumnTupleSource.java => InstantIntegerShortColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongBooleanColumnTupleSource.java => InstantLongBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongByteColumnTupleSource.java => InstantLongByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongCharacterColumnTupleSource.java => InstantLongCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongColumnTupleSource.java => InstantLongColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongDoubleColumnTupleSource.java => InstantLongDoubleColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongFloatColumnTupleSource.java => InstantLongFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongDateTimeColumnTupleSource.java => InstantLongInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongIntegerColumnTupleSource.java => InstantLongIntegerColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongLongColumnTupleSource.java => InstantLongLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongObjectColumnTupleSource.java => InstantLongObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongReinterpretedBooleanColumnTupleSource.java => InstantLongReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongReinterpretedDateTimeColumnTupleSource.java => InstantLongReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeLongShortColumnTupleSource.java => InstantLongShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectBooleanColumnTupleSource.java => InstantObjectBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectByteColumnTupleSource.java => InstantObjectByteColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectCharacterColumnTupleSource.java => InstantObjectCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectColumnTupleSource.java => InstantObjectColumnTupleSource.java} (80%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectDoubleColumnTupleSource.java => InstantObjectDoubleColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectFloatColumnTupleSource.java => InstantObjectFloatColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectDateTimeColumnTupleSource.java => InstantObjectInstantColumnTupleSource.java} (73%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectIntegerColumnTupleSource.java => InstantObjectIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectLongColumnTupleSource.java => InstantObjectLongColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectObjectColumnTupleSource.java => InstantObjectObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectReinterpretedBooleanColumnTupleSource.java => InstantObjectReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectReinterpretedDateTimeColumnTupleSource.java => InstantObjectReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeObjectShortColumnTupleSource.java => InstantObjectShortColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanBooleanColumnTupleSource.java => InstantReinterpretedBooleanBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanByteColumnTupleSource.java => InstantReinterpretedBooleanByteColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanCharacterColumnTupleSource.java => InstantReinterpretedBooleanCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanColumnTupleSource.java => InstantReinterpretedBooleanColumnTupleSource.java} (80%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanDoubleColumnTupleSource.java => InstantReinterpretedBooleanDoubleColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanFloatColumnTupleSource.java => InstantReinterpretedBooleanFloatColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanDateTimeColumnTupleSource.java => InstantReinterpretedBooleanInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanIntegerColumnTupleSource.java => InstantReinterpretedBooleanIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanLongColumnTupleSource.java => InstantReinterpretedBooleanLongColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanObjectColumnTupleSource.java => InstantReinterpretedBooleanObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java => InstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => InstantReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (78%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedBooleanShortColumnTupleSource.java => InstantReinterpretedBooleanShortColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeBooleanColumnTupleSource.java => InstantReinterpretedInstantBooleanColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeByteColumnTupleSource.java => InstantReinterpretedInstantByteColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeCharacterColumnTupleSource.java => InstantReinterpretedInstantCharacterColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeColumnTupleSource.java => InstantReinterpretedInstantColumnTupleSource.java} (76%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeDoubleColumnTupleSource.java => InstantReinterpretedInstantDoubleColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeFloatColumnTupleSource.java => InstantReinterpretedInstantFloatColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeDateTimeColumnTupleSource.java => InstantReinterpretedInstantInstantColumnTupleSource.java} (70%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeIntegerColumnTupleSource.java => InstantReinterpretedInstantIntegerColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeLongColumnTupleSource.java => InstantReinterpretedInstantLongColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeObjectColumnTupleSource.java => InstantReinterpretedInstantObjectColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => InstantReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (78%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => InstantReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (75%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeReinterpretedDateTimeShortColumnTupleSource.java => InstantReinterpretedInstantShortColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortBooleanColumnTupleSource.java => InstantShortBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortByteColumnTupleSource.java => InstantShortByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortCharacterColumnTupleSource.java => InstantShortCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortColumnTupleSource.java => InstantShortColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortDoubleColumnTupleSource.java => InstantShortDoubleColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortFloatColumnTupleSource.java => InstantShortFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortDateTimeColumnTupleSource.java => InstantShortInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortIntegerColumnTupleSource.java => InstantShortIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortLongColumnTupleSource.java => InstantShortLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortObjectColumnTupleSource.java => InstantShortObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortReinterpretedBooleanColumnTupleSource.java => InstantShortReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortReinterpretedDateTimeColumnTupleSource.java => InstantShortReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{DateTimeShortShortColumnTupleSource.java => InstantShortShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerBooleanDateTimeColumnTupleSource.java => IntegerBooleanInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerBooleanReinterpretedDateTimeColumnTupleSource.java => IntegerBooleanReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerByteDateTimeColumnTupleSource.java => IntegerByteInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerByteReinterpretedDateTimeColumnTupleSource.java => IntegerByteReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerCharacterDateTimeColumnTupleSource.java => IntegerCharacterInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerCharacterReinterpretedDateTimeColumnTupleSource.java => IntegerCharacterReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDoubleDateTimeColumnTupleSource.java => IntegerDoubleInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDoubleReinterpretedDateTimeColumnTupleSource.java => IntegerDoubleReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerFloatDateTimeColumnTupleSource.java => IntegerFloatInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerFloatReinterpretedDateTimeColumnTupleSource.java => IntegerFloatReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeBooleanColumnTupleSource.java => IntegerInstantBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeByteColumnTupleSource.java => IntegerInstantByteColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeCharacterColumnTupleSource.java => IntegerInstantCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeColumnTupleSource.java => IntegerInstantColumnTupleSource.java} (80%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeDoubleColumnTupleSource.java => IntegerInstantDoubleColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeFloatColumnTupleSource.java => IntegerInstantFloatColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeDateTimeColumnTupleSource.java => IntegerInstantInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeIntegerColumnTupleSource.java => IntegerInstantIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeLongColumnTupleSource.java => IntegerInstantLongColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeObjectColumnTupleSource.java => IntegerInstantObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeReinterpretedBooleanColumnTupleSource.java => IntegerInstantReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeReinterpretedDateTimeColumnTupleSource.java => IntegerInstantReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerDateTimeShortColumnTupleSource.java => IntegerInstantShortColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerIntegerDateTimeColumnTupleSource.java => IntegerIntegerInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerIntegerReinterpretedDateTimeColumnTupleSource.java => IntegerIntegerReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerLongDateTimeColumnTupleSource.java => IntegerLongInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerLongReinterpretedDateTimeColumnTupleSource.java => IntegerLongReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerObjectDateTimeColumnTupleSource.java => IntegerObjectInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerObjectReinterpretedDateTimeColumnTupleSource.java => IntegerObjectReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedBooleanDateTimeColumnTupleSource.java => IntegerReinterpretedBooleanInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => IntegerReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeBooleanColumnTupleSource.java => IntegerReinterpretedInstantBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeByteColumnTupleSource.java => IntegerReinterpretedInstantByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeCharacterColumnTupleSource.java => IntegerReinterpretedInstantCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeColumnTupleSource.java => IntegerReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeDoubleColumnTupleSource.java => IntegerReinterpretedInstantDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeFloatColumnTupleSource.java => IntegerReinterpretedInstantFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeDateTimeColumnTupleSource.java => IntegerReinterpretedInstantInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeIntegerColumnTupleSource.java => IntegerReinterpretedInstantIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeLongColumnTupleSource.java => IntegerReinterpretedInstantLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeObjectColumnTupleSource.java => IntegerReinterpretedInstantObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => IntegerReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => IntegerReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerReinterpretedDateTimeShortColumnTupleSource.java => IntegerReinterpretedInstantShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerShortDateTimeColumnTupleSource.java => IntegerShortInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{IntegerShortReinterpretedDateTimeColumnTupleSource.java => IntegerShortReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongBooleanDateTimeColumnTupleSource.java => LongBooleanInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongBooleanReinterpretedDateTimeColumnTupleSource.java => LongBooleanReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongByteDateTimeColumnTupleSource.java => LongByteInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongByteReinterpretedDateTimeColumnTupleSource.java => LongByteReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongCharacterDateTimeColumnTupleSource.java => LongCharacterInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongCharacterReinterpretedDateTimeColumnTupleSource.java => LongCharacterReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDoubleDateTimeColumnTupleSource.java => LongDoubleInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDoubleReinterpretedDateTimeColumnTupleSource.java => LongDoubleReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongFloatDateTimeColumnTupleSource.java => LongFloatInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongFloatReinterpretedDateTimeColumnTupleSource.java => LongFloatReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeBooleanColumnTupleSource.java => LongInstantBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeByteColumnTupleSource.java => LongInstantByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeCharacterColumnTupleSource.java => LongInstantCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeColumnTupleSource.java => LongInstantColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeDoubleColumnTupleSource.java => LongInstantDoubleColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeFloatColumnTupleSource.java => LongInstantFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeDateTimeColumnTupleSource.java => LongInstantInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeIntegerColumnTupleSource.java => LongInstantIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeLongColumnTupleSource.java => LongInstantLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeObjectColumnTupleSource.java => LongInstantObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeReinterpretedBooleanColumnTupleSource.java => LongInstantReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeReinterpretedDateTimeColumnTupleSource.java => LongInstantReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongDateTimeShortColumnTupleSource.java => LongInstantShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongIntegerDateTimeColumnTupleSource.java => LongIntegerInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongIntegerReinterpretedDateTimeColumnTupleSource.java => LongIntegerReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongLongDateTimeColumnTupleSource.java => LongLongInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongLongReinterpretedDateTimeColumnTupleSource.java => LongLongReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongObjectDateTimeColumnTupleSource.java => LongObjectInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongObjectReinterpretedDateTimeColumnTupleSource.java => LongObjectReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedBooleanDateTimeColumnTupleSource.java => LongReinterpretedBooleanInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => LongReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeBooleanColumnTupleSource.java => LongReinterpretedInstantBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeByteColumnTupleSource.java => LongReinterpretedInstantByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeCharacterColumnTupleSource.java => LongReinterpretedInstantCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeColumnTupleSource.java => LongReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeDoubleColumnTupleSource.java => LongReinterpretedInstantDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeFloatColumnTupleSource.java => LongReinterpretedInstantFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeDateTimeColumnTupleSource.java => LongReinterpretedInstantInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeIntegerColumnTupleSource.java => LongReinterpretedInstantIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeLongColumnTupleSource.java => LongReinterpretedInstantLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeObjectColumnTupleSource.java => LongReinterpretedInstantObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => LongReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => LongReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongReinterpretedDateTimeShortColumnTupleSource.java => LongReinterpretedInstantShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongShortDateTimeColumnTupleSource.java => LongShortInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{LongShortReinterpretedDateTimeColumnTupleSource.java => LongShortReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectBooleanDateTimeColumnTupleSource.java => ObjectBooleanInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectBooleanReinterpretedDateTimeColumnTupleSource.java => ObjectBooleanReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectByteDateTimeColumnTupleSource.java => ObjectByteInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectByteReinterpretedDateTimeColumnTupleSource.java => ObjectByteReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectCharacterDateTimeColumnTupleSource.java => ObjectCharacterInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectCharacterReinterpretedDateTimeColumnTupleSource.java => ObjectCharacterReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDoubleDateTimeColumnTupleSource.java => ObjectDoubleInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDoubleReinterpretedDateTimeColumnTupleSource.java => ObjectDoubleReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectFloatDateTimeColumnTupleSource.java => ObjectFloatInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectFloatReinterpretedDateTimeColumnTupleSource.java => ObjectFloatReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeBooleanColumnTupleSource.java => ObjectInstantBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeByteColumnTupleSource.java => ObjectInstantByteColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeCharacterColumnTupleSource.java => ObjectInstantCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeColumnTupleSource.java => ObjectInstantColumnTupleSource.java} (80%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeDoubleColumnTupleSource.java => ObjectInstantDoubleColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeFloatColumnTupleSource.java => ObjectInstantFloatColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeDateTimeColumnTupleSource.java => ObjectInstantInstantColumnTupleSource.java} (73%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeIntegerColumnTupleSource.java => ObjectInstantIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeLongColumnTupleSource.java => ObjectInstantLongColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeObjectColumnTupleSource.java => ObjectInstantObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeReinterpretedBooleanColumnTupleSource.java => ObjectInstantReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeReinterpretedDateTimeColumnTupleSource.java => ObjectInstantReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectDateTimeShortColumnTupleSource.java => ObjectInstantShortColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectIntegerDateTimeColumnTupleSource.java => ObjectIntegerInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectIntegerReinterpretedDateTimeColumnTupleSource.java => ObjectIntegerReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectLongDateTimeColumnTupleSource.java => ObjectLongInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectLongReinterpretedDateTimeColumnTupleSource.java => ObjectLongReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectObjectDateTimeColumnTupleSource.java => ObjectObjectInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectObjectReinterpretedDateTimeColumnTupleSource.java => ObjectObjectReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedBooleanDateTimeColumnTupleSource.java => ObjectReinterpretedBooleanInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => ObjectReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeBooleanColumnTupleSource.java => ObjectReinterpretedInstantBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeByteColumnTupleSource.java => ObjectReinterpretedInstantByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeCharacterColumnTupleSource.java => ObjectReinterpretedInstantCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeColumnTupleSource.java => ObjectReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeDoubleColumnTupleSource.java => ObjectReinterpretedInstantDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeFloatColumnTupleSource.java => ObjectReinterpretedInstantFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeDateTimeColumnTupleSource.java => ObjectReinterpretedInstantInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeIntegerColumnTupleSource.java => ObjectReinterpretedInstantIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeLongColumnTupleSource.java => ObjectReinterpretedInstantLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeObjectColumnTupleSource.java => ObjectReinterpretedInstantObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => ObjectReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => ObjectReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectReinterpretedDateTimeShortColumnTupleSource.java => ObjectReinterpretedInstantShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectShortDateTimeColumnTupleSource.java => ObjectShortInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ObjectShortReinterpretedDateTimeColumnTupleSource.java => ObjectShortReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanBooleanDateTimeColumnTupleSource.java => ReinterpretedBooleanBooleanInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanBooleanReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanBooleanReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanByteDateTimeColumnTupleSource.java => ReinterpretedBooleanByteInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanByteReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanByteReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanCharacterDateTimeColumnTupleSource.java => ReinterpretedBooleanCharacterInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanCharacterReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanCharacterReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDoubleDateTimeColumnTupleSource.java => ReinterpretedBooleanDoubleInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDoubleReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanDoubleReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanFloatDateTimeColumnTupleSource.java => ReinterpretedBooleanFloatInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanFloatReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanFloatReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeBooleanColumnTupleSource.java => ReinterpretedBooleanInstantBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeByteColumnTupleSource.java => ReinterpretedBooleanInstantByteColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeCharacterColumnTupleSource.java => ReinterpretedBooleanInstantCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeColumnTupleSource.java => ReinterpretedBooleanInstantColumnTupleSource.java} (80%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeDoubleColumnTupleSource.java => ReinterpretedBooleanInstantDoubleColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeFloatColumnTupleSource.java => ReinterpretedBooleanInstantFloatColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeDateTimeColumnTupleSource.java => ReinterpretedBooleanInstantInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeIntegerColumnTupleSource.java => ReinterpretedBooleanInstantIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeLongColumnTupleSource.java => ReinterpretedBooleanInstantLongColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeObjectColumnTupleSource.java => ReinterpretedBooleanInstantObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeReinterpretedBooleanColumnTupleSource.java => ReinterpretedBooleanInstantReinterpretedBooleanColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanInstantReinterpretedInstantColumnTupleSource.java} (78%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanDateTimeShortColumnTupleSource.java => ReinterpretedBooleanInstantShortColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanIntegerDateTimeColumnTupleSource.java => ReinterpretedBooleanIntegerInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanIntegerReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanIntegerReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanLongDateTimeColumnTupleSource.java => ReinterpretedBooleanLongInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanLongReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanLongReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanObjectDateTimeColumnTupleSource.java => ReinterpretedBooleanObjectInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanObjectReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanObjectReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedBooleanDateTimeColumnTupleSource.java => ReinterpretedBooleanReinterpretedBooleanInstantColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (92%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeBooleanColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeByteColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantByteColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeCharacterColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantCharacterColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (88%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeDoubleColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantDoubleColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeFloatColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantFloatColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeDateTimeColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantInstantColumnTupleSource.java} (78%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeIntegerColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantIntegerColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeLongColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantLongColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeObjectColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantObjectColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (88%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (85%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanReinterpretedDateTimeShortColumnTupleSource.java => ReinterpretedBooleanReinterpretedInstantShortColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanShortDateTimeColumnTupleSource.java => ReinterpretedBooleanShortInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedBooleanShortReinterpretedDateTimeColumnTupleSource.java => ReinterpretedBooleanShortReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanBooleanColumnTupleSource.java => ReinterpretedInstantBooleanBooleanColumnTupleSource.java} (91%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanByteColumnTupleSource.java => ReinterpretedInstantBooleanByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanCharacterColumnTupleSource.java => ReinterpretedInstantBooleanCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanColumnTupleSource.java => ReinterpretedInstantBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanDoubleColumnTupleSource.java => ReinterpretedInstantBooleanDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanFloatColumnTupleSource.java => ReinterpretedInstantBooleanFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanDateTimeColumnTupleSource.java => ReinterpretedInstantBooleanInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanIntegerColumnTupleSource.java => ReinterpretedInstantBooleanIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanLongColumnTupleSource.java => ReinterpretedInstantBooleanLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanObjectColumnTupleSource.java => ReinterpretedInstantBooleanObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantBooleanReinterpretedBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantBooleanReinterpretedInstantColumnTupleSource.java} (87%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeBooleanShortColumnTupleSource.java => ReinterpretedInstantBooleanShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteBooleanColumnTupleSource.java => ReinterpretedInstantByteBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteByteColumnTupleSource.java => ReinterpretedInstantByteByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteCharacterColumnTupleSource.java => ReinterpretedInstantByteCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteColumnTupleSource.java => ReinterpretedInstantByteColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteDoubleColumnTupleSource.java => ReinterpretedInstantByteDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteFloatColumnTupleSource.java => ReinterpretedInstantByteFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteDateTimeColumnTupleSource.java => ReinterpretedInstantByteInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteIntegerColumnTupleSource.java => ReinterpretedInstantByteIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteLongColumnTupleSource.java => ReinterpretedInstantByteLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteObjectColumnTupleSource.java => ReinterpretedInstantByteObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantByteReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantByteReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeByteShortColumnTupleSource.java => ReinterpretedInstantByteShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterBooleanColumnTupleSource.java => ReinterpretedInstantCharacterBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterByteColumnTupleSource.java => ReinterpretedInstantCharacterByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterCharacterColumnTupleSource.java => ReinterpretedInstantCharacterCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterColumnTupleSource.java => ReinterpretedInstantCharacterColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterDoubleColumnTupleSource.java => ReinterpretedInstantCharacterDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterFloatColumnTupleSource.java => ReinterpretedInstantCharacterFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterDateTimeColumnTupleSource.java => ReinterpretedInstantCharacterInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterIntegerColumnTupleSource.java => ReinterpretedInstantCharacterIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterLongColumnTupleSource.java => ReinterpretedInstantCharacterLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterObjectColumnTupleSource.java => ReinterpretedInstantCharacterObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantCharacterReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantCharacterReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeCharacterShortColumnTupleSource.java => ReinterpretedInstantCharacterShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleBooleanColumnTupleSource.java => ReinterpretedInstantDoubleBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleByteColumnTupleSource.java => ReinterpretedInstantDoubleByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleCharacterColumnTupleSource.java => ReinterpretedInstantDoubleCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleColumnTupleSource.java => ReinterpretedInstantDoubleColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleDoubleColumnTupleSource.java => ReinterpretedInstantDoubleDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleFloatColumnTupleSource.java => ReinterpretedInstantDoubleFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleDateTimeColumnTupleSource.java => ReinterpretedInstantDoubleInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleIntegerColumnTupleSource.java => ReinterpretedInstantDoubleIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleLongColumnTupleSource.java => ReinterpretedInstantDoubleLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleObjectColumnTupleSource.java => ReinterpretedInstantDoubleObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantDoubleReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantDoubleReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDoubleShortColumnTupleSource.java => ReinterpretedInstantDoubleShortColumnTupleSource.java} (91%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatBooleanColumnTupleSource.java => ReinterpretedInstantFloatBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatByteColumnTupleSource.java => ReinterpretedInstantFloatByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatCharacterColumnTupleSource.java => ReinterpretedInstantFloatCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatColumnTupleSource.java => ReinterpretedInstantFloatColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatDoubleColumnTupleSource.java => ReinterpretedInstantFloatDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatFloatColumnTupleSource.java => ReinterpretedInstantFloatFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatDateTimeColumnTupleSource.java => ReinterpretedInstantFloatInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatIntegerColumnTupleSource.java => ReinterpretedInstantFloatIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatLongColumnTupleSource.java => ReinterpretedInstantFloatLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatObjectColumnTupleSource.java => ReinterpretedInstantFloatObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantFloatReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantFloatReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeFloatShortColumnTupleSource.java => ReinterpretedInstantFloatShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeBooleanColumnTupleSource.java => ReinterpretedInstantInstantBooleanColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeByteColumnTupleSource.java => ReinterpretedInstantInstantByteColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeCharacterColumnTupleSource.java => ReinterpretedInstantInstantCharacterColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeColumnTupleSource.java => ReinterpretedInstantInstantColumnTupleSource.java} (76%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeDoubleColumnTupleSource.java => ReinterpretedInstantInstantDoubleColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeFloatColumnTupleSource.java => ReinterpretedInstantInstantFloatColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeDateTimeColumnTupleSource.java => ReinterpretedInstantInstantInstantColumnTupleSource.java} (70%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeIntegerColumnTupleSource.java => ReinterpretedInstantInstantIntegerColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeLongColumnTupleSource.java => ReinterpretedInstantInstantLongColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeObjectColumnTupleSource.java => ReinterpretedInstantInstantObjectColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantInstantReinterpretedBooleanColumnTupleSource.java} (78%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantInstantReinterpretedInstantColumnTupleSource.java} (75%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeDateTimeShortColumnTupleSource.java => ReinterpretedInstantInstantShortColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerBooleanColumnTupleSource.java => ReinterpretedInstantIntegerBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerByteColumnTupleSource.java => ReinterpretedInstantIntegerByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerCharacterColumnTupleSource.java => ReinterpretedInstantIntegerCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerColumnTupleSource.java => ReinterpretedInstantIntegerColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerDoubleColumnTupleSource.java => ReinterpretedInstantIntegerDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerFloatColumnTupleSource.java => ReinterpretedInstantIntegerFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerDateTimeColumnTupleSource.java => ReinterpretedInstantIntegerInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerIntegerColumnTupleSource.java => ReinterpretedInstantIntegerIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerLongColumnTupleSource.java => ReinterpretedInstantIntegerLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerObjectColumnTupleSource.java => ReinterpretedInstantIntegerObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantIntegerReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantIntegerReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeIntegerShortColumnTupleSource.java => ReinterpretedInstantIntegerShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongBooleanColumnTupleSource.java => ReinterpretedInstantLongBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongByteColumnTupleSource.java => ReinterpretedInstantLongByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongCharacterColumnTupleSource.java => ReinterpretedInstantLongCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongColumnTupleSource.java => ReinterpretedInstantLongColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongDoubleColumnTupleSource.java => ReinterpretedInstantLongDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongFloatColumnTupleSource.java => ReinterpretedInstantLongFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongDateTimeColumnTupleSource.java => ReinterpretedInstantLongInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongIntegerColumnTupleSource.java => ReinterpretedInstantLongIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongLongColumnTupleSource.java => ReinterpretedInstantLongLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongObjectColumnTupleSource.java => ReinterpretedInstantLongObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantLongReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantLongReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeLongShortColumnTupleSource.java => ReinterpretedInstantLongShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectBooleanColumnTupleSource.java => ReinterpretedInstantObjectBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectByteColumnTupleSource.java => ReinterpretedInstantObjectByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectCharacterColumnTupleSource.java => ReinterpretedInstantObjectCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectColumnTupleSource.java => ReinterpretedInstantObjectColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectDoubleColumnTupleSource.java => ReinterpretedInstantObjectDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectFloatColumnTupleSource.java => ReinterpretedInstantObjectFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectDateTimeColumnTupleSource.java => ReinterpretedInstantObjectInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectIntegerColumnTupleSource.java => ReinterpretedInstantObjectIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectLongColumnTupleSource.java => ReinterpretedInstantObjectLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectObjectColumnTupleSource.java => ReinterpretedInstantObjectObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantObjectReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantObjectReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeObjectShortColumnTupleSource.java => ReinterpretedInstantObjectShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanBooleanColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanByteColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanByteColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanCharacterColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanCharacterColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (88%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanDoubleColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanDoubleColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanFloatColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanFloatColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanDateTimeColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanInstantColumnTupleSource.java} (78%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanIntegerColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanIntegerColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanLongColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanLongColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanObjectColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanObjectColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java} (88%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (85%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedBooleanShortColumnTupleSource.java => ReinterpretedInstantReinterpretedBooleanShortColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeBooleanColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantBooleanColumnTupleSource.java} (87%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeByteColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantByteColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeCharacterColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantCharacterColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (84%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeDoubleColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantDoubleColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeFloatColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantFloatColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeDateTimeColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantInstantColumnTupleSource.java} (75%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeIntegerColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantIntegerColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeLongColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantLongColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeObjectColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantObjectColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (85%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeReinterpretedDateTimeShortColumnTupleSource.java => ReinterpretedInstantReinterpretedInstantShortColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortBooleanColumnTupleSource.java => ReinterpretedInstantShortBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortByteColumnTupleSource.java => ReinterpretedInstantShortByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortCharacterColumnTupleSource.java => ReinterpretedInstantShortCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortColumnTupleSource.java => ReinterpretedInstantShortColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortDoubleColumnTupleSource.java => ReinterpretedInstantShortDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortFloatColumnTupleSource.java => ReinterpretedInstantShortFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortDateTimeColumnTupleSource.java => ReinterpretedInstantShortInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortIntegerColumnTupleSource.java => ReinterpretedInstantShortIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortLongColumnTupleSource.java => ReinterpretedInstantShortLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortObjectColumnTupleSource.java => ReinterpretedInstantShortObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortReinterpretedBooleanColumnTupleSource.java => ReinterpretedInstantShortReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortReinterpretedDateTimeColumnTupleSource.java => ReinterpretedInstantShortReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ReinterpretedDateTimeShortShortColumnTupleSource.java => ReinterpretedInstantShortShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortBooleanDateTimeColumnTupleSource.java => ShortBooleanInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortBooleanReinterpretedDateTimeColumnTupleSource.java => ShortBooleanReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortByteDateTimeColumnTupleSource.java => ShortByteInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortByteReinterpretedDateTimeColumnTupleSource.java => ShortByteReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortCharacterDateTimeColumnTupleSource.java => ShortCharacterInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortCharacterReinterpretedDateTimeColumnTupleSource.java => ShortCharacterReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDoubleDateTimeColumnTupleSource.java => ShortDoubleInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDoubleReinterpretedDateTimeColumnTupleSource.java => ShortDoubleReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortFloatDateTimeColumnTupleSource.java => ShortFloatInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortFloatReinterpretedDateTimeColumnTupleSource.java => ShortFloatReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeBooleanColumnTupleSource.java => ShortInstantBooleanColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeByteColumnTupleSource.java => ShortInstantByteColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeCharacterColumnTupleSource.java => ShortInstantCharacterColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeColumnTupleSource.java => ShortInstantColumnTupleSource.java} (81%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeDoubleColumnTupleSource.java => ShortInstantDoubleColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeFloatColumnTupleSource.java => ShortInstantFloatColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeDateTimeColumnTupleSource.java => ShortInstantInstantColumnTupleSource.java} (74%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeIntegerColumnTupleSource.java => ShortInstantIntegerColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeLongColumnTupleSource.java => ShortInstantLongColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeObjectColumnTupleSource.java => ShortInstantObjectColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeReinterpretedBooleanColumnTupleSource.java => ShortInstantReinterpretedBooleanColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeReinterpretedDateTimeColumnTupleSource.java => ShortInstantReinterpretedInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortDateTimeShortColumnTupleSource.java => ShortInstantShortColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortIntegerDateTimeColumnTupleSource.java => ShortIntegerInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortIntegerReinterpretedDateTimeColumnTupleSource.java => ShortIntegerReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortLongDateTimeColumnTupleSource.java => ShortLongInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortLongReinterpretedDateTimeColumnTupleSource.java => ShortLongReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortObjectDateTimeColumnTupleSource.java => ShortObjectInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortObjectReinterpretedDateTimeColumnTupleSource.java => ShortObjectReinterpretedInstantColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedBooleanDateTimeColumnTupleSource.java => ShortReinterpretedBooleanInstantColumnTupleSource.java} (82%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java => ShortReinterpretedBooleanReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeBooleanColumnTupleSource.java => ShortReinterpretedInstantBooleanColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeByteColumnTupleSource.java => ShortReinterpretedInstantByteColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeCharacterColumnTupleSource.java => ShortReinterpretedInstantCharacterColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeColumnTupleSource.java => ShortReinterpretedInstantColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeDoubleColumnTupleSource.java => ShortReinterpretedInstantDoubleColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeFloatColumnTupleSource.java => ShortReinterpretedInstantFloatColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeDateTimeColumnTupleSource.java => ShortReinterpretedInstantInstantColumnTupleSource.java} (79%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeIntegerColumnTupleSource.java => ShortReinterpretedInstantIntegerColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeLongColumnTupleSource.java => ShortReinterpretedInstantLongColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeObjectColumnTupleSource.java => ShortReinterpretedInstantObjectColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java => ShortReinterpretedInstantReinterpretedBooleanColumnTupleSource.java} (89%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java => ShortReinterpretedInstantReinterpretedInstantColumnTupleSource.java} (86%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortReinterpretedDateTimeShortColumnTupleSource.java => ShortReinterpretedInstantShortColumnTupleSource.java} (90%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortShortDateTimeColumnTupleSource.java => ShortShortInstantColumnTupleSource.java} (83%) rename engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/{ShortShortReinterpretedDateTimeColumnTupleSource.java => ShortShortReinterpretedInstantColumnTupleSource.java} (90%) diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanInstantColumnTupleSource.java index 177807071a7..bf309c1c091 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanInstantColumnTupleSource.java @@ -10,31 +10,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public BooleanBooleanDateTimeColumnTupleSource( + public BooleanBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,7 +65,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,7 +74,7 @@ public final ByteByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -90,7 +90,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteByteLongTuple return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,15 +129,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteByteLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,9 +146,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new BooleanBooleanDateTimeColumnTupleSource( + return new BooleanBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanReinterpretedInstantColumnTupleSource.java similarity index 91% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanReinterpretedInstantColumnTupleSource.java index cabbcf0dfdb..759a762418f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanBooleanReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanBooleanReinterpretedDateTimeColumnTupleSource( + public BooleanBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanBooleanReinterpretedDateTimeColumnTupleSource( + return new BooleanBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteInstantColumnTupleSource.java index cab6780e78e..7e80f592c9c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public BooleanByteDateTimeColumnTupleSource( + public BooleanByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteByteLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new BooleanByteDateTimeColumnTupleSource( + return new BooleanByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteReinterpretedInstantColumnTupleSource.java similarity index 91% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteReinterpretedInstantColumnTupleSource.java index 1c57639cbce..18f0ba1ca15 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanByteReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanByteReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanByteReinterpretedDateTimeColumnTupleSource( + public BooleanByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanByteReinterpretedDateTimeColumnTupleSource( + return new BooleanByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterInstantColumnTupleSource.java index 0af3f849c8c..0faa7f770ef 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteCharLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public BooleanCharacterDateTimeColumnTupleSource( + public BooleanCharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteCharLongTuple createTupleFromValues(@NotNull final Object... va return new ByteCharLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteCharLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteCharLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteCharLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteCharLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteCharLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new BooleanCharacterDateTimeColumnTupleSource( + return new BooleanCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterReinterpretedInstantColumnTupleSource.java index 50f7868077b..bb84e2e1db1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanCharacterReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteCharLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanCharacterReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanCharacterReinterpretedDateTimeColumnTupleSource( + public BooleanCharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteCharLongTuple createTupleFromValues(@NotNull final Object... va return new ByteCharLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteCharLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanCharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanCharacterReinterpretedDateTimeColumnTupleSource( + return new BooleanCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleInstantColumnTupleSource.java index c2144bd1e3e..358895acd5a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteDoubleLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public BooleanDoubleDateTimeColumnTupleSource( + public BooleanDoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteDoubleLongTuple createTupleFromValues(@NotNull final Object... return new ByteDoubleLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ByteDoubleLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteDoubleLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteDoubleLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new BooleanDoubleDateTimeColumnTupleSource( + return new BooleanDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleReinterpretedInstantColumnTupleSource.java index 583937f3797..c2ad1121bdb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDoubleReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteDoubleLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDoubleReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDoubleReinterpretedDateTimeColumnTupleSource( + public BooleanDoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteDoubleLongTuple createTupleFromValues(@NotNull final Object... return new ByteDoubleLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDoubleReinterpretedDateTimeColumnTupleSource( + return new BooleanDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatInstantColumnTupleSource.java index 888fd5bf734..d642fd43725 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteFloatLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public BooleanFloatDateTimeColumnTupleSource( + public BooleanFloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteFloatLongTuple createTupleFromValues(@NotNull final Object... v return new ByteFloatLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ByteFloatLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteFloatLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteFloatLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteFloatLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new BooleanFloatDateTimeColumnTupleSource( + return new BooleanFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatReinterpretedInstantColumnTupleSource.java index 3edc11e8955..8796e249d43 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanFloatReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteFloatLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanFloatReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanFloatReinterpretedDateTimeColumnTupleSource( + public BooleanFloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteFloatLongTuple createTupleFromValues(@NotNull final Object... v return new ByteFloatLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteFloatLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanFloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanFloatReinterpretedDateTimeColumnTupleSource( + return new BooleanFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantBooleanColumnTupleSource.java index 1f88e9b57bf..7e521363a38 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantBooleanColumnTupleSource.java @@ -10,30 +10,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDateTimeBooleanColumnTupleSource( + public BooleanInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,7 +64,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -73,7 +73,7 @@ public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... va public final ByteLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -86,7 +86,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -102,7 +102,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -116,7 +116,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongByteTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -136,8 +136,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -145,10 +145,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeBooleanColumnTupleSource( + return new BooleanInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantByteColumnTupleSource.java index 20055ffce06..b02cc42f9dc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantByteColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDateTimeByteColumnTupleSource( + public BooleanInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... va public final ByteLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongByteTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeByteColumnTupleSource( + return new BooleanInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantCharacterColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantCharacterColumnTupleSource.java index 7a6c5453bc0..bae48746506 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantCharacterColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongCharTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDateTimeCharacterColumnTupleSource( + public BooleanInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongCharTuple createPreviousTuple(final long rowKey) { public final ByteLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongCharTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongCharTuple createTupleFromValues(@NotNull final Object... va public final ByteLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongCharTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongCharTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongCharTuple return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongCharTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongCharTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeCharacterColumnTupleSource( + return new BooleanInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantColumnTupleSource.java index 1c6fc76dfe4..880aa5f8ad7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantColumnTupleSource.java @@ -10,29 +10,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; - public BooleanDateTimeColumnTupleSource( + public BooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -59,7 +59,7 @@ public final ByteLongTuple createPreviousTuple(final long rowKey) { public final ByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -67,7 +67,7 @@ public final ByteLongTuple createTupleFromValues(@NotNull final Object... values public final ByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -79,7 +79,7 @@ public final void exportElement(@NotNull final ByteLongTuple tupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -91,7 +91,7 @@ public final Object exportElement(@NotNull final ByteLongTuple tuple, int elemen return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -102,7 +102,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongTuple tupl return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -110,15 +110,15 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link BooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link BooleanInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @@ -126,9 +126,9 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { - return new BooleanDateTimeColumnTupleSource( + return new BooleanInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantDoubleColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantDoubleColumnTupleSource.java index 3d69fa7be2d..ceb916dee7f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantDoubleColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongDoubleTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDateTimeDoubleColumnTupleSource( + public BooleanInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongDoubleTuple createPreviousTuple(final long rowKey) { public final ByteLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongDoubleTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongDoubleTuple createTupleFromValues(@NotNull final Object... public final ByteLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongDoubleTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongDoubleTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongDoubleTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongDoubleTupl return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongDoubleTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongDoubleTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeDoubleColumnTupleSource( + return new BooleanInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantFloatColumnTupleSource.java index ed0d2eb03e2..525a1f3c164 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantFloatColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongFloatTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDateTimeFloatColumnTupleSource( + public BooleanInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongFloatTuple createPreviousTuple(final long rowKey) { public final ByteLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongFloatTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongFloatTuple createTupleFromValues(@NotNull final Object... v public final ByteLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongFloatTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongFloatTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongFloatTuple return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongFloatTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongFloatTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeFloatColumnTupleSource( + return new BooleanInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantInstantColumnTupleSource.java index 35c24535302..bed88848609 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantInstantColumnTupleSource.java @@ -10,31 +10,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public BooleanDateTimeDateTimeColumnTupleSource( + public BooleanInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,8 +64,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -73,8 +73,8 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -86,11 +86,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -102,10 +102,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -116,10 +116,10 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -128,16 +128,16 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -145,10 +145,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeDateTimeColumnTupleSource( + return new BooleanInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantIntegerColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantIntegerColumnTupleSource.java index 61d987bbe12..55125dd1397 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantIntegerColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongIntTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDateTimeIntegerColumnTupleSource( + public BooleanInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongIntTuple createPreviousTuple(final long rowKey) { public final ByteLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongIntTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongIntTuple createTupleFromValues(@NotNull final Object... val public final ByteLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongIntTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongIntTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongIntTuple tuple, int ele return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongIntTuple t return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongIntTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongIntTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeIntegerColumnTupleSource( + return new BooleanInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantLongColumnTupleSource.java index a7958d075b3..da18f148774 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantLongColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDateTimeLongColumnTupleSource( + public BooleanInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeLongColumnTupleSource( + return new BooleanInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantObjectColumnTupleSource.java index f0412f4c7bb..70a31e4e14f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantObjectColumnTupleSource.java @@ -10,30 +10,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongObjectTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDateTimeObjectColumnTupleSource( + public BooleanInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,7 +64,7 @@ public final ByteLongObjectTuple createPreviousTuple(final long rowKey) { public final ByteLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongObjectTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -73,7 +73,7 @@ public final ByteLongObjectTuple createTupleFromValues(@NotNull final Object... public final ByteLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongObjectTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -86,7 +86,7 @@ public final void exportElement(@NotNull final ByteLongObjectTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -102,7 +102,7 @@ public final Object exportElement(@NotNull final ByteLongObjectTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -116,7 +116,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongObjectTupl return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongObjectTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongObjectTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -136,8 +136,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -145,10 +145,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeObjectColumnTupleSource( + return new BooleanInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantReinterpretedBooleanColumnTupleSource.java index ee54397126b..b83ec71b043 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantReinterpretedBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDateTimeReinterpretedBooleanColumnTupleSource( + public BooleanInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... va public final ByteLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongByteTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeReinterpretedBooleanColumnTupleSource( + return new BooleanInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantReinterpretedInstantColumnTupleSource.java index 02246b2c162..3baa38c5cec 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantReinterpretedInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDateTimeReinterpretedDateTimeColumnTupleSource( + public BooleanInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,8 +66,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeReinterpretedDateTimeColumnTupleSource( + return new BooleanInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantShortColumnTupleSource.java index 0992be4fc14..bcea62153c3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanInstantShortColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongShortTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class BooleanInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanDateTimeShortColumnTupleSource( + public BooleanInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongShortTuple createPreviousTuple(final long rowKey) { public final ByteLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongShortTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongShortTuple createTupleFromValues(@NotNull final Object... v public final ByteLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongShortTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongShortTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongShortTuple return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongShortTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongShortTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanDateTimeShortColumnTupleSource( + return new BooleanInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerInstantColumnTupleSource.java index 915c2ceacfc..88e5c5e1071 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteIntLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public BooleanIntegerDateTimeColumnTupleSource( + public BooleanIntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteIntLongTuple createTupleFromValues(@NotNull final Object... val return new ByteIntLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteIntLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteIntLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteIntLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteIntLongTuple t return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteIntLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new BooleanIntegerDateTimeColumnTupleSource( + return new BooleanIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerReinterpretedInstantColumnTupleSource.java index 524335bd2d3..e1e9a367706 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanIntegerReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteIntLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanIntegerReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanIntegerReinterpretedDateTimeColumnTupleSource( + public BooleanIntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteIntLongTuple createTupleFromValues(@NotNull final Object... val return new ByteIntLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteIntLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanIntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanIntegerReinterpretedDateTimeColumnTupleSource( + return new BooleanIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongInstantColumnTupleSource.java index 99979765a77..667ec0c64ba 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public BooleanLongDateTimeColumnTupleSource( + public BooleanLongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new BooleanLongDateTimeColumnTupleSource( + return new BooleanLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongReinterpretedInstantColumnTupleSource.java index 1363e3e092a..89dff98296a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanLongReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanLongReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanLongReinterpretedDateTimeColumnTupleSource( + public BooleanLongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanLongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanLongReinterpretedDateTimeColumnTupleSource( + return new BooleanLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectInstantColumnTupleSource.java index 9f7731311bd..d84a8434fd8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectInstantColumnTupleSource.java @@ -10,31 +10,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteObjectLongTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public BooleanObjectDateTimeColumnTupleSource( + public BooleanObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,7 +65,7 @@ public final ByteObjectLongTuple createTupleFromValues(@NotNull final Object... return new ByteObjectLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,7 +74,7 @@ public final ByteObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ByteObjectLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -90,7 +90,7 @@ public final void exportElement(@NotNull final ByteObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteObjectLongTupl return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,15 +129,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteObjectLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,9 +146,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new BooleanObjectDateTimeColumnTupleSource( + return new BooleanObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectReinterpretedInstantColumnTupleSource.java index f79b80657f3..fb456044d5f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanObjectReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteObjectLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanObjectReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanObjectReinterpretedDateTimeColumnTupleSource( + public BooleanObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteObjectLongTuple createTupleFromValues(@NotNull final Object... return new ByteObjectLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanObjectReinterpretedDateTimeColumnTupleSource( + return new BooleanObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanInstantColumnTupleSource.java index 874a94b1dd0..fbe92a791eb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public BooleanReinterpretedBooleanDateTimeColumnTupleSource( + public BooleanReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteByteLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedBooleanDateTimeColumnTupleSource( + return new BooleanReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index 3e137663134..9b8250008fa 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public BooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new BooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantBooleanColumnTupleSource.java similarity index 91% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantBooleanColumnTupleSource.java index 7f6c22678cb..943bbee2b43 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeBooleanColumnTupleSource( + public BooleanReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeBooleanColumnTupleSource( + return new BooleanReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantByteColumnTupleSource.java index 2567916cb0f..10293cc2202 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantByteColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeByteColumnTupleSource( + public BooleanReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeByteColumnTupleSource( + return new BooleanReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantCharacterColumnTupleSource.java index 4fe88f9a9c2..2ded35ebbf5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantCharacterColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongCharTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeCharacterColumnTupleSource( + public BooleanReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongCharTuple createPreviousTuple(final long rowKey) { public final ByteLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongCharTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongCharTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeCharacterColumnTupleSource( + return new BooleanReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantColumnTupleSource.java index 9e082c9c61f..2ca736445f5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public BooleanReinterpretedDateTimeColumnTupleSource( + public BooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -61,7 +61,7 @@ public final ByteLongTuple createPreviousTuple(final long rowKey) { public final ByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -81,7 +81,7 @@ public final void exportElement(@NotNull final ByteLongTuple tupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -93,7 +93,7 @@ public final Object exportElement(@NotNull final ByteLongTuple tuple, int elemen return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -119,7 +119,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -130,7 +130,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new BooleanReinterpretedDateTimeColumnTupleSource( + return new BooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantDoubleColumnTupleSource.java index 7f7948b8b3f..29e51fb2bf0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantDoubleColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongDoubleTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeDoubleColumnTupleSource( + public BooleanReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongDoubleTuple createPreviousTuple(final long rowKey) { public final ByteLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongDoubleTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongDoubleTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongDoubleTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeDoubleColumnTupleSource( + return new BooleanReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantFloatColumnTupleSource.java index 832be159e6c..81977cc3f85 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantFloatColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongFloatTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeFloatColumnTupleSource( + public BooleanReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongFloatTuple createPreviousTuple(final long rowKey) { public final ByteLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongFloatTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongFloatTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeFloatColumnTupleSource( + return new BooleanReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantInstantColumnTupleSource.java index 1e81c4be47a..34f7a8b9394 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeDateTimeColumnTupleSource( + public BooleanReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,8 +66,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeDateTimeColumnTupleSource( + return new BooleanReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantIntegerColumnTupleSource.java index 39de8f20ec3..935a7a052bf 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantIntegerColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongIntTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeIntegerColumnTupleSource( + public BooleanReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongIntTuple createPreviousTuple(final long rowKey) { public final ByteLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongIntTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongIntTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongIntTuple tuple, int ele return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeIntegerColumnTupleSource( + return new BooleanReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantLongColumnTupleSource.java index 10201bc293a..adc500a78a0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantLongColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeLongColumnTupleSource( + public BooleanReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeLongColumnTupleSource( + return new BooleanReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantObjectColumnTupleSource.java index 78b90871431..fec2a43b184 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantObjectColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongObjectTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeObjectColumnTupleSource( + public BooleanReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongObjectTuple createPreviousTuple(final long rowKey) { public final ByteLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongObjectTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongObjectTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongObjectTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeObjectColumnTupleSource( + return new BooleanReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index a4835082302..0833eb4de7c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public BooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new BooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 87% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantReinterpretedInstantColumnTupleSource.java index 14dfe6e4765..89e69769167 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public BooleanReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,8 +66,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new BooleanReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantShortColumnTupleSource.java index d675a79cbb0..0fb50c33940 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanReinterpretedInstantShortColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongShortTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class BooleanReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanReinterpretedInstantShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanReinterpretedDateTimeShortColumnTupleSource( + public BooleanReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongShortTuple createPreviousTuple(final long rowKey) { public final ByteLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongShortTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongShortTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanReinterpretedDateTimeShortColumnTupleSource( + return new BooleanReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortInstantColumnTupleSource.java index d6ebc710a8a..e637b01596f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteShortLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public BooleanShortDateTimeColumnTupleSource( + public BooleanShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteShortLongTuple createTupleFromValues(@NotNull final Object... v return new ByteShortLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteShortLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ByteShortLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteShortLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteShortLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteShortLongTuple(BooleanUtils.booleanAsByte(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new BooleanShortDateTimeColumnTupleSource( + return new BooleanShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortReinterpretedInstantColumnTupleSource.java index 3aa83a23efe..2d138b8fbc5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/BooleanShortReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteShortLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Boolean, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class BooleanShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class BooleanShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link BooleanShortReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public BooleanShortReinterpretedDateTimeColumnTupleSource( + public BooleanShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteShortLongTuple createTupleFromValues(@NotNull final Object... v return new ByteShortLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteShortLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link BooleanShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new BooleanShortReinterpretedDateTimeColumnTupleSource( + return new BooleanShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanInstantColumnTupleSource.java index df9394dabc7..62331f00b5e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ByteBooleanDateTimeColumnTupleSource( + public ByteBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteByteLongTuple return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteByteLongTuple(chunk1.get(ii), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ByteBooleanDateTimeColumnTupleSource( + return new ByteBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanReinterpretedInstantColumnTupleSource.java similarity index 91% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanReinterpretedInstantColumnTupleSource.java index e14401dd3a2..76639469ebd 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteBooleanReinterpretedDateTimeColumnTupleSource( + public ByteBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteBooleanReinterpretedDateTimeColumnTupleSource( + return new ByteBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteInstantColumnTupleSource.java index b821adb4ea0..683830c7b64 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ByteByteDateTimeColumnTupleSource( + public ByteByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ByteByteDateTimeColumnTupleSource( + return new ByteByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteReinterpretedInstantColumnTupleSource.java index 0bb14efc88b..dd452226d40 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteByteReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteByteReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteByteReinterpretedDateTimeColumnTupleSource( + public ByteByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteByteReinterpretedDateTimeColumnTupleSource( + return new ByteByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterInstantColumnTupleSource.java index 4b7aed0b077..ff8834756e5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ByteCharacterDateTimeColumnTupleSource( + public ByteCharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteCharLongTuple createTupleFromValues(@NotNull final Object... va return new ByteCharLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteCharLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteCharLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteCharLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteCharLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteCharLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ByteCharacterDateTimeColumnTupleSource( + return new ByteCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterReinterpretedInstantColumnTupleSource.java index 3caaa562cb3..27e15e7a390 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteCharacterReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteCharacterReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteCharacterReinterpretedDateTimeColumnTupleSource( + public ByteCharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteCharLongTuple createTupleFromValues(@NotNull final Object... va return new ByteCharLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteCharLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteCharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteCharacterReinterpretedDateTimeColumnTupleSource( + return new ByteCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleInstantColumnTupleSource.java index b5b8651c092..ec635532335 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ByteDoubleDateTimeColumnTupleSource( + public ByteDoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteDoubleLongTuple createTupleFromValues(@NotNull final Object... return new ByteDoubleLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ByteDoubleLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteDoubleLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteDoubleLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ByteDoubleDateTimeColumnTupleSource( + return new ByteDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleReinterpretedInstantColumnTupleSource.java index 7779da15f16..992ed8227ff 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDoubleReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDoubleReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDoubleReinterpretedDateTimeColumnTupleSource( + public ByteDoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteDoubleLongTuple createTupleFromValues(@NotNull final Object... return new ByteDoubleLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDoubleReinterpretedDateTimeColumnTupleSource( + return new ByteDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatInstantColumnTupleSource.java index d5f0550dad6..37fb3631f0a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ByteFloatDateTimeColumnTupleSource( + public ByteFloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteFloatLongTuple createTupleFromValues(@NotNull final Object... v return new ByteFloatLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ByteFloatLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteFloatLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteFloatLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteFloatLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ByteFloatDateTimeColumnTupleSource( + return new ByteFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatReinterpretedInstantColumnTupleSource.java index 74f622ddc36..2c66559f912 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteFloatReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteFloatReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteFloatReinterpretedDateTimeColumnTupleSource( + public ByteFloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteFloatLongTuple createTupleFromValues(@NotNull final Object... v return new ByteFloatLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteFloatLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteFloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteFloatReinterpretedDateTimeColumnTupleSource( + return new ByteFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantBooleanColumnTupleSource.java index 8024e044501..e244afe1ca5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class ByteInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDateTimeBooleanColumnTupleSource( + public ByteInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... va public final ByteLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeBooleanColumnTupleSource( + return new ByteInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantByteColumnTupleSource.java index 4d337b37e97..5b9217993c6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantByteColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class ByteInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDateTimeByteColumnTupleSource( + public ByteInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -74,7 +74,7 @@ public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... va public final ByteLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeByteColumnTupleSource( + return new ByteInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantCharacterColumnTupleSource.java index 53182f6880b..f7bcc4c0eb8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantCharacterColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class ByteInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDateTimeCharacterColumnTupleSource( + public ByteInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongCharTuple createPreviousTuple(final long rowKey) { public final ByteLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongCharTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongCharTuple createTupleFromValues(@NotNull final Object... va public final ByteLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongCharTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongCharTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongCharTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongCharTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongCharTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeCharacterColumnTupleSource( + return new ByteInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantColumnTupleSource.java index c0c7650ec23..e44a7e8eafa 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ByteInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; - public ByteDateTimeColumnTupleSource( + public ByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -60,7 +60,7 @@ public final ByteLongTuple createPreviousTuple(final long rowKey) { public final ByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -68,7 +68,7 @@ public final ByteLongTuple createTupleFromValues(@NotNull final Object... values public final ByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final ByteLongTuple tupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final ByteLongTuple tuple, int elemen return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -103,7 +103,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongTuple tupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -111,15 +111,15 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ByteInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @@ -127,9 +127,9 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { - return new ByteDateTimeColumnTupleSource( + return new ByteInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantDoubleColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantDoubleColumnTupleSource.java index 11ee4d13e31..ea6e654fa0e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantDoubleColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class ByteInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDateTimeDoubleColumnTupleSource( + public ByteInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongDoubleTuple createPreviousTuple(final long rowKey) { public final ByteLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongDoubleTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongDoubleTuple createTupleFromValues(@NotNull final Object... public final ByteLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongDoubleTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongDoubleTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongDoubleTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongDoubleTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongDoubleTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongDoubleTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeDoubleColumnTupleSource( + return new ByteInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantFloatColumnTupleSource.java index 211e01ba9e8..1443c9abf57 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantFloatColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class ByteInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDateTimeFloatColumnTupleSource( + public ByteInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongFloatTuple createPreviousTuple(final long rowKey) { public final ByteLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongFloatTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongFloatTuple createTupleFromValues(@NotNull final Object... v public final ByteLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongFloatTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongFloatTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongFloatTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongFloatTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongFloatTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeFloatColumnTupleSource( + return new ByteInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantInstantColumnTupleSource.java index 7987fea18df..b4a02a9a254 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public ByteDateTimeDateTimeColumnTupleSource( + public ByteInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,8 +65,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,8 +74,8 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -117,10 +117,10 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,16 +129,16 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeDateTimeColumnTupleSource( + return new ByteInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantIntegerColumnTupleSource.java index 3f93a01ad60..7e8b4a7c752 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantIntegerColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class ByteInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDateTimeIntegerColumnTupleSource( + public ByteInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongIntTuple createPreviousTuple(final long rowKey) { public final ByteLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongIntTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongIntTuple createTupleFromValues(@NotNull final Object... val public final ByteLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongIntTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongIntTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongIntTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongIntTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongIntTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongIntTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeIntegerColumnTupleSource( + return new ByteInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantLongColumnTupleSource.java index 94a83bdd899..8619aa694d0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantLongColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class ByteInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDateTimeLongColumnTupleSource( + public ByteInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeLongColumnTupleSource( + return new ByteInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantObjectColumnTupleSource.java index a5ba980e06b..c23ee98e0d2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantObjectColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class ByteInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDateTimeObjectColumnTupleSource( + public ByteInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final ByteLongObjectTuple createPreviousTuple(final long rowKey) { public final ByteLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongObjectTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -74,7 +74,7 @@ public final ByteLongObjectTuple createTupleFromValues(@NotNull final Object... public final ByteLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongObjectTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ByteLongObjectTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ByteLongObjectTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongObjectTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongObjectTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongObjectTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeObjectColumnTupleSource( + return new ByteInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantReinterpretedBooleanColumnTupleSource.java index fdefa600da2..19e9f64fdd4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantReinterpretedBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ByteInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDateTimeReinterpretedBooleanColumnTupleSource( + public ByteInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... va public final ByteLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeReinterpretedBooleanColumnTupleSource( + return new ByteInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantReinterpretedInstantColumnTupleSource.java index e71124ce659..9657d2dcfed 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantReinterpretedInstantColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDateTimeReinterpretedDateTimeColumnTupleSource( + public ByteInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,8 +66,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeReinterpretedDateTimeColumnTupleSource( + return new ByteInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantShortColumnTupleSource.java index 2b6b0a779e2..930e8917302 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteInstantShortColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class ByteInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteDateTimeShortColumnTupleSource( + public ByteInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongShortTuple createPreviousTuple(final long rowKey) { public final ByteLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongShortTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongShortTuple createTupleFromValues(@NotNull final Object... v public final ByteLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongShortTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongShortTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongShortTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongShortTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongShortTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteDateTimeShortColumnTupleSource( + return new ByteInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerInstantColumnTupleSource.java index 8c602521a64..5a7468782fd 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ByteIntegerDateTimeColumnTupleSource( + public ByteIntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteIntLongTuple createTupleFromValues(@NotNull final Object... val return new ByteIntLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteIntLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteIntLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteIntLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteIntLongTuple t return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteIntLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ByteIntegerDateTimeColumnTupleSource( + return new ByteIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerReinterpretedInstantColumnTupleSource.java index 10a02986fde..9e0d8f5eeb9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteIntegerReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteIntegerReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteIntegerReinterpretedDateTimeColumnTupleSource( + public ByteIntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteIntLongTuple createTupleFromValues(@NotNull final Object... val return new ByteIntLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteIntLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteIntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteIntegerReinterpretedDateTimeColumnTupleSource( + return new ByteIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongInstantColumnTupleSource.java index a9726c0cbb4..50a06f946f7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ByteLongDateTimeColumnTupleSource( + public ByteLongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ByteLongDateTimeColumnTupleSource( + return new ByteLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongReinterpretedInstantColumnTupleSource.java index 3e24c667da9..97b4134e9ca 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteLongReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteLongReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteLongReinterpretedDateTimeColumnTupleSource( + public ByteLongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteLongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteLongReinterpretedDateTimeColumnTupleSource( + return new ByteLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectInstantColumnTupleSource.java index a2fa608c561..c6527e297a7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ByteObjectDateTimeColumnTupleSource( + public ByteObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final ByteObjectLongTuple createTupleFromValues(@NotNull final Object... return new ByteObjectLongTuple( TypeUtils.unbox((Byte)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ByteObjectLongTuple( TypeUtils.unbox((Byte)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ByteObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ByteObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteObjectLongTupl return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteObjectLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ByteObjectDateTimeColumnTupleSource( + return new ByteObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectReinterpretedInstantColumnTupleSource.java index 26c64f73a13..e692bdd3034 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteObjectReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteObjectReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteObjectReinterpretedDateTimeColumnTupleSource( + public ByteObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteObjectLongTuple createTupleFromValues(@NotNull final Object... return new ByteObjectLongTuple( TypeUtils.unbox((Byte)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteObjectReinterpretedDateTimeColumnTupleSource( + return new ByteObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanInstantColumnTupleSource.java index 82e78e30908..9b677d38e50 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ByteReinterpretedBooleanDateTimeColumnTupleSource( + public ByteReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedBooleanDateTimeColumnTupleSource( + return new ByteReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index dc147c48a8c..80a142f7a7a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public ByteReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new ByteReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantBooleanColumnTupleSource.java index 92370548a55..6185a3c9c55 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeBooleanColumnTupleSource( + public ByteReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeBooleanColumnTupleSource( + return new ByteReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantByteColumnTupleSource.java index 211f8c514fc..469f570e252 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantByteColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeByteColumnTupleSource( + public ByteReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeByteColumnTupleSource( + return new ByteReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantCharacterColumnTupleSource.java index cad1f1ff6ae..cd948255b87 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeCharacterColumnTupleSource( + public ByteReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongCharTuple createPreviousTuple(final long rowKey) { public final ByteLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongCharTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongCharTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeCharacterColumnTupleSource( + return new ByteReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantColumnTupleSource.java index faf5e366942..298f9f036fd 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ByteReinterpretedDateTimeColumnTupleSource( + public ByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -60,7 +60,7 @@ public final ByteLongTuple createPreviousTuple(final long rowKey) { public final ByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final ByteLongTuple tupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final ByteLongTuple tuple, int elemen return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ByteReinterpretedDateTimeColumnTupleSource( + return new ByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantDoubleColumnTupleSource.java index 4ce17158758..10fb8ea91a8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeDoubleColumnTupleSource( + public ByteReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongDoubleTuple createPreviousTuple(final long rowKey) { public final ByteLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongDoubleTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongDoubleTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongDoubleTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeDoubleColumnTupleSource( + return new ByteReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantFloatColumnTupleSource.java index 8861999ef40..929e6f34ede 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeFloatColumnTupleSource( + public ByteReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongFloatTuple createPreviousTuple(final long rowKey) { public final ByteLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongFloatTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongFloatTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeFloatColumnTupleSource( + return new ByteReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantInstantColumnTupleSource.java index 3707a358d7e..8bcb97d1dc6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeDateTimeColumnTupleSource( + public ByteReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,8 +66,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeDateTimeColumnTupleSource( + return new ByteReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantIntegerColumnTupleSource.java index ea01779c276..4ab537c0fec 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeIntegerColumnTupleSource( + public ByteReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongIntTuple createPreviousTuple(final long rowKey) { public final ByteLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongIntTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongIntTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongIntTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeIntegerColumnTupleSource( + return new ByteReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantLongColumnTupleSource.java index b18f203f035..a6821414344 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeLongColumnTupleSource( + public ByteReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeLongColumnTupleSource( + return new ByteReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantObjectColumnTupleSource.java index b08438fbb0c..2ba92d2b0fe 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeObjectColumnTupleSource( + public ByteReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongObjectTuple createPreviousTuple(final long rowKey) { public final ByteLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongObjectTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongObjectTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongObjectTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeObjectColumnTupleSource( + return new ByteReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index b43182733d8..4a07f2a6c12 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public ByteReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new ByteReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantReinterpretedInstantColumnTupleSource.java index b5cc2a06068..c284fe8f5a3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public ByteReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,8 +65,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new ByteReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantShortColumnTupleSource.java index 7e0746c6f08..5ada7fc3762 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteReinterpretedInstantShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class ByteReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteReinterpretedInstantShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteReinterpretedDateTimeShortColumnTupleSource( + public ByteReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongShortTuple createPreviousTuple(final long rowKey) { public final ByteLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongShortTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongShortTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteReinterpretedDateTimeShortColumnTupleSource( + return new ByteReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortInstantColumnTupleSource.java index 6cd311e6872..74b3b2d6722 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ByteShortDateTimeColumnTupleSource( + public ByteShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteShortLongTuple createTupleFromValues(@NotNull final Object... v return new ByteShortLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteShortLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ByteShortLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteShortLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteShortLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteShortLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ByteShortDateTimeColumnTupleSource( + return new ByteShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortReinterpretedInstantColumnTupleSource.java index c6bc46198d0..907ed8d319f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ByteShortReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ByteShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ByteShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ByteShortReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ByteShortReinterpretedDateTimeColumnTupleSource( + public ByteShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteShortLongTuple createTupleFromValues(@NotNull final Object... v return new ByteShortLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteShortLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ByteShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ByteShortReinterpretedDateTimeColumnTupleSource( + return new ByteShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanInstantColumnTupleSource.java index a190c515399..c909e7cbe5d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public CharacterBooleanDateTimeColumnTupleSource( + public CharacterBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final CharByteLongTuple createTupleFromValues(@NotNull final Object... va return new CharByteLongTuple( TypeUtils.unbox((Character)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final CharByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new CharByteLongTuple( TypeUtils.unbox((Character)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final CharByteLongTuple return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharByteLongTuple(chunk1.get(ii), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new CharacterBooleanDateTimeColumnTupleSource( + return new CharacterBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanReinterpretedInstantColumnTupleSource.java index 1e516eccb46..2b65ea53f3d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterBooleanReinterpretedDateTimeColumnTupleSource( + public CharacterBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final CharByteLongTuple createTupleFromValues(@NotNull final Object... va return new CharByteLongTuple( TypeUtils.unbox((Character)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final CharByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final CharByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterBooleanReinterpretedDateTimeColumnTupleSource( + return new CharacterBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteInstantColumnTupleSource.java index 83008a4093f..40b490ca252 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public CharacterByteDateTimeColumnTupleSource( + public CharacterByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final CharByteLongTuple createTupleFromValues(@NotNull final Object... va return new CharByteLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final CharByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new CharByteLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharByteLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final CharByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new CharacterByteDateTimeColumnTupleSource( + return new CharacterByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteReinterpretedInstantColumnTupleSource.java index d652e2f3004..0c5ab21eee3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterByteReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterByteReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterByteReinterpretedDateTimeColumnTupleSource( + public CharacterByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final CharByteLongTuple createTupleFromValues(@NotNull final Object... va return new CharByteLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharByteLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterByteReinterpretedDateTimeColumnTupleSource( + return new CharacterByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterInstantColumnTupleSource.java index b5db36d66cc..e6149fc23f4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public CharacterCharacterDateTimeColumnTupleSource( + public CharacterCharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final CharCharLongTuple createTupleFromValues(@NotNull final Object... va return new CharCharLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final CharCharLongTuple createTupleFromReinterpretedValues(@NotNull final return new CharCharLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final CharCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final CharCharLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final CharCharLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharCharLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new CharacterCharacterDateTimeColumnTupleSource( + return new CharacterCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterReinterpretedInstantColumnTupleSource.java index 7d449178a6f..3b7364f075b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterCharacterReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterCharacterReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterCharacterReinterpretedDateTimeColumnTupleSource( + public CharacterCharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final CharCharLongTuple createTupleFromValues(@NotNull final Object... va return new CharCharLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final CharCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final CharCharLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterCharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterCharacterReinterpretedDateTimeColumnTupleSource( + return new CharacterCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleInstantColumnTupleSource.java index 255a56268bf..712fc15a74e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public CharacterDoubleDateTimeColumnTupleSource( + public CharacterDoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final CharDoubleLongTuple createTupleFromValues(@NotNull final Object... return new CharDoubleLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final CharDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin return new CharDoubleLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final CharDoubleLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharDoubleLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new CharacterDoubleDateTimeColumnTupleSource( + return new CharacterDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleReinterpretedInstantColumnTupleSource.java index 6ea29aa5e0a..36a17421410 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDoubleReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDoubleReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDoubleReinterpretedDateTimeColumnTupleSource( + public CharacterDoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final CharDoubleLongTuple createTupleFromValues(@NotNull final Object... return new CharDoubleLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDoubleReinterpretedDateTimeColumnTupleSource( + return new CharacterDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatInstantColumnTupleSource.java index 96ffb904778..b762e389741 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public CharacterFloatDateTimeColumnTupleSource( + public CharacterFloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final CharFloatLongTuple createTupleFromValues(@NotNull final Object... v return new CharFloatLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final CharFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina return new CharFloatLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharFloatLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final CharFloatLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharFloatLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new CharacterFloatDateTimeColumnTupleSource( + return new CharacterFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatReinterpretedInstantColumnTupleSource.java index 0fe1a080d07..fadaa4d8841 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterFloatReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterFloatReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterFloatReinterpretedDateTimeColumnTupleSource( + public CharacterFloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final CharFloatLongTuple createTupleFromValues(@NotNull final Object... v return new CharFloatLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharFloatLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterFloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterFloatReinterpretedDateTimeColumnTupleSource( + return new CharacterFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantBooleanColumnTupleSource.java index eab33fb13f2..20f0a554514 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDateTimeBooleanColumnTupleSource( + public CharacterInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final CharLongByteTuple createPreviousTuple(final long rowKey) { public final CharLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongByteTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final CharLongByteTuple createTupleFromValues(@NotNull final Object... va public final CharLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongByteTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeBooleanColumnTupleSource( + return new CharacterInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantByteColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantByteColumnTupleSource.java index d99a9cc017a..e4bf75e804f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantByteColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDateTimeByteColumnTupleSource( + public CharacterInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final CharLongByteTuple createPreviousTuple(final long rowKey) { public final CharLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongByteTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -75,7 +75,7 @@ public final CharLongByteTuple createTupleFromValues(@NotNull final Object... va public final CharLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongByteTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeByteColumnTupleSource( + return new CharacterInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantCharacterColumnTupleSource.java index 3c531c52a63..cbadd1964cf 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantCharacterColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDateTimeCharacterColumnTupleSource( + public CharacterInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final CharLongCharTuple createPreviousTuple(final long rowKey) { public final CharLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongCharTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -74,7 +74,7 @@ public final CharLongCharTuple createTupleFromValues(@NotNull final Object... va public final CharLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongCharTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final CharLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final CharLongCharTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongCharTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongCharTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongCharTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeCharacterColumnTupleSource( + return new CharacterInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantColumnTupleSource.java similarity index 80% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantColumnTupleSource.java index dc9a5b1886c..f792a6c8d1f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; - public CharacterDateTimeColumnTupleSource( + public CharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -60,7 +60,7 @@ public final CharLongTuple createPreviousTuple(final long rowKey) { public final CharLongTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -68,7 +68,7 @@ public final CharLongTuple createTupleFromValues(@NotNull final Object... values public final CharLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final CharLongTuple tupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final CharLongTuple tuple, int elemen return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -103,7 +103,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongTuple tupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -111,15 +111,15 @@ public final Object exportElementReinterpreted(@NotNull final CharLongTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link CharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link CharacterInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @@ -127,9 +127,9 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { - return new CharacterDateTimeColumnTupleSource( + return new CharacterInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantDoubleColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantDoubleColumnTupleSource.java index f592d2920b6..8f196fc1cf6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantDoubleColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDateTimeDoubleColumnTupleSource( + public CharacterInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final CharLongDoubleTuple createPreviousTuple(final long rowKey) { public final CharLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongDoubleTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -75,7 +75,7 @@ public final CharLongDoubleTuple createTupleFromValues(@NotNull final Object... public final CharLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongDoubleTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongDoubleTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongDoubleTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongDoubleTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongDoubleTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongDoubleTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeDoubleColumnTupleSource( + return new CharacterInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantFloatColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantFloatColumnTupleSource.java index abd92405437..161e3247635 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantFloatColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDateTimeFloatColumnTupleSource( + public CharacterInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final CharLongFloatTuple createPreviousTuple(final long rowKey) { public final CharLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongFloatTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -75,7 +75,7 @@ public final CharLongFloatTuple createTupleFromValues(@NotNull final Object... v public final CharLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongFloatTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongFloatTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongFloatTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongFloatTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongFloatTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeFloatColumnTupleSource( + return new CharacterInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantInstantColumnTupleSource.java index ad737e20b89..8a6b4cc1378 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public CharacterDateTimeDateTimeColumnTupleSource( + public CharacterInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,8 +65,8 @@ public final CharLongLongTuple createPreviousTuple(final long rowKey) { public final CharLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,8 +74,8 @@ public final CharLongLongTuple createTupleFromValues(@NotNull final Object... va public final CharLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final CharLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final CharLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -117,10 +117,10 @@ public final Object exportElementReinterpreted(@NotNull final CharLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,16 +129,16 @@ public final Object exportElementReinterpreted(@NotNull final CharLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeDateTimeColumnTupleSource( + return new CharacterInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantIntegerColumnTupleSource.java index 03ba020f48d..3c3206dd79a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantIntegerColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDateTimeIntegerColumnTupleSource( + public CharacterInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final CharLongIntTuple createPreviousTuple(final long rowKey) { public final CharLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongIntTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -75,7 +75,7 @@ public final CharLongIntTuple createTupleFromValues(@NotNull final Object... val public final CharLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongIntTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongIntTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongIntTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongIntTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongIntTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongIntTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeIntegerColumnTupleSource( + return new CharacterInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantLongColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantLongColumnTupleSource.java index b83bb949972..26ae4142262 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantLongColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDateTimeLongColumnTupleSource( + public CharacterInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final CharLongLongTuple createPreviousTuple(final long rowKey) { public final CharLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -75,7 +75,7 @@ public final CharLongLongTuple createTupleFromValues(@NotNull final Object... va public final CharLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeLongColumnTupleSource( + return new CharacterInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantObjectColumnTupleSource.java index 6c219d46fa3..3b714032772 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantObjectColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDateTimeObjectColumnTupleSource( + public CharacterInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final CharLongObjectTuple createPreviousTuple(final long rowKey) { public final CharLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongObjectTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -74,7 +74,7 @@ public final CharLongObjectTuple createTupleFromValues(@NotNull final Object... public final CharLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongObjectTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final CharLongObjectTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final CharLongObjectTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongObjectTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongObjectTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongObjectTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeObjectColumnTupleSource( + return new CharacterInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantReinterpretedBooleanColumnTupleSource.java index ae740357998..0d3d1f6ac31 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantReinterpretedBooleanColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDateTimeReinterpretedBooleanColumnTupleSource( + public CharacterInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final CharLongByteTuple createPreviousTuple(final long rowKey) { public final CharLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongByteTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -76,7 +76,7 @@ public final CharLongByteTuple createTupleFromValues(@NotNull final Object... va public final CharLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongByteTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final CharLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final CharLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeReinterpretedBooleanColumnTupleSource( + return new CharacterInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantReinterpretedInstantColumnTupleSource.java index 4581df244da..5b1ec505fa6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantReinterpretedInstantColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDateTimeReinterpretedDateTimeColumnTupleSource( + public CharacterInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,8 +66,8 @@ public final CharLongLongTuple createPreviousTuple(final long rowKey) { public final CharLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final CharLongLongTuple createTupleFromValues(@NotNull final Object... va public final CharLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final CharLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final CharLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeReinterpretedDateTimeColumnTupleSource( + return new CharacterInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantShortColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantShortColumnTupleSource.java index 8df8c3d5383..c9553801aa1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterInstantShortColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class CharacterInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterDateTimeShortColumnTupleSource( + public CharacterInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final CharLongShortTuple createPreviousTuple(final long rowKey) { public final CharLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongShortTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -75,7 +75,7 @@ public final CharLongShortTuple createTupleFromValues(@NotNull final Object... v public final CharLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new CharLongShortTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongShortTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongShortTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongShortTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongShortTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterDateTimeShortColumnTupleSource( + return new CharacterInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerInstantColumnTupleSource.java index 87dbffceb92..056cf4d1b04 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public CharacterIntegerDateTimeColumnTupleSource( + public CharacterIntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final CharIntLongTuple createTupleFromValues(@NotNull final Object... val return new CharIntLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final CharIntLongTuple createTupleFromReinterpretedValues(@NotNull final return new CharIntLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharIntLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final CharIntLongTuple t return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharIntLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new CharacterIntegerDateTimeColumnTupleSource( + return new CharacterIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerReinterpretedInstantColumnTupleSource.java index d0fe2402058..414886cff9b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterIntegerReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterIntegerReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterIntegerReinterpretedDateTimeColumnTupleSource( + public CharacterIntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final CharIntLongTuple createTupleFromValues(@NotNull final Object... val return new CharIntLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharIntLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterIntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterIntegerReinterpretedDateTimeColumnTupleSource( + return new CharacterIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongInstantColumnTupleSource.java index 5e3a222971f..aac3288a61e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public CharacterLongDateTimeColumnTupleSource( + public CharacterLongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final CharLongLongTuple createTupleFromValues(@NotNull final Object... va return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final CharLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharLongLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new CharacterLongDateTimeColumnTupleSource( + return new CharacterLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongReinterpretedInstantColumnTupleSource.java index 7f03b56bf75..2ae5fc08752 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterLongReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterLongReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterLongReinterpretedDateTimeColumnTupleSource( + public CharacterLongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final CharLongLongTuple createTupleFromValues(@NotNull final Object... va return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final CharLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final CharLongLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterLongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterLongReinterpretedDateTimeColumnTupleSource( + return new CharacterLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectInstantColumnTupleSource.java index 0e652045ba5..6e289587b08 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public CharacterObjectDateTimeColumnTupleSource( + public CharacterObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final CharObjectLongTuple createTupleFromValues(@NotNull final Object... return new CharObjectLongTuple( TypeUtils.unbox((Character)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final CharObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin return new CharObjectLongTuple( TypeUtils.unbox((Character)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final CharObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final CharObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final CharObjectLongTupl return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharObjectLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new CharacterObjectDateTimeColumnTupleSource( + return new CharacterObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectReinterpretedInstantColumnTupleSource.java index da1ccd5aa76..b01688b883b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterObjectReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterObjectReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterObjectReinterpretedDateTimeColumnTupleSource( + public CharacterObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final CharObjectLongTuple createTupleFromValues(@NotNull final Object... return new CharObjectLongTuple( TypeUtils.unbox((Character)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterObjectReinterpretedDateTimeColumnTupleSource( + return new CharacterObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanInstantColumnTupleSource.java index d8c396914ed..8a07ab0696b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public CharacterReinterpretedBooleanDateTimeColumnTupleSource( + public CharacterReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final CharByteLongTuple createTupleFromValues(@NotNull final Object... va return new CharByteLongTuple( TypeUtils.unbox((Character)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final CharByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new CharByteLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final CharByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final CharByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final CharByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedBooleanDateTimeColumnTupleSource( + return new CharacterReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index 66daf596da8..a53a6dfdd84 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public CharacterReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final CharByteLongTuple createTupleFromValues(@NotNull final Object... va return new CharByteLongTuple( TypeUtils.unbox((Character)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final CharByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final CharByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new CharacterReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantBooleanColumnTupleSource.java index bec9850194b..ace882b4ca6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeBooleanColumnTupleSource( + public CharacterReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final CharLongByteTuple createPreviousTuple(final long rowKey) { public final CharLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongByteTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final CharLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final CharLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeBooleanColumnTupleSource( + return new CharacterReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantByteColumnTupleSource.java index e5032e65107..8254b99fbaa 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeByteColumnTupleSource( + public CharacterReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final CharLongByteTuple createPreviousTuple(final long rowKey) { public final CharLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongByteTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeByteColumnTupleSource( + return new CharacterReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantCharacterColumnTupleSource.java index b7206becf61..a6ad3a8e1cf 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantCharacterColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeCharacterColumnTupleSource( + public CharacterReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final CharLongCharTuple createPreviousTuple(final long rowKey) { public final CharLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongCharTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final CharLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final CharLongCharTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeCharacterColumnTupleSource( + return new CharacterReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantColumnTupleSource.java index b458190fc0b..d872f3e25b1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public CharacterReinterpretedDateTimeColumnTupleSource( + public CharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -60,7 +60,7 @@ public final CharLongTuple createPreviousTuple(final long rowKey) { public final CharLongTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final CharLongTuple tupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final CharLongTuple tuple, int elemen return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new CharacterReinterpretedDateTimeColumnTupleSource( + return new CharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantDoubleColumnTupleSource.java index 66f4b7bd501..2fce5d1221f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeDoubleColumnTupleSource( + public CharacterReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final CharLongDoubleTuple createPreviousTuple(final long rowKey) { public final CharLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongDoubleTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongDoubleTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongDoubleTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeDoubleColumnTupleSource( + return new CharacterReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantFloatColumnTupleSource.java index 389db166cbe..b7bc94d0a04 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeFloatColumnTupleSource( + public CharacterReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final CharLongFloatTuple createPreviousTuple(final long rowKey) { public final CharLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongFloatTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongFloatTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeFloatColumnTupleSource( + return new CharacterReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantInstantColumnTupleSource.java index 28cbcafdac3..7734e582aea 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeDateTimeColumnTupleSource( + public CharacterReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,8 +66,8 @@ public final CharLongLongTuple createPreviousTuple(final long rowKey) { public final CharLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final CharLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final CharLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final CharLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final CharLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeDateTimeColumnTupleSource( + return new CharacterReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantIntegerColumnTupleSource.java index 59e5554a99e..74dbc943feb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeIntegerColumnTupleSource( + public CharacterReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final CharLongIntTuple createPreviousTuple(final long rowKey) { public final CharLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongIntTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongIntTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongIntTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeIntegerColumnTupleSource( + return new CharacterReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantLongColumnTupleSource.java index 21224317a44..cc4ccfa8a68 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeLongColumnTupleSource( + public CharacterReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final CharLongLongTuple createPreviousTuple(final long rowKey) { public final CharLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final CharLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final CharLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeLongColumnTupleSource( + return new CharacterReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantObjectColumnTupleSource.java index c37098b6040..c155c77afca 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeObjectColumnTupleSource( + public CharacterReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final CharLongObjectTuple createPreviousTuple(final long rowKey) { public final CharLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongObjectTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongObjectTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongObjectTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeObjectColumnTupleSource( + return new CharacterReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index 39636c56096..7faee463e30 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public CharacterReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final CharLongByteTuple createPreviousTuple(final long rowKey) { public final CharLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongByteTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final CharLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final CharLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new CharacterReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantReinterpretedInstantColumnTupleSource.java index 19ee63a0a5b..98ea8094e3c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public CharacterReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,8 +65,8 @@ public final CharLongLongTuple createPreviousTuple(final long rowKey) { public final CharLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongLongTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final CharLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final CharLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new CharacterReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantShortColumnTupleSource.java index 27efa603ce7..c331e9c9cf3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterReinterpretedInstantShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class CharacterReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterReinterpretedInstantShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterReinterpretedDateTimeShortColumnTupleSource( + public CharacterReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final CharLongShortTuple createPreviousTuple(final long rowKey) { public final CharLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new CharLongShortTuple( TypeUtils.unbox((Character)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final CharLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final CharLongShortTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterReinterpretedDateTimeShortColumnTupleSource( + return new CharacterReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortInstantColumnTupleSource.java index 7a28536c66f..d8993cb3233 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public CharacterShortDateTimeColumnTupleSource( + public CharacterShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final CharShortLongTuple createTupleFromValues(@NotNull final Object... v return new CharShortLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final CharShortLongTuple createTupleFromReinterpretedValues(@NotNull fina return new CharShortLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharShortLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final CharShortLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); CharChunk chunk1 = chunks[0].asCharChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new CharShortLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new CharacterShortDateTimeColumnTupleSource( + return new CharacterShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortReinterpretedInstantColumnTupleSource.java index 9a228c4a506..22524f592b3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/CharacterShortReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.CharShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Character, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class CharacterShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class CharacterShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link CharacterShortReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public CharacterShortReinterpretedDateTimeColumnTupleSource( + public CharacterShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final CharShortLongTuple createTupleFromValues(@NotNull final Object... v return new CharShortLongTuple( TypeUtils.unbox((Character)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final CharShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final CharShortLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link CharacterShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new CharacterShortReinterpretedDateTimeColumnTupleSource( + return new CharacterShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanInstantColumnTupleSource.java index f52e99d0ed3..daf311c9b6b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DoubleBooleanDateTimeColumnTupleSource( + public DoubleBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final DoubleByteLongTuple createTupleFromValues(@NotNull final Object... return new DoubleByteLongTuple( TypeUtils.unbox((Double)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final DoubleByteLongTuple createTupleFromReinterpretedValues(@NotNull fin return new DoubleByteLongTuple( TypeUtils.unbox((Double)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleByteLongTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleByteLongTupl return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleByteLongTuple(chunk1.get(ii), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DoubleBooleanDateTimeColumnTupleSource( + return new DoubleBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanReinterpretedInstantColumnTupleSource.java index ce2be8fc47a..9da23b50e2c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleBooleanReinterpretedDateTimeColumnTupleSource( + public DoubleBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final DoubleByteLongTuple createTupleFromValues(@NotNull final Object... return new DoubleByteLongTuple( TypeUtils.unbox((Double)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final DoubleByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final DoubleByteLongTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleBooleanReinterpretedDateTimeColumnTupleSource( + return new DoubleBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteInstantColumnTupleSource.java index ce73c748b12..6faecf3f040 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DoubleByteDateTimeColumnTupleSource( + public DoubleByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final DoubleByteLongTuple createTupleFromValues(@NotNull final Object... return new DoubleByteLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final DoubleByteLongTuple createTupleFromReinterpretedValues(@NotNull fin return new DoubleByteLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleByteLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleByteLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DoubleByteDateTimeColumnTupleSource( + return new DoubleByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteReinterpretedInstantColumnTupleSource.java index 9ce7d1d59c2..0d6f6440a08 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleByteReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleByteReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleByteReinterpretedDateTimeColumnTupleSource( + public DoubleByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final DoubleByteLongTuple createTupleFromValues(@NotNull final Object... return new DoubleByteLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleByteLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleByteReinterpretedDateTimeColumnTupleSource( + return new DoubleByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterInstantColumnTupleSource.java index 32dddd0b853..405c53b0a35 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DoubleCharacterDateTimeColumnTupleSource( + public DoubleCharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final DoubleCharLongTuple createTupleFromValues(@NotNull final Object... return new DoubleCharLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final DoubleCharLongTuple createTupleFromReinterpretedValues(@NotNull fin return new DoubleCharLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleCharLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleCharLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleCharLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleCharLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DoubleCharacterDateTimeColumnTupleSource( + return new DoubleCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterReinterpretedInstantColumnTupleSource.java index 3adac030bc4..6b3b3324da1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleCharacterReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleCharacterReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleCharacterReinterpretedDateTimeColumnTupleSource( + public DoubleCharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final DoubleCharLongTuple createTupleFromValues(@NotNull final Object... return new DoubleCharLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleCharLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleCharLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleCharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleCharacterReinterpretedDateTimeColumnTupleSource( + return new DoubleCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleInstantColumnTupleSource.java index 839bf7ef693..c1f6fa174f8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DoubleDoubleDateTimeColumnTupleSource( + public DoubleDoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final DoubleDoubleLongTuple createTupleFromValues(@NotNull final Object.. return new DoubleDoubleLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final DoubleDoubleLongTuple createTupleFromReinterpretedValues(@NotNull f return new DoubleDoubleLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final DoubleDoubleLongTu return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final DoubleDoubleLongTuple tuple, in return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleDoubleLongTu return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleDoubleLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DoubleDoubleDateTimeColumnTupleSource( + return new DoubleDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleReinterpretedInstantColumnTupleSource.java index ece8599de90..60e06de6499 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDoubleReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDoubleReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDoubleReinterpretedDateTimeColumnTupleSource( + public DoubleDoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final DoubleDoubleLongTuple createTupleFromValues(@NotNull final Object.. return new DoubleDoubleLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final DoubleDoubleLongTu return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final DoubleDoubleLongTuple tuple, in return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDoubleReinterpretedDateTimeColumnTupleSource( + return new DoubleDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatInstantColumnTupleSource.java index a8d26a3f52c..ba386c4b07d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DoubleFloatDateTimeColumnTupleSource( + public DoubleFloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final DoubleFloatLongTuple createTupleFromValues(@NotNull final Object... return new DoubleFloatLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final DoubleFloatLongTuple createTupleFromReinterpretedValues(@NotNull fi return new DoubleFloatLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleFloatLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleFloatLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleFloatLongTup return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleFloatLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DoubleFloatDateTimeColumnTupleSource( + return new DoubleFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatReinterpretedInstantColumnTupleSource.java index 6c71b70175d..aff76016b01 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleFloatReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleFloatReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleFloatReinterpretedDateTimeColumnTupleSource( + public DoubleFloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final DoubleFloatLongTuple createTupleFromValues(@NotNull final Object... return new DoubleFloatLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleFloatLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleFloatLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleFloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleFloatReinterpretedDateTimeColumnTupleSource( + return new DoubleFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantBooleanColumnTupleSource.java index 4bc0666a77d..7a0772f5747 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDateTimeBooleanColumnTupleSource( + public DoubleInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final DoubleLongByteTuple createPreviousTuple(final long rowKey) { public final DoubleLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongByteTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final DoubleLongByteTuple createTupleFromValues(@NotNull final Object... public final DoubleLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongByteTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongByteTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongByteTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongByteTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeBooleanColumnTupleSource( + return new DoubleInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantByteColumnTupleSource.java index b20c60261df..c4cac0b949d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantByteColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDateTimeByteColumnTupleSource( + public DoubleInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final DoubleLongByteTuple createPreviousTuple(final long rowKey) { public final DoubleLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongByteTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -75,7 +75,7 @@ public final DoubleLongByteTuple createTupleFromValues(@NotNull final Object... public final DoubleLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongByteTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongByteTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongByteTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongByteTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeByteColumnTupleSource( + return new DoubleInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantCharacterColumnTupleSource.java index 29672edc54b..283711b38d6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantCharacterColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDateTimeCharacterColumnTupleSource( + public DoubleInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final DoubleLongCharTuple createPreviousTuple(final long rowKey) { public final DoubleLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongCharTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -75,7 +75,7 @@ public final DoubleLongCharTuple createTupleFromValues(@NotNull final Object... public final DoubleLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongCharTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongCharTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongCharTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongCharTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongCharTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongCharTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeCharacterColumnTupleSource( + return new DoubleInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantColumnTupleSource.java index 7eedccd9f97..13271296076 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; - public DoubleDateTimeColumnTupleSource( + public DoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -60,7 +60,7 @@ public final DoubleLongTuple createPreviousTuple(final long rowKey) { public final DoubleLongTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -68,7 +68,7 @@ public final DoubleLongTuple createTupleFromValues(@NotNull final Object... valu public final DoubleLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final DoubleLongTuple tu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final DoubleLongTuple tuple, int elem return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -103,7 +103,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongTuple tu return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -111,15 +111,15 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongTuple tu protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link DoubleInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @@ -127,9 +127,9 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { - return new DoubleDateTimeColumnTupleSource( + return new DoubleInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantDoubleColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantDoubleColumnTupleSource.java index ae2ee827e20..5efdeac2acc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantDoubleColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDateTimeDoubleColumnTupleSource( + public DoubleInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final DoubleLongDoubleTuple createPreviousTuple(final long rowKey) { public final DoubleLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongDoubleTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -74,7 +74,7 @@ public final DoubleLongDoubleTuple createTupleFromValues(@NotNull final Object.. public final DoubleLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongDoubleTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final DoubleLongDoubleTu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final DoubleLongDoubleTuple tuple, in return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongDoubleTu return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongDoubleTu protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongDoubleTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeDoubleColumnTupleSource( + return new DoubleInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantFloatColumnTupleSource.java index 07b82b0a564..8e9590364b4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantFloatColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDateTimeFloatColumnTupleSource( + public DoubleInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final DoubleLongFloatTuple createPreviousTuple(final long rowKey) { public final DoubleLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongFloatTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -75,7 +75,7 @@ public final DoubleLongFloatTuple createTupleFromValues(@NotNull final Object... public final DoubleLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongFloatTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongFloatTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongFloatTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongFloatTup return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongFloatTup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongFloatTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeFloatColumnTupleSource( + return new DoubleInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantInstantColumnTupleSource.java index 2d15fd2acdd..d0ab180081b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public DoubleDateTimeDateTimeColumnTupleSource( + public DoubleInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,8 +65,8 @@ public final DoubleLongLongTuple createPreviousTuple(final long rowKey) { public final DoubleLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,8 +74,8 @@ public final DoubleLongLongTuple createTupleFromValues(@NotNull final Object... public final DoubleLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final DoubleLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final DoubleLongLongTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -117,10 +117,10 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongLongTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,16 +129,16 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongLongTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeDateTimeColumnTupleSource( + return new DoubleInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantIntegerColumnTupleSource.java index 9776d05611d..a69f2e95000 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantIntegerColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDateTimeIntegerColumnTupleSource( + public DoubleInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final DoubleLongIntTuple createPreviousTuple(final long rowKey) { public final DoubleLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongIntTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -75,7 +75,7 @@ public final DoubleLongIntTuple createTupleFromValues(@NotNull final Object... v public final DoubleLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongIntTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongIntTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongIntTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongIntTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongIntTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongIntTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeIntegerColumnTupleSource( + return new DoubleInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantLongColumnTupleSource.java index bc498a468b9..0ae5350c8ca 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantLongColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDateTimeLongColumnTupleSource( + public DoubleInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final DoubleLongLongTuple createPreviousTuple(final long rowKey) { public final DoubleLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -75,7 +75,7 @@ public final DoubleLongLongTuple createTupleFromValues(@NotNull final Object... public final DoubleLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongLongTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongLongTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongLongTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeLongColumnTupleSource( + return new DoubleInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantObjectColumnTupleSource.java index a1f8680b0a4..710e8171fb6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantObjectColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDateTimeObjectColumnTupleSource( + public DoubleInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final DoubleLongObjectTuple createPreviousTuple(final long rowKey) { public final DoubleLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongObjectTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -74,7 +74,7 @@ public final DoubleLongObjectTuple createTupleFromValues(@NotNull final Object.. public final DoubleLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongObjectTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final DoubleLongObjectTu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final DoubleLongObjectTuple tuple, in return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongObjectTu return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongObjectTu protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongObjectTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeObjectColumnTupleSource( + return new DoubleInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantReinterpretedBooleanColumnTupleSource.java index 12ae6419a86..212b9596e14 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantReinterpretedBooleanColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDateTimeReinterpretedBooleanColumnTupleSource( + public DoubleInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final DoubleLongByteTuple createPreviousTuple(final long rowKey) { public final DoubleLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongByteTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -76,7 +76,7 @@ public final DoubleLongByteTuple createTupleFromValues(@NotNull final Object... public final DoubleLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongByteTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final DoubleLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final DoubleLongByteTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongByteTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongByteTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeReinterpretedBooleanColumnTupleSource( + return new DoubleInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantReinterpretedInstantColumnTupleSource.java index 9344832b49a..4320542427a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantReinterpretedInstantColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDateTimeReinterpretedDateTimeColumnTupleSource( + public DoubleInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,8 +66,8 @@ public final DoubleLongLongTuple createPreviousTuple(final long rowKey) { public final DoubleLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final DoubleLongLongTuple createTupleFromValues(@NotNull final Object... public final DoubleLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final DoubleLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final DoubleLongLongTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongLongTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongLongTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeReinterpretedDateTimeColumnTupleSource( + return new DoubleInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantShortColumnTupleSource.java index e9bad297baa..c451a1d1ebc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleInstantShortColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class DoubleInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleDateTimeShortColumnTupleSource( + public DoubleInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final DoubleLongShortTuple createPreviousTuple(final long rowKey) { public final DoubleLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongShortTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -75,7 +75,7 @@ public final DoubleLongShortTuple createTupleFromValues(@NotNull final Object... public final DoubleLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new DoubleLongShortTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongShortTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongShortTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongShortTup return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongShortTup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongShortTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleDateTimeShortColumnTupleSource( + return new DoubleInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerInstantColumnTupleSource.java index feee182d5a1..e556a827a9b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DoubleIntegerDateTimeColumnTupleSource( + public DoubleIntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final DoubleIntLongTuple createTupleFromValues(@NotNull final Object... v return new DoubleIntLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final DoubleIntLongTuple createTupleFromReinterpretedValues(@NotNull fina return new DoubleIntLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleIntLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleIntLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleIntLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleIntLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DoubleIntegerDateTimeColumnTupleSource( + return new DoubleIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerReinterpretedInstantColumnTupleSource.java index a8d38e3c1f8..954a53b9cf3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleIntegerReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleIntegerReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleIntegerReinterpretedDateTimeColumnTupleSource( + public DoubleIntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final DoubleIntLongTuple createTupleFromValues(@NotNull final Object... v return new DoubleIntLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleIntLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleIntLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleIntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleIntegerReinterpretedDateTimeColumnTupleSource( + return new DoubleIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongInstantColumnTupleSource.java index 3498783a79e..1c09629c7c9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DoubleLongDateTimeColumnTupleSource( + public DoubleLongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final DoubleLongLongTuple createTupleFromValues(@NotNull final Object... return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final DoubleLongLongTuple createTupleFromReinterpretedValues(@NotNull fin return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleLongLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleLongLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DoubleLongDateTimeColumnTupleSource( + return new DoubleLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongReinterpretedInstantColumnTupleSource.java index f659502df9d..1ccb50020a9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleLongReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleLongReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleLongReinterpretedDateTimeColumnTupleSource( + public DoubleLongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final DoubleLongLongTuple createTupleFromValues(@NotNull final Object... return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final DoubleLongLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final DoubleLongLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleLongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleLongReinterpretedDateTimeColumnTupleSource( + return new DoubleLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectInstantColumnTupleSource.java index 1346de8b34b..4041f77f5b0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DoubleObjectDateTimeColumnTupleSource( + public DoubleObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final DoubleObjectLongTuple createTupleFromValues(@NotNull final Object.. return new DoubleObjectLongTuple( TypeUtils.unbox((Double)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final DoubleObjectLongTuple createTupleFromReinterpretedValues(@NotNull f return new DoubleObjectLongTuple( TypeUtils.unbox((Double)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final DoubleObjectLongTu return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final DoubleObjectLongTuple tuple, in return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleObjectLongTu return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleObjectLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DoubleObjectDateTimeColumnTupleSource( + return new DoubleObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectReinterpretedInstantColumnTupleSource.java index 44aa793cdf1..38f1a839198 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleObjectReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleObjectReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleObjectReinterpretedDateTimeColumnTupleSource( + public DoubleObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final DoubleObjectLongTuple createTupleFromValues(@NotNull final Object.. return new DoubleObjectLongTuple( TypeUtils.unbox((Double)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleObjectLongTu return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleObjectLongTuple tuple, in return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleObjectReinterpretedDateTimeColumnTupleSource( + return new DoubleObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanInstantColumnTupleSource.java index 80c3b615adc..2a51b38cfd5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DoubleReinterpretedBooleanDateTimeColumnTupleSource( + public DoubleReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final DoubleByteLongTuple createTupleFromValues(@NotNull final Object... return new DoubleByteLongTuple( TypeUtils.unbox((Double)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final DoubleByteLongTuple createTupleFromReinterpretedValues(@NotNull fin return new DoubleByteLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final DoubleByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final DoubleByteLongTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleByteLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedBooleanDateTimeColumnTupleSource( + return new DoubleReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index af4b2176c40..8805c807a82 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public DoubleReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final DoubleByteLongTuple createTupleFromValues(@NotNull final Object... return new DoubleByteLongTuple( TypeUtils.unbox((Double)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final DoubleByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final DoubleByteLongTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new DoubleReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantBooleanColumnTupleSource.java index b6caec88729..48e6f4f951e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeBooleanColumnTupleSource( + public DoubleReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final DoubleLongByteTuple createPreviousTuple(final long rowKey) { public final DoubleLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongByteTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final DoubleLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final DoubleLongByteTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeBooleanColumnTupleSource( + return new DoubleReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantByteColumnTupleSource.java index 15d781bdb48..79e0ed779b2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeByteColumnTupleSource( + public DoubleReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final DoubleLongByteTuple createPreviousTuple(final long rowKey) { public final DoubleLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongByteTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongByteTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeByteColumnTupleSource( + return new DoubleReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantCharacterColumnTupleSource.java index cc76383ccc9..78e5c34c044 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeCharacterColumnTupleSource( + public DoubleReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final DoubleLongCharTuple createPreviousTuple(final long rowKey) { public final DoubleLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongCharTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongCharTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongCharTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeCharacterColumnTupleSource( + return new DoubleReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantColumnTupleSource.java index 97ccecc6917..276a29009a2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DoubleReinterpretedDateTimeColumnTupleSource( + public DoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -60,7 +60,7 @@ public final DoubleLongTuple createPreviousTuple(final long rowKey) { public final DoubleLongTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final DoubleLongTuple tu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final DoubleLongTuple tuple, int elem return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DoubleReinterpretedDateTimeColumnTupleSource( + return new DoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantDoubleColumnTupleSource.java index 57cee267de8..310eb39146a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantDoubleColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeDoubleColumnTupleSource( + public DoubleReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final DoubleLongDoubleTuple createPreviousTuple(final long rowKey) { public final DoubleLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongDoubleTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final DoubleLongDoubleTu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final DoubleLongDoubleTuple tuple, in return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeDoubleColumnTupleSource( + return new DoubleReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantFloatColumnTupleSource.java index 993fe5fa9bd..602d8483f17 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeFloatColumnTupleSource( + public DoubleReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final DoubleLongFloatTuple createPreviousTuple(final long rowKey) { public final DoubleLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongFloatTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongFloatTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongFloatTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeFloatColumnTupleSource( + return new DoubleReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantInstantColumnTupleSource.java index 0c4b265e7cc..32a2f5143c3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeDateTimeColumnTupleSource( + public DoubleReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,8 +66,8 @@ public final DoubleLongLongTuple createPreviousTuple(final long rowKey) { public final DoubleLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final DoubleLongLongTuple createTupleFromReinterpretedValues(@NotNull fin return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final DoubleLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final DoubleLongLongTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleLongLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeDateTimeColumnTupleSource( + return new DoubleReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantIntegerColumnTupleSource.java index e39b5df012b..006bdc405d7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeIntegerColumnTupleSource( + public DoubleReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final DoubleLongIntTuple createPreviousTuple(final long rowKey) { public final DoubleLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongIntTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongIntTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongIntTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeIntegerColumnTupleSource( + return new DoubleReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantLongColumnTupleSource.java index bc595f4c182..8926aef03e8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeLongColumnTupleSource( + public DoubleReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final DoubleLongLongTuple createPreviousTuple(final long rowKey) { public final DoubleLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final DoubleLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final DoubleLongLongTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeLongColumnTupleSource( + return new DoubleReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantObjectColumnTupleSource.java index 440357a446a..f31a4c8d6e2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeObjectColumnTupleSource( + public DoubleReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final DoubleLongObjectTuple createPreviousTuple(final long rowKey) { public final DoubleLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongObjectTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongObjectTu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongObjectTuple tuple, in return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeObjectColumnTupleSource( + return new DoubleReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index dd26befb3be..faf2cbdb84d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public DoubleReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final DoubleLongByteTuple createPreviousTuple(final long rowKey) { public final DoubleLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongByteTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final DoubleLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final DoubleLongByteTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new DoubleReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantReinterpretedInstantColumnTupleSource.java index c620454a8be..cb061cd00ee 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public DoubleReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,8 +65,8 @@ public final DoubleLongLongTuple createPreviousTuple(final long rowKey) { public final DoubleLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongLongTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final DoubleLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final DoubleLongLongTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new DoubleReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantShortColumnTupleSource.java index f55525709c1..75a2d5e4041 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleReinterpretedInstantShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class DoubleReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleReinterpretedInstantShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleReinterpretedDateTimeShortColumnTupleSource( + public DoubleReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final DoubleLongShortTuple createPreviousTuple(final long rowKey) { public final DoubleLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new DoubleLongShortTuple( TypeUtils.unbox((Double)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final DoubleLongShortTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final DoubleLongShortTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleReinterpretedDateTimeShortColumnTupleSource( + return new DoubleReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortInstantColumnTupleSource.java index b4ea05d5d08..f1a909d3b48 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DoubleShortDateTimeColumnTupleSource( + public DoubleShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final DoubleShortLongTuple createTupleFromValues(@NotNull final Object... return new DoubleShortLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final DoubleShortLongTuple createTupleFromReinterpretedValues(@NotNull fi return new DoubleShortLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleShortLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleShortLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final DoubleShortLongTup return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); DoubleChunk chunk1 = chunks[0].asDoubleChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new DoubleShortLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DoubleShortDateTimeColumnTupleSource( + return new DoubleShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortReinterpretedInstantColumnTupleSource.java index 2f7e69fe11c..f93a4accb23 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DoubleShortReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.DoubleShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Double, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DoubleShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class DoubleShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DoubleShortReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DoubleShortReinterpretedDateTimeColumnTupleSource( + public DoubleShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final DoubleShortLongTuple createTupleFromValues(@NotNull final Object... return new DoubleShortLongTuple( TypeUtils.unbox((Double)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final DoubleShortLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final DoubleShortLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DoubleShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DoubleShortReinterpretedDateTimeColumnTupleSource( + return new DoubleShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanInstantColumnTupleSource.java index 84e8f07edf6..a5fd29ce4c0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public FloatBooleanDateTimeColumnTupleSource( + public FloatBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final FloatByteLongTuple createTupleFromValues(@NotNull final Object... v return new FloatByteLongTuple( TypeUtils.unbox((Float)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final FloatByteLongTuple createTupleFromReinterpretedValues(@NotNull fina return new FloatByteLongTuple( TypeUtils.unbox((Float)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatByteLongTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatByteLongTuple return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatByteLongTuple(chunk1.get(ii), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new FloatBooleanDateTimeColumnTupleSource( + return new FloatBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanReinterpretedInstantColumnTupleSource.java index 0a151b1be52..f8ae92eb825 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatBooleanReinterpretedDateTimeColumnTupleSource( + public FloatBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final FloatByteLongTuple createTupleFromValues(@NotNull final Object... v return new FloatByteLongTuple( TypeUtils.unbox((Float)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final FloatByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final FloatByteLongTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatBooleanReinterpretedDateTimeColumnTupleSource( + return new FloatBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteInstantColumnTupleSource.java index cde06d86b36..f163a843d07 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public FloatByteDateTimeColumnTupleSource( + public FloatByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final FloatByteLongTuple createTupleFromValues(@NotNull final Object... v return new FloatByteLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final FloatByteLongTuple createTupleFromReinterpretedValues(@NotNull fina return new FloatByteLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatByteLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new FloatByteDateTimeColumnTupleSource( + return new FloatByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteReinterpretedInstantColumnTupleSource.java index 32b8444a5bb..bfc3dec6bbf 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatByteReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatByteReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatByteReinterpretedDateTimeColumnTupleSource( + public FloatByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final FloatByteLongTuple createTupleFromValues(@NotNull final Object... v return new FloatByteLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatByteLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatByteReinterpretedDateTimeColumnTupleSource( + return new FloatByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterInstantColumnTupleSource.java index 2558c6592e2..20605a473cb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public FloatCharacterDateTimeColumnTupleSource( + public FloatCharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final FloatCharLongTuple createTupleFromValues(@NotNull final Object... v return new FloatCharLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final FloatCharLongTuple createTupleFromReinterpretedValues(@NotNull fina return new FloatCharLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatCharLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatCharLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatCharLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new FloatCharacterDateTimeColumnTupleSource( + return new FloatCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterReinterpretedInstantColumnTupleSource.java index 3ff5cff3f6e..a759ac3671f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatCharacterReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatCharacterReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatCharacterReinterpretedDateTimeColumnTupleSource( + public FloatCharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final FloatCharLongTuple createTupleFromValues(@NotNull final Object... v return new FloatCharLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatCharLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatCharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatCharacterReinterpretedDateTimeColumnTupleSource( + return new FloatCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleInstantColumnTupleSource.java index 59d61a11abc..5bd6565a11d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public FloatDoubleDateTimeColumnTupleSource( + public FloatDoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final FloatDoubleLongTuple createTupleFromValues(@NotNull final Object... return new FloatDoubleLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final FloatDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fi return new FloatDoubleLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatDoubleLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatDoubleLongTup return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatDoubleLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new FloatDoubleDateTimeColumnTupleSource( + return new FloatDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleReinterpretedInstantColumnTupleSource.java index 0c4a2f06cca..1c099f7b3a7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDoubleReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDoubleReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDoubleReinterpretedDateTimeColumnTupleSource( + public FloatDoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final FloatDoubleLongTuple createTupleFromValues(@NotNull final Object... return new FloatDoubleLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatDoubleLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDoubleReinterpretedDateTimeColumnTupleSource( + return new FloatDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatInstantColumnTupleSource.java index aa8abf388c0..06c3b0fc708 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public FloatFloatDateTimeColumnTupleSource( + public FloatFloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final FloatFloatLongTuple createTupleFromValues(@NotNull final Object... return new FloatFloatLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final FloatFloatLongTuple createTupleFromReinterpretedValues(@NotNull fin return new FloatFloatLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final FloatFloatLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final FloatFloatLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatFloatLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatFloatLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new FloatFloatDateTimeColumnTupleSource( + return new FloatFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatReinterpretedInstantColumnTupleSource.java index fbdc56d64ae..815e550ad92 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatFloatReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatFloatReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatFloatReinterpretedDateTimeColumnTupleSource( + public FloatFloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final FloatFloatLongTuple createTupleFromValues(@NotNull final Object... return new FloatFloatLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final FloatFloatLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final FloatFloatLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatFloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatFloatReinterpretedDateTimeColumnTupleSource( + return new FloatFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantBooleanColumnTupleSource.java index 485737375dd..832ff8cb631 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class FloatInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDateTimeBooleanColumnTupleSource( + public FloatInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final FloatLongByteTuple createPreviousTuple(final long rowKey) { public final FloatLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongByteTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final FloatLongByteTuple createTupleFromValues(@NotNull final Object... v public final FloatLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongByteTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeBooleanColumnTupleSource( + return new FloatInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantByteColumnTupleSource.java index cf56746a8f8..1d447f68b05 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantByteColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class FloatInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDateTimeByteColumnTupleSource( + public FloatInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final FloatLongByteTuple createPreviousTuple(final long rowKey) { public final FloatLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongByteTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -75,7 +75,7 @@ public final FloatLongByteTuple createTupleFromValues(@NotNull final Object... v public final FloatLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongByteTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeByteColumnTupleSource( + return new FloatInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantCharacterColumnTupleSource.java index 253842812f5..d1b7b62ff11 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantCharacterColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class FloatInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDateTimeCharacterColumnTupleSource( + public FloatInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final FloatLongCharTuple createPreviousTuple(final long rowKey) { public final FloatLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongCharTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -75,7 +75,7 @@ public final FloatLongCharTuple createTupleFromValues(@NotNull final Object... v public final FloatLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongCharTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongCharTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongCharTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongCharTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongCharTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeCharacterColumnTupleSource( + return new FloatInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantColumnTupleSource.java index f8cab57695a..1748bb27f4f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link FloatInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; - public FloatDateTimeColumnTupleSource( + public FloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -60,7 +60,7 @@ public final FloatLongTuple createPreviousTuple(final long rowKey) { public final FloatLongTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -68,7 +68,7 @@ public final FloatLongTuple createTupleFromValues(@NotNull final Object... value public final FloatLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final FloatLongTuple tup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final FloatLongTuple tuple, int eleme return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -103,7 +103,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongTuple tup return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -111,15 +111,15 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongTuple tup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link FloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link FloatInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @@ -127,9 +127,9 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { - return new FloatDateTimeColumnTupleSource( + return new FloatInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantDoubleColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantDoubleColumnTupleSource.java index 03d3876407f..21343bcf5f8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantDoubleColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class FloatInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDateTimeDoubleColumnTupleSource( + public FloatInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final FloatLongDoubleTuple createPreviousTuple(final long rowKey) { public final FloatLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongDoubleTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -75,7 +75,7 @@ public final FloatLongDoubleTuple createTupleFromValues(@NotNull final Object... public final FloatLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongDoubleTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongDoubleTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongDoubleTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongDoubleTup return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongDoubleTup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongDoubleTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeDoubleColumnTupleSource( + return new FloatInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantFloatColumnTupleSource.java index 626c76057f2..4ff51bf43cf 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantFloatColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class FloatInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDateTimeFloatColumnTupleSource( + public FloatInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final FloatLongFloatTuple createPreviousTuple(final long rowKey) { public final FloatLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongFloatTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -74,7 +74,7 @@ public final FloatLongFloatTuple createTupleFromValues(@NotNull final Object... public final FloatLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongFloatTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final FloatLongFloatTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final FloatLongFloatTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongFloatTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongFloatTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongFloatTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeFloatColumnTupleSource( + return new FloatInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantInstantColumnTupleSource.java index 5c214cbb198..4dcf825f250 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public FloatDateTimeDateTimeColumnTupleSource( + public FloatInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,8 +65,8 @@ public final FloatLongLongTuple createPreviousTuple(final long rowKey) { public final FloatLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,8 +74,8 @@ public final FloatLongLongTuple createTupleFromValues(@NotNull final Object... v public final FloatLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final FloatLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final FloatLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -117,10 +117,10 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,16 +129,16 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeDateTimeColumnTupleSource( + return new FloatInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantIntegerColumnTupleSource.java index 71df13ee5d4..1ffacced1c8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantIntegerColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class FloatInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDateTimeIntegerColumnTupleSource( + public FloatInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final FloatLongIntTuple createPreviousTuple(final long rowKey) { public final FloatLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongIntTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -75,7 +75,7 @@ public final FloatLongIntTuple createTupleFromValues(@NotNull final Object... va public final FloatLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongIntTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongIntTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongIntTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongIntTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongIntTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongIntTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeIntegerColumnTupleSource( + return new FloatInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantLongColumnTupleSource.java index d7ae75bba5e..80fe5b0198d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantLongColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class FloatInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDateTimeLongColumnTupleSource( + public FloatInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final FloatLongLongTuple createPreviousTuple(final long rowKey) { public final FloatLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -75,7 +75,7 @@ public final FloatLongLongTuple createTupleFromValues(@NotNull final Object... v public final FloatLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeLongColumnTupleSource( + return new FloatInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantObjectColumnTupleSource.java index f0f201dfd28..77b369fe1ab 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantObjectColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class FloatInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDateTimeObjectColumnTupleSource( + public FloatInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final FloatLongObjectTuple createPreviousTuple(final long rowKey) { public final FloatLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongObjectTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -74,7 +74,7 @@ public final FloatLongObjectTuple createTupleFromValues(@NotNull final Object... public final FloatLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongObjectTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final FloatLongObjectTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final FloatLongObjectTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongObjectTup return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongObjectTup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongObjectTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeObjectColumnTupleSource( + return new FloatInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantReinterpretedBooleanColumnTupleSource.java index b6d30ebeea5..e936a565c23 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantReinterpretedBooleanColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class FloatInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDateTimeReinterpretedBooleanColumnTupleSource( + public FloatInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final FloatLongByteTuple createPreviousTuple(final long rowKey) { public final FloatLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongByteTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -76,7 +76,7 @@ public final FloatLongByteTuple createTupleFromValues(@NotNull final Object... v public final FloatLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongByteTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final FloatLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final FloatLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeReinterpretedBooleanColumnTupleSource( + return new FloatInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantReinterpretedInstantColumnTupleSource.java index 1bce57869ee..f243f39d855 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantReinterpretedInstantColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDateTimeReinterpretedDateTimeColumnTupleSource( + public FloatInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,8 +66,8 @@ public final FloatLongLongTuple createPreviousTuple(final long rowKey) { public final FloatLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final FloatLongLongTuple createTupleFromValues(@NotNull final Object... v public final FloatLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final FloatLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final FloatLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeReinterpretedDateTimeColumnTupleSource( + return new FloatInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantShortColumnTupleSource.java index 58e8de414e1..02b328221f8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatInstantShortColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class FloatInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatDateTimeShortColumnTupleSource( + public FloatInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final FloatLongShortTuple createPreviousTuple(final long rowKey) { public final FloatLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongShortTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -75,7 +75,7 @@ public final FloatLongShortTuple createTupleFromValues(@NotNull final Object... public final FloatLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new FloatLongShortTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongShortTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongShortTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongShortTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongShortTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongShortTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatDateTimeShortColumnTupleSource( + return new FloatInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerInstantColumnTupleSource.java index c4396c12db1..5e7464ec511 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public FloatIntegerDateTimeColumnTupleSource( + public FloatIntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final FloatIntLongTuple createTupleFromValues(@NotNull final Object... va return new FloatIntLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final FloatIntLongTuple createTupleFromReinterpretedValues(@NotNull final return new FloatIntLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatIntLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatIntLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatIntLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatIntLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new FloatIntegerDateTimeColumnTupleSource( + return new FloatIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerReinterpretedInstantColumnTupleSource.java index 00f49b58f58..f324a769646 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatIntegerReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatIntegerReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatIntegerReinterpretedDateTimeColumnTupleSource( + public FloatIntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final FloatIntLongTuple createTupleFromValues(@NotNull final Object... va return new FloatIntLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatIntLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatIntLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatIntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatIntegerReinterpretedDateTimeColumnTupleSource( + return new FloatIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongInstantColumnTupleSource.java index aaf6b27e84b..881560394d2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public FloatLongDateTimeColumnTupleSource( + public FloatLongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final FloatLongLongTuple createTupleFromValues(@NotNull final Object... v return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final FloatLongLongTuple createTupleFromReinterpretedValues(@NotNull fina return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatLongLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new FloatLongDateTimeColumnTupleSource( + return new FloatLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongReinterpretedInstantColumnTupleSource.java index 83d816b0cd0..28b4488035f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatLongReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatLongReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatLongReinterpretedDateTimeColumnTupleSource( + public FloatLongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final FloatLongLongTuple createTupleFromValues(@NotNull final Object... v return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final FloatLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final FloatLongLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatLongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatLongReinterpretedDateTimeColumnTupleSource( + return new FloatLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectInstantColumnTupleSource.java index 68176e86895..e487262bbf8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public FloatObjectDateTimeColumnTupleSource( + public FloatObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final FloatObjectLongTuple createTupleFromValues(@NotNull final Object... return new FloatObjectLongTuple( TypeUtils.unbox((Float)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final FloatObjectLongTuple createTupleFromReinterpretedValues(@NotNull fi return new FloatObjectLongTuple( TypeUtils.unbox((Float)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final FloatObjectLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final FloatObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatObjectLongTup return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatObjectLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new FloatObjectDateTimeColumnTupleSource( + return new FloatObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectReinterpretedInstantColumnTupleSource.java index 81613c28e1d..9380b13a6e1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatObjectReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatObjectReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatObjectReinterpretedDateTimeColumnTupleSource( + public FloatObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final FloatObjectLongTuple createTupleFromValues(@NotNull final Object... return new FloatObjectLongTuple( TypeUtils.unbox((Float)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatObjectLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatObjectReinterpretedDateTimeColumnTupleSource( + return new FloatObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanInstantColumnTupleSource.java index a768049688e..dbaa71bcdea 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public FloatReinterpretedBooleanDateTimeColumnTupleSource( + public FloatReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final FloatByteLongTuple createTupleFromValues(@NotNull final Object... v return new FloatByteLongTuple( TypeUtils.unbox((Float)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final FloatByteLongTuple createTupleFromReinterpretedValues(@NotNull fina return new FloatByteLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final FloatByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final FloatByteLongTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedBooleanDateTimeColumnTupleSource( + return new FloatReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index 5d30240a9c8..fae8ae59056 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public FloatReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final FloatByteLongTuple createTupleFromValues(@NotNull final Object... v return new FloatByteLongTuple( TypeUtils.unbox((Float)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final FloatByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final FloatByteLongTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new FloatReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantBooleanColumnTupleSource.java index 5934ab4e0bc..6afecf8b618 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeBooleanColumnTupleSource( + public FloatReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final FloatLongByteTuple createPreviousTuple(final long rowKey) { public final FloatLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongByteTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final FloatLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final FloatLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeBooleanColumnTupleSource( + return new FloatReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantByteColumnTupleSource.java index c46d68e056c..34d7e994fc9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeByteColumnTupleSource( + public FloatReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final FloatLongByteTuple createPreviousTuple(final long rowKey) { public final FloatLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongByteTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeByteColumnTupleSource( + return new FloatReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantCharacterColumnTupleSource.java index 0bccdd4e06d..0aef702d7f0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeCharacterColumnTupleSource( + public FloatReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final FloatLongCharTuple createPreviousTuple(final long rowKey) { public final FloatLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongCharTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongCharTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeCharacterColumnTupleSource( + return new FloatReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantColumnTupleSource.java index 54bb36cb81d..b97028c2153 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public FloatReinterpretedDateTimeColumnTupleSource( + public FloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -60,7 +60,7 @@ public final FloatLongTuple createPreviousTuple(final long rowKey) { public final FloatLongTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final FloatLongTuple tup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final FloatLongTuple tuple, int eleme return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new FloatReinterpretedDateTimeColumnTupleSource( + return new FloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantDoubleColumnTupleSource.java index 71d5decae5e..1fdb1eb4328 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeDoubleColumnTupleSource( + public FloatReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final FloatLongDoubleTuple createPreviousTuple(final long rowKey) { public final FloatLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongDoubleTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongDoubleTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongDoubleTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeDoubleColumnTupleSource( + return new FloatReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantFloatColumnTupleSource.java index 6d547df702c..b42aee5864c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantFloatColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeFloatColumnTupleSource( + public FloatReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final FloatLongFloatTuple createPreviousTuple(final long rowKey) { public final FloatLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongFloatTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final FloatLongFloatTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final FloatLongFloatTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeFloatColumnTupleSource( + return new FloatReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantInstantColumnTupleSource.java index 2dc4059077c..da928f8fa04 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeDateTimeColumnTupleSource( + public FloatReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,8 +66,8 @@ public final FloatLongLongTuple createPreviousTuple(final long rowKey) { public final FloatLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final FloatLongLongTuple createTupleFromReinterpretedValues(@NotNull fina return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final FloatLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final FloatLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeDateTimeColumnTupleSource( + return new FloatReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantIntegerColumnTupleSource.java index 09d45d570cb..8a0ae4f0650 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeIntegerColumnTupleSource( + public FloatReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final FloatLongIntTuple createPreviousTuple(final long rowKey) { public final FloatLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongIntTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongIntTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongIntTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeIntegerColumnTupleSource( + return new FloatReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantLongColumnTupleSource.java index 5834734b95f..4572ca89b97 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeLongColumnTupleSource( + public FloatReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final FloatLongLongTuple createPreviousTuple(final long rowKey) { public final FloatLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final FloatLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final FloatLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeLongColumnTupleSource( + return new FloatReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantObjectColumnTupleSource.java index f142b42270d..91249505f3d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeObjectColumnTupleSource( + public FloatReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final FloatLongObjectTuple createPreviousTuple(final long rowKey) { public final FloatLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongObjectTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongObjectTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongObjectTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeObjectColumnTupleSource( + return new FloatReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index 09cd9989d83..77b71b5accc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public FloatReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final FloatLongByteTuple createPreviousTuple(final long rowKey) { public final FloatLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongByteTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final FloatLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final FloatLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new FloatReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantReinterpretedInstantColumnTupleSource.java index b339abddd66..d3201c456ea 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public FloatReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,8 +65,8 @@ public final FloatLongLongTuple createPreviousTuple(final long rowKey) { public final FloatLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongLongTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final FloatLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final FloatLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new FloatReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantShortColumnTupleSource.java index ca32fa8aafd..becd0a34168 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatReinterpretedInstantShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class FloatReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatReinterpretedInstantShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatReinterpretedDateTimeShortColumnTupleSource( + public FloatReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final FloatLongShortTuple createPreviousTuple(final long rowKey) { public final FloatLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new FloatLongShortTuple( TypeUtils.unbox((Float)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final FloatLongShortTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final FloatLongShortTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatReinterpretedDateTimeShortColumnTupleSource( + return new FloatReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortInstantColumnTupleSource.java index 55ac1470fab..cda91803c79 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public FloatShortDateTimeColumnTupleSource( + public FloatShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final FloatShortLongTuple createTupleFromValues(@NotNull final Object... return new FloatShortLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final FloatShortLongTuple createTupleFromReinterpretedValues(@NotNull fin return new FloatShortLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatShortLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatShortLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final FloatShortLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); FloatChunk chunk1 = chunks[0].asFloatChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new FloatShortLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new FloatShortDateTimeColumnTupleSource( + return new FloatShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortReinterpretedInstantColumnTupleSource.java index be6bb1ed36c..2feadeed5a9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/FloatShortReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.FloatShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Float, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class FloatShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class FloatShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link FloatShortReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public FloatShortReinterpretedDateTimeColumnTupleSource( + public FloatShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final FloatShortLongTuple createTupleFromValues(@NotNull final Object... return new FloatShortLongTuple( TypeUtils.unbox((Float)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final FloatShortLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final FloatShortLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link FloatShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new FloatShortReinterpretedDateTimeColumnTupleSource( + return new FloatShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanBooleanColumnTupleSource.java index 2d197f698a0..7e7e2fb4bef 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanBooleanColumnTupleSource.java @@ -10,29 +10,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeBooleanBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -63,7 +63,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -72,7 +72,7 @@ public final LongByteByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -82,7 +82,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -99,7 +99,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -113,7 +113,7 @@ public final Object exportElement(@NotNull final LongByteByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -127,7 +127,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -136,19 +136,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanBooleanColumnTupleSource( + return new InstantBooleanBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanByteColumnTupleSource.java index 7b1da574ab7..03ff6367a66 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanByteColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanByteColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeBooleanByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanByteColumnTupleSource( + return new InstantBooleanByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanCharacterColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanCharacterColumnTupleSource.java index 78d62279fa6..cad91dfb525 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanCharacterColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteCharTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeBooleanCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteCharTuple createPreviousTuple(final long rowKey) { @Override public final LongByteCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteCharTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteCharTuple @Override public final Object exportElement(@NotNull final LongByteCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteCharTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteCharTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanCharacterColumnTupleSource( + return new InstantBooleanCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanColumnTupleSource.java index 52038135ec6..92afa4d7619 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanColumnTupleSource.java @@ -10,28 +10,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DateTimeBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); @@ -58,7 +58,7 @@ public final LongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]) ); } @@ -66,7 +66,7 @@ public final LongByteTuple createTupleFromValues(@NotNull final Object... values @Override public final LongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]) ); } @@ -75,7 +75,7 @@ public final LongByteTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final LongByteTuple tupl @Override public final Object exportElement(@NotNull final LongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -99,7 +99,7 @@ public final Object exportElement(@NotNull final LongByteTuple tuple, int elemen @Override public final Object exportElementReinterpreted(@NotNull final LongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -109,7 +109,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), BooleanUtils.booleanAsByte(chunk2.get(ii)))); @@ -117,18 +117,18 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantBooleanColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DateTimeBooleanColumnTupleSource( + return new InstantBooleanColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanDoubleColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanDoubleColumnTupleSource.java index f8041625597..28c7746a742 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanDoubleColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteDoubleTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeBooleanDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongByteDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteDoubleTuple createTupleFromValues(@NotNull final Object... @Override public final LongByteDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteDoubleTupl @Override public final Object exportElement(@NotNull final LongByteDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteDoubleTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongByteDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteDoubleTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanDoubleColumnTupleSource( + return new InstantBooleanDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanFloatColumnTupleSource.java index 9f299cb1e7d..d22f4560a55 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanFloatColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteFloatTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanFloatColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeBooleanFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongByteFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteFloatTuple createTupleFromValues(@NotNull final Object... v @Override public final LongByteFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteFloatTuple @Override public final Object exportElement(@NotNull final LongByteFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteFloatTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongByteFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteFloatTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanFloatColumnTupleSource( + return new InstantBooleanFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanInstantColumnTupleSource.java index db6ff0e5a42..d2c3ed9f079 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanInstantColumnTupleSource.java @@ -10,31 +10,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DateTimeBooleanDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -63,18 +63,18 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -82,7 +82,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -90,7 +90,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -99,13 +99,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -113,13 +113,13 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -127,28 +127,28 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanDateTimeColumnTupleSource( + return new InstantBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanIntegerColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanIntegerColumnTupleSource.java index 4c2512369dd..61026939c36 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanIntegerColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteIntTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeBooleanIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteIntTuple createPreviousTuple(final long rowKey) { @Override public final LongByteIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteIntTuple createTupleFromValues(@NotNull final Object... val @Override public final LongByteIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteIntTuple t @Override public final Object exportElement(@NotNull final LongByteIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteIntTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongByteIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteIntTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanIntegerColumnTupleSource( + return new InstantBooleanIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanLongColumnTupleSource.java index 4270fd553f8..9493ada5e72 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanLongColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanLongColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeBooleanLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteLongTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanLongColumnTupleSource( + return new InstantBooleanLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanObjectColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanObjectColumnTupleSource.java index cbbec4941ca..9a2c27ca8bc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanObjectColumnTupleSource.java @@ -10,29 +10,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteObjectTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanObjectColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeBooleanObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -63,7 +63,7 @@ public final LongByteObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongByteObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), values[2] ); @@ -72,7 +72,7 @@ public final LongByteObjectTuple createTupleFromValues(@NotNull final Object... @Override public final LongByteObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), values[2] ); @@ -82,7 +82,7 @@ public final LongByteObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -99,7 +99,7 @@ public final void exportElement(@NotNull final LongByteObjectTupl @Override public final Object exportElement(@NotNull final LongByteObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -113,7 +113,7 @@ public final Object exportElement(@NotNull final LongByteObjectTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongByteObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -127,7 +127,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteObjectTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -136,19 +136,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanObjectColumnTupleSource( + return new InstantBooleanObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanReinterpretedBooleanColumnTupleSource.java index 38359a480e9..6da6e7dbc36 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanReinterpretedBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeBooleanReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanReinterpretedBooleanColumnTupleSource( + return new InstantBooleanReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanReinterpretedInstantColumnTupleSource.java index 8f9fc704f44..c2560475366 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanReinterpretedInstantColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeBooleanReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,16 +65,16 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanReinterpretedDateTimeColumnTupleSource( + return new InstantBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanShortColumnTupleSource.java index d1897587669..d08b3cdbeba 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeBooleanShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantBooleanShortColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteShortTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Boolean, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Boolean, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeBooleanShortColumnTupleSource extends AbstractTupleSource { +public class InstantBooleanShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeBooleanShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantBooleanShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeBooleanShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantBooleanShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteShortTuple createPreviousTuple(final long rowKey) { @Override public final LongByteShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteShortTuple createTupleFromValues(@NotNull final Object... v @Override public final LongByteShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteShortTuple @Override public final Object exportElement(@NotNull final LongByteShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteShortTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongByteShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteShortTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeBooleanShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantBooleanShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeBooleanShortColumnTupleSource( + return new InstantBooleanShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteBooleanColumnTupleSource.java index cc35ad0fec4..aa7036a1f10 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantByteBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeByteBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteBooleanColumnTupleSource( + return new InstantByteBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteByteColumnTupleSource.java index ff2e9603872..945d8cc17fa 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteByteColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteByteColumnTupleSource extends AbstractTupleSource { +public class InstantByteByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeByteByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -73,7 +73,7 @@ public final LongByteByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -83,7 +83,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongByteByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteByteColumnTupleSource( + return new InstantByteByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteCharacterColumnTupleSource.java index 306a8875ebf..863209ccbf5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteCharacterColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantByteCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeByteCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteCharTuple createPreviousTuple(final long rowKey) { @Override public final LongByteCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteCharTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteCharTuple @Override public final Object exportElement(@NotNull final LongByteCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteCharTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteCharTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteCharacterColumnTupleSource( + return new InstantByteCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteColumnTupleSource.java index 7573ef2e823..7fe1991e5b8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteColumnTupleSource extends AbstractTupleSource { +public class InstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantByteColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DateTimeByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); @@ -59,7 +59,7 @@ public final LongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]) ); } @@ -67,7 +67,7 @@ public final LongByteTuple createTupleFromValues(@NotNull final Object... values @Override public final LongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]) ); } @@ -76,7 +76,7 @@ public final LongByteTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongByteTuple tupl @Override public final Object exportElement(@NotNull final LongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -100,7 +100,7 @@ public final Object exportElement(@NotNull final LongByteTuple tuple, int elemen @Override public final Object exportElementReinterpreted(@NotNull final LongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -110,7 +110,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii))); @@ -118,18 +118,18 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeByteColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantByteColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DateTimeByteColumnTupleSource( + return new InstantByteColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteDoubleColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteDoubleColumnTupleSource.java index a8dd9fa13dc..dbf1a1815dc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteDoubleColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantByteDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeByteDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongByteDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteDoubleTuple createTupleFromValues(@NotNull final Object... @Override public final LongByteDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteDoubleTupl @Override public final Object exportElement(@NotNull final LongByteDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteDoubleTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongByteDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteDoubleTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteDoubleColumnTupleSource( + return new InstantByteDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteFloatColumnTupleSource.java index 3e3e8709f4c..f905ada5051 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteFloatColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteFloatColumnTupleSource extends AbstractTupleSource { +public class InstantByteFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeByteFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongByteFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteFloatTuple createTupleFromValues(@NotNull final Object... v @Override public final LongByteFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteFloatTuple @Override public final Object exportElement(@NotNull final LongByteFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteFloatTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongByteFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteFloatTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteFloatColumnTupleSource( + return new InstantByteFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteInstantColumnTupleSource.java index 91b7fb53350..c8e8ed24a0d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DateTimeByteDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,18 +64,18 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,13 +114,13 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -128,28 +128,28 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteDateTimeColumnTupleSource( + return new InstantByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteIntegerColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteIntegerColumnTupleSource.java index 4233110d430..12d2b124e02 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteIntegerColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantByteIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeByteIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteIntTuple createPreviousTuple(final long rowKey) { @Override public final LongByteIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteIntTuple createTupleFromValues(@NotNull final Object... val @Override public final LongByteIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteIntTuple t @Override public final Object exportElement(@NotNull final LongByteIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteIntTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongByteIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteIntTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteIntegerColumnTupleSource( + return new InstantByteIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteLongColumnTupleSource.java index 293784c8ce0..73ea4def137 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteLongColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteLongColumnTupleSource extends AbstractTupleSource { +public class InstantByteLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeByteLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteLongTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteLongColumnTupleSource( + return new InstantByteLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteObjectColumnTupleSource.java index afab5a1e1c7..5ecdc254799 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteObjectColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteObjectColumnTupleSource extends AbstractTupleSource { +public class InstantByteObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeByteObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongByteObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongByteObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), values[2] ); @@ -73,7 +73,7 @@ public final LongByteObjectTuple createTupleFromValues(@NotNull final Object... @Override public final LongByteObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), values[2] ); @@ -83,7 +83,7 @@ public final LongByteObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongByteObjectTupl @Override public final Object exportElement(@NotNull final LongByteObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongByteObjectTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongByteObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteObjectTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteObjectColumnTupleSource( + return new InstantByteObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteReinterpretedBooleanColumnTupleSource.java index fba684a3530..5c2d063dc3b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteReinterpretedBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantByteReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeByteReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteReinterpretedBooleanColumnTupleSource( + return new InstantByteReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteReinterpretedInstantColumnTupleSource.java index a03b53a2c8c..b5562ad8816 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeByteReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,16 +65,16 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteReinterpretedDateTimeColumnTupleSource( + return new InstantByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteShortColumnTupleSource.java index 6ed8565e740..b9183e098c0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeByteShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantByteShortColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeByteShortColumnTupleSource extends AbstractTupleSource { +public class InstantByteShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeByteShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantByteShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeByteShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantByteShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteShortTuple createPreviousTuple(final long rowKey) { @Override public final LongByteShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteShortTuple createTupleFromValues(@NotNull final Object... v @Override public final LongByteShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteShortTuple @Override public final Object exportElement(@NotNull final LongByteShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteShortTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongByteShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteShortTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeByteShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantByteShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeByteShortColumnTupleSource( + return new InstantByteShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterBooleanColumnTupleSource.java index 51e2df8fd9f..cc6a7815bd1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeCharacterBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongCharByteTuple createPreviousTuple(final long rowKey) { @Override public final LongCharByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongCharByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongCharByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharByteTuple @Override public final Object exportElement(@NotNull final LongCharByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongCharByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongCharByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterBooleanColumnTupleSource( + return new InstantCharacterBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterByteColumnTupleSource.java index df98f3f013e..2a6874acb23 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterByteColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterByteColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeCharacterByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongCharByteTuple createPreviousTuple(final long rowKey) { @Override public final LongCharByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -74,7 +74,7 @@ public final LongCharByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongCharByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharByteTuple @Override public final Object exportElement(@NotNull final LongCharByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongCharByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongCharByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterByteColumnTupleSource( + return new InstantCharacterByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterCharacterColumnTupleSource.java index 88d7c21a3fe..b34ad0409b9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterCharacterColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeCharacterCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongCharCharTuple createPreviousTuple(final long rowKey) { @Override public final LongCharCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -73,7 +73,7 @@ public final LongCharCharTuple createTupleFromValues(@NotNull final Object... va @Override public final LongCharCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -83,7 +83,7 @@ public final LongCharCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongCharCharTuple @Override public final Object exportElement(@NotNull final LongCharCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongCharCharTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongCharCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharCharTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterCharacterColumnTupleSource( + return new InstantCharacterCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterColumnTupleSource.java similarity index 80% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterColumnTupleSource.java index 484686b5646..e5560c0fa41 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DateTimeCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); @@ -59,7 +59,7 @@ public final LongCharTuple createPreviousTuple(final long rowKey) { @Override public final LongCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]) ); } @@ -67,7 +67,7 @@ public final LongCharTuple createTupleFromValues(@NotNull final Object... values @Override public final LongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]) ); } @@ -76,7 +76,7 @@ public final LongCharTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongCharTuple tupl @Override public final Object exportElement(@NotNull final LongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -100,7 +100,7 @@ public final Object exportElement(@NotNull final LongCharTuple tuple, int elemen @Override public final Object exportElementReinterpreted(@NotNull final LongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -110,7 +110,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongCharTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii))); @@ -118,18 +118,18 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantCharacterColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DateTimeCharacterColumnTupleSource( + return new InstantCharacterColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterDoubleColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterDoubleColumnTupleSource.java index dc1f2ea5e35..7ef7d83bfe5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterDoubleColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeCharacterDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongCharDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongCharDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -74,7 +74,7 @@ public final LongCharDoubleTuple createTupleFromValues(@NotNull final Object... @Override public final LongCharDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongCharDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharDoubleTupl @Override public final Object exportElement(@NotNull final LongCharDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongCharDoubleTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongCharDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharDoubleTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterDoubleColumnTupleSource( + return new InstantCharacterDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterFloatColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterFloatColumnTupleSource.java index 673cb4a38cd..aab93a3c5ad 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterFloatColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterFloatColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeCharacterFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongCharFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongCharFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -74,7 +74,7 @@ public final LongCharFloatTuple createTupleFromValues(@NotNull final Object... v @Override public final LongCharFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongCharFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharFloatTuple @Override public final Object exportElement(@NotNull final LongCharFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongCharFloatTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongCharFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharFloatTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterFloatColumnTupleSource( + return new InstantCharacterFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterInstantColumnTupleSource.java index b22895bd888..76e50fb9aaf 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DateTimeCharacterDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,18 +64,18 @@ public final LongCharLongTuple createPreviousTuple(final long rowKey) { @Override public final LongCharLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongCharLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongCharLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongCharLongTuple @Override public final Object exportElement(@NotNull final LongCharLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,13 +114,13 @@ public final Object exportElement(@NotNull final LongCharLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongCharLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -128,28 +128,28 @@ public final Object exportElementReinterpreted(@NotNull final LongCharLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongCharLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterDateTimeColumnTupleSource( + return new InstantCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterIntegerColumnTupleSource.java index d973248772e..4f279cad03b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterIntegerColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeCharacterIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongCharIntTuple createPreviousTuple(final long rowKey) { @Override public final LongCharIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -74,7 +74,7 @@ public final LongCharIntTuple createTupleFromValues(@NotNull final Object... val @Override public final LongCharIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharIntTuple t @Override public final Object exportElement(@NotNull final LongCharIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongCharIntTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongCharIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharIntTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterIntegerColumnTupleSource( + return new InstantCharacterIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterLongColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterLongColumnTupleSource.java index 0bbaaffa808..1cedcbe6657 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterLongColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterLongColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeCharacterLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongCharLongTuple createPreviousTuple(final long rowKey) { @Override public final LongCharLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -74,7 +74,7 @@ public final LongCharLongTuple createTupleFromValues(@NotNull final Object... va @Override public final LongCharLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharLongTuple @Override public final Object exportElement(@NotNull final LongCharLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongCharLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongCharLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterLongColumnTupleSource( + return new InstantCharacterLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterObjectColumnTupleSource.java index c1323555c60..271a2060281 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterObjectColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterObjectColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeCharacterObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongCharObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongCharObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), values[2] ); @@ -73,7 +73,7 @@ public final LongCharObjectTuple createTupleFromValues(@NotNull final Object... @Override public final LongCharObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), values[2] ); @@ -83,7 +83,7 @@ public final LongCharObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongCharObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongCharObjectTupl @Override public final Object exportElement(@NotNull final LongCharObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongCharObjectTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongCharObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharObjectTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterObjectColumnTupleSource( + return new InstantCharacterObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterReinterpretedBooleanColumnTupleSource.java index 7f2973d7ce9..245b55d63d3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterReinterpretedBooleanColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeCharacterReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongCharByteTuple createPreviousTuple(final long rowKey) { @Override public final LongCharByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -75,7 +75,7 @@ public final LongCharByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongCharByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -85,7 +85,7 @@ public final LongCharByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongCharByteTuple @Override public final Object exportElement(@NotNull final LongCharByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongCharByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongCharByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterReinterpretedBooleanColumnTupleSource( + return new InstantCharacterReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterReinterpretedInstantColumnTupleSource.java index 73e0b2cc8c4..63826135b68 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeCharacterReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,16 +65,16 @@ public final LongCharLongTuple createPreviousTuple(final long rowKey) { @Override public final LongCharLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongCharLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongCharLongTuple @Override public final Object exportElement(@NotNull final LongCharLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongCharLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongCharLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterReinterpretedDateTimeColumnTupleSource( + return new InstantCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterShortColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterShortColumnTupleSource.java index 842f12a2283..fd79ce04f0d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeCharacterShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantCharacterShortColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Character, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Character, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeCharacterShortColumnTupleSource extends AbstractTupleSource { +public class InstantCharacterShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeCharacterShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantCharacterShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeCharacterShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantCharacterShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongCharShortTuple createPreviousTuple(final long rowKey) { @Override public final LongCharShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -74,7 +74,7 @@ public final LongCharShortTuple createTupleFromValues(@NotNull final Object... v @Override public final LongCharShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongCharShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongCharShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharShortTuple @Override public final Object exportElement(@NotNull final LongCharShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongCharShortTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongCharShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharShortTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeCharacterShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantCharacterShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeCharacterShortColumnTupleSource( + return new InstantCharacterShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleBooleanColumnTupleSource.java index 0a56c8ecd11..68b5598fe1a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDoubleBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongDoubleByteTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongDoubleByteTuple createTupleFromValues(@NotNull final Object... @Override public final LongDoubleByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleByteTupl @Override public final Object exportElement(@NotNull final LongDoubleByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongDoubleByteTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleByteTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleBooleanColumnTupleSource( + return new InstantDoubleBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleByteColumnTupleSource.java index df2222d7194..7bf6cdc3c37 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleByteColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleByteColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDoubleByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongDoubleByteTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -74,7 +74,7 @@ public final LongDoubleByteTuple createTupleFromValues(@NotNull final Object... @Override public final LongDoubleByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleByteTupl @Override public final Object exportElement(@NotNull final LongDoubleByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongDoubleByteTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleByteTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleByteColumnTupleSource( + return new InstantDoubleByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleCharacterColumnTupleSource.java index e7c9e38112f..8a762181ed5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleCharacterColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDoubleCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongDoubleCharTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -74,7 +74,7 @@ public final LongDoubleCharTuple createTupleFromValues(@NotNull final Object... @Override public final LongDoubleCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleCharTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleCharTupl @Override public final Object exportElement(@NotNull final LongDoubleCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongDoubleCharTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleCharTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleCharacterColumnTupleSource( + return new InstantDoubleCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleColumnTupleSource.java index 3ece952c5fd..2eee80228ba 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DateTimeDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); @@ -59,7 +59,7 @@ public final LongDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]) ); } @@ -67,7 +67,7 @@ public final LongDoubleTuple createTupleFromValues(@NotNull final Object... valu @Override public final LongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]) ); } @@ -76,7 +76,7 @@ public final LongDoubleTuple createTupleFromReinterpretedValues(@NotNull final O @Override public final void exportElement(@NotNull final LongDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongDoubleTuple tu @Override public final Object exportElement(@NotNull final LongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -100,7 +100,7 @@ public final Object exportElement(@NotNull final LongDoubleTuple tuple, int elem @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -110,7 +110,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleTuple tu protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongDoubleTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii))); @@ -118,18 +118,18 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantDoubleColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DateTimeDoubleColumnTupleSource( + return new InstantDoubleColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleDoubleColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleDoubleColumnTupleSource.java index c0ff2ec9e9d..0ae31cffa45 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleDoubleColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDoubleDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongDoubleDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -73,7 +73,7 @@ public final LongDoubleDoubleTuple createTupleFromValues(@NotNull final Object.. @Override public final LongDoubleDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -83,7 +83,7 @@ public final LongDoubleDoubleTuple createTupleFromReinterpretedValues(@NotNull f @Override public final void exportElement(@NotNull final LongDoubleDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongDoubleDoubleTu @Override public final Object exportElement(@NotNull final LongDoubleDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongDoubleDoubleTuple tuple, in @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleDoubleTu @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleDoubleColumnTupleSource( + return new InstantDoubleDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleFloatColumnTupleSource.java index 14fbcf3a2e3..52dfd5d60b1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleFloatColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleFloatColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDoubleFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongDoubleFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -74,7 +74,7 @@ public final LongDoubleFloatTuple createTupleFromValues(@NotNull final Object... @Override public final LongDoubleFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleFloatTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongDoubleFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleFloatTup @Override public final Object exportElement(@NotNull final LongDoubleFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongDoubleFloatTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleFloatTup @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleFloatColumnTupleSource( + return new InstantDoubleFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleInstantColumnTupleSource.java index da9a5d4f27a..6d50affbd37 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DateTimeDoubleDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,18 +64,18 @@ public final LongDoubleLongTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongDoubleLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongDoubleLongTupl @Override public final Object exportElement(@NotNull final LongDoubleLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,13 +114,13 @@ public final Object exportElement(@NotNull final LongDoubleLongTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -128,28 +128,28 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleLongTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongDoubleLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleDateTimeColumnTupleSource( + return new InstantDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleIntegerColumnTupleSource.java index 85c02eaf5b7..64fb4bae80f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleIntegerColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDoubleIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongDoubleIntTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -74,7 +74,7 @@ public final LongDoubleIntTuple createTupleFromValues(@NotNull final Object... v @Override public final LongDoubleIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleIntTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongDoubleIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleIntTuple @Override public final Object exportElement(@NotNull final LongDoubleIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongDoubleIntTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleIntTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleIntegerColumnTupleSource( + return new InstantDoubleIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleLongColumnTupleSource.java index ab4eba26abc..fe2b51969f4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleLongColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleLongColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDoubleLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongDoubleLongTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -74,7 +74,7 @@ public final LongDoubleLongTuple createTupleFromValues(@NotNull final Object... @Override public final LongDoubleLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleLongTupl @Override public final Object exportElement(@NotNull final LongDoubleLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongDoubleLongTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleLongTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleLongColumnTupleSource( + return new InstantDoubleLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleObjectColumnTupleSource.java index 300892270ca..d881d80cc76 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleObjectColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleObjectColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDoubleObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongDoubleObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), values[2] ); @@ -73,7 +73,7 @@ public final LongDoubleObjectTuple createTupleFromValues(@NotNull final Object.. @Override public final LongDoubleObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), values[2] ); @@ -83,7 +83,7 @@ public final LongDoubleObjectTuple createTupleFromReinterpretedValues(@NotNull f @Override public final void exportElement(@NotNull final LongDoubleObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongDoubleObjectTu @Override public final Object exportElement(@NotNull final LongDoubleObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongDoubleObjectTuple tuple, in @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleObjectTu @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleObjectColumnTupleSource( + return new InstantDoubleObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleReinterpretedBooleanColumnTupleSource.java index cbe076ddd53..d8c478688eb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleReinterpretedBooleanColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDoubleReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongDoubleByteTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -75,7 +75,7 @@ public final LongDoubleByteTuple createTupleFromValues(@NotNull final Object... @Override public final LongDoubleByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -85,7 +85,7 @@ public final LongDoubleByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongDoubleByteTupl @Override public final Object exportElement(@NotNull final LongDoubleByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongDoubleByteTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleByteTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleReinterpretedBooleanColumnTupleSource( + return new InstantDoubleReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleReinterpretedInstantColumnTupleSource.java index e10a237b1b4..6bffeb19a90 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDoubleReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,16 +65,16 @@ public final LongDoubleLongTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongDoubleLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongDoubleLongTupl @Override public final Object exportElement(@NotNull final LongDoubleLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongDoubleLongTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleLongTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleReinterpretedDateTimeColumnTupleSource( + return new InstantDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleShortColumnTupleSource.java index 64503ac7334..72860e2a0f3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDoubleShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantDoubleShortColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Double, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Double, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDoubleShortColumnTupleSource extends AbstractTupleSource { +public class InstantDoubleShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDoubleShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantDoubleShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDoubleShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantDoubleShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongDoubleShortTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -74,7 +74,7 @@ public final LongDoubleShortTuple createTupleFromValues(@NotNull final Object... @Override public final LongDoubleShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongDoubleShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleShortTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongDoubleShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleShortTup @Override public final Object exportElement(@NotNull final LongDoubleShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongDoubleShortTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongDoubleShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleShortTup @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDoubleShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantDoubleShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDoubleShortColumnTupleSource( + return new InstantDoubleShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatBooleanColumnTupleSource.java index b30556391f3..e1a52aabcf6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantFloatBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeFloatBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongFloatByteTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongFloatByteTuple createTupleFromValues(@NotNull final Object... v @Override public final LongFloatByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatByteTuple @Override public final Object exportElement(@NotNull final LongFloatByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongFloatByteTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongFloatByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatBooleanColumnTupleSource( + return new InstantFloatBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatByteColumnTupleSource.java index b7d12a73110..9737b898e55 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatByteColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatByteColumnTupleSource extends AbstractTupleSource { +public class InstantFloatByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeFloatByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongFloatByteTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -74,7 +74,7 @@ public final LongFloatByteTuple createTupleFromValues(@NotNull final Object... v @Override public final LongFloatByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatByteTuple @Override public final Object exportElement(@NotNull final LongFloatByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongFloatByteTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongFloatByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatByteColumnTupleSource( + return new InstantFloatByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatCharacterColumnTupleSource.java index 788e1ffdb57..b55480998c6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatCharacterColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantFloatCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeFloatCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongFloatCharTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -74,7 +74,7 @@ public final LongFloatCharTuple createTupleFromValues(@NotNull final Object... v @Override public final LongFloatCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatCharTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatCharTuple @Override public final Object exportElement(@NotNull final LongFloatCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongFloatCharTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongFloatCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatCharTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatCharacterColumnTupleSource( + return new InstantFloatCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatColumnTupleSource.java index 73149f98103..90f7b55c049 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class InstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantFloatColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DateTimeFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); @@ -59,7 +59,7 @@ public final LongFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]) ); } @@ -67,7 +67,7 @@ public final LongFloatTuple createTupleFromValues(@NotNull final Object... value @Override public final LongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]) ); } @@ -76,7 +76,7 @@ public final LongFloatTuple createTupleFromReinterpretedValues(@NotNull final Ob @Override public final void exportElement(@NotNull final LongFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongFloatTuple tup @Override public final Object exportElement(@NotNull final LongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -100,7 +100,7 @@ public final Object exportElement(@NotNull final LongFloatTuple tuple, int eleme @Override public final Object exportElementReinterpreted(@NotNull final LongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -110,7 +110,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatTuple tup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongFloatTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii))); @@ -118,18 +118,18 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantFloatColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DateTimeFloatColumnTupleSource( + return new InstantFloatColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatDoubleColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatDoubleColumnTupleSource.java index 247acb3c9d8..c9c390156af 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatDoubleColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantFloatDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeFloatDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongFloatDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -74,7 +74,7 @@ public final LongFloatDoubleTuple createTupleFromValues(@NotNull final Object... @Override public final LongFloatDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatDoubleTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongFloatDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatDoubleTup @Override public final Object exportElement(@NotNull final LongFloatDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongFloatDoubleTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongFloatDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatDoubleTup @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatDoubleColumnTupleSource( + return new InstantFloatDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatFloatColumnTupleSource.java index 8171a9fb16d..d3aafc7f252 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatFloatColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatFloatColumnTupleSource extends AbstractTupleSource { +public class InstantFloatFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeFloatFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongFloatFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -73,7 +73,7 @@ public final LongFloatFloatTuple createTupleFromValues(@NotNull final Object... @Override public final LongFloatFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -83,7 +83,7 @@ public final LongFloatFloatTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongFloatFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongFloatFloatTupl @Override public final Object exportElement(@NotNull final LongFloatFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongFloatFloatTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongFloatFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatFloatTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatFloatColumnTupleSource( + return new InstantFloatFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatInstantColumnTupleSource.java index 797310ecec6..9a9c9f98c58 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DateTimeFloatDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,18 +64,18 @@ public final LongFloatLongTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongFloatLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongFloatLongTuple @Override public final Object exportElement(@NotNull final LongFloatLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,13 +114,13 @@ public final Object exportElement(@NotNull final LongFloatLongTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongFloatLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -128,28 +128,28 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongFloatLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatDateTimeColumnTupleSource( + return new InstantFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatIntegerColumnTupleSource.java index c3359e728a5..69380d966d9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatIntegerColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantFloatIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeFloatIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongFloatIntTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -74,7 +74,7 @@ public final LongFloatIntTuple createTupleFromValues(@NotNull final Object... va @Override public final LongFloatIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongFloatIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatIntTuple @Override public final Object exportElement(@NotNull final LongFloatIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongFloatIntTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongFloatIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatIntTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatIntegerColumnTupleSource( + return new InstantFloatIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatLongColumnTupleSource.java index 10e7f37a1d2..0cda5ec0851 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatLongColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatLongColumnTupleSource extends AbstractTupleSource { +public class InstantFloatLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeFloatLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongFloatLongTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -74,7 +74,7 @@ public final LongFloatLongTuple createTupleFromValues(@NotNull final Object... v @Override public final LongFloatLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatLongTuple @Override public final Object exportElement(@NotNull final LongFloatLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongFloatLongTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongFloatLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatLongColumnTupleSource( + return new InstantFloatLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatObjectColumnTupleSource.java index 4c3a7391d68..709bd5faacf 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatObjectColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatObjectColumnTupleSource extends AbstractTupleSource { +public class InstantFloatObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeFloatObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongFloatObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), values[2] ); @@ -73,7 +73,7 @@ public final LongFloatObjectTuple createTupleFromValues(@NotNull final Object... @Override public final LongFloatObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), values[2] ); @@ -83,7 +83,7 @@ public final LongFloatObjectTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongFloatObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongFloatObjectTup @Override public final Object exportElement(@NotNull final LongFloatObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongFloatObjectTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongFloatObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatObjectTup @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatObjectColumnTupleSource( + return new InstantFloatObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatReinterpretedBooleanColumnTupleSource.java index 85a3926f055..ba59f0ef624 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatReinterpretedBooleanColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantFloatReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeFloatReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongFloatByteTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -75,7 +75,7 @@ public final LongFloatByteTuple createTupleFromValues(@NotNull final Object... v @Override public final LongFloatByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -85,7 +85,7 @@ public final LongFloatByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongFloatByteTuple @Override public final Object exportElement(@NotNull final LongFloatByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongFloatByteTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongFloatByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatReinterpretedBooleanColumnTupleSource( + return new InstantFloatReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatReinterpretedInstantColumnTupleSource.java index 2ef78a7b91b..1451ce91726 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeFloatReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,16 +65,16 @@ public final LongFloatLongTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongFloatLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongFloatLongTuple @Override public final Object exportElement(@NotNull final LongFloatLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongFloatLongTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongFloatLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatReinterpretedDateTimeColumnTupleSource( + return new InstantFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatShortColumnTupleSource.java index 4a921f818c6..27311c0f91c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeFloatShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantFloatShortColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Float, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Float, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeFloatShortColumnTupleSource extends AbstractTupleSource { +public class InstantFloatShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeFloatShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantFloatShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeFloatShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantFloatShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongFloatShortTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -74,7 +74,7 @@ public final LongFloatShortTuple createTupleFromValues(@NotNull final Object... @Override public final LongFloatShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongFloatShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatShortTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongFloatShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatShortTupl @Override public final Object exportElement(@NotNull final LongFloatShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongFloatShortTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongFloatShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatShortTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeFloatShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantFloatShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeFloatShortColumnTupleSource( + return new InstantFloatShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantBooleanColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantBooleanColumnTupleSource.java index b01ded07bdb..74d70a8d55d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantBooleanColumnTupleSource.java @@ -10,30 +10,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDateTimeBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + public InstantInstantBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -63,8 +63,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -72,8 +72,8 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -82,11 +82,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -99,10 +99,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -113,10 +113,10 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -127,8 +127,8 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongByteTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -136,19 +136,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeBooleanColumnTupleSource( + return new InstantInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantByteColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantByteColumnTupleSource.java index a47f98c753e..6d536082496 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantByteColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class InstantInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDateTimeByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + public InstantInstantByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,8 +64,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -73,8 +73,8 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -114,10 +114,10 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -128,8 +128,8 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongByteTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeByteColumnTupleSource( + return new InstantInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantCharacterColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantCharacterColumnTupleSource.java index c1cf2332aad..c73fa1da88d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantCharacterColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDateTimeCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + public InstantInstantCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,8 +64,8 @@ public final LongLongCharTuple createPreviousTuple(final long rowKey) { @Override public final LongLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -73,8 +73,8 @@ public final LongLongCharTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongCharTuple @Override public final Object exportElement(@NotNull final LongLongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -114,10 +114,10 @@ public final Object exportElement(@NotNull final LongLongCharTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -128,8 +128,8 @@ public final Object exportElementReinterpreted(@NotNull final LongLongCharTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongCharTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeCharacterColumnTupleSource( + return new InstantInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantColumnTupleSource.java similarity index 70% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantColumnTupleSource.java index d5414300ed2..76cfc1cd8b3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantColumnTupleSource.java @@ -10,28 +10,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongTuple; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; - public DateTimeDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + public InstantInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -57,16 +57,16 @@ public final LongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]) ); } @Override public final LongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -74,11 +74,11 @@ public final LongLongTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -87,10 +87,10 @@ public final void exportElement(@NotNull final LongLongTuple tupl @Override public final Object exportElement(@NotNull final LongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -98,36 +98,36 @@ public final Object exportElement(@NotNull final LongLongTuple tuple, int elemen @Override public final Object exportElementReinterpreted(@NotNull final LongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2 ) { - return new DateTimeDateTimeColumnTupleSource( + return new InstantInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantDoubleColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantDoubleColumnTupleSource.java index f41c1515e57..36c0868cf39 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantDoubleColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDateTimeDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + public InstantInstantDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,8 +64,8 @@ public final LongLongDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -73,8 +73,8 @@ public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... @Override public final LongLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongDoubleTupl @Override public final Object exportElement(@NotNull final LongLongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -114,10 +114,10 @@ public final Object exportElement(@NotNull final LongLongDoubleTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongLongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -128,8 +128,8 @@ public final Object exportElementReinterpreted(@NotNull final LongLongDoubleTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongDoubleTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeDoubleColumnTupleSource( + return new InstantInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantFloatColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantFloatColumnTupleSource.java index 792b8b35588..21dc26c8f39 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantFloatColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class InstantInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDateTimeFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + public InstantInstantFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,8 +64,8 @@ public final LongLongFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -73,8 +73,8 @@ public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... v @Override public final LongLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongFloatTuple @Override public final Object exportElement(@NotNull final LongLongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -114,10 +114,10 @@ public final Object exportElement(@NotNull final LongLongFloatTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongLongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -128,8 +128,8 @@ public final Object exportElementReinterpreted(@NotNull final LongLongFloatTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongFloatTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeFloatColumnTupleSource( + return new InstantInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantInstantColumnTupleSource.java similarity index 65% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantInstantColumnTupleSource.java index b444269d82f..89b0f131cd3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantInstantColumnTupleSource.java @@ -10,30 +10,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public DateTimeDateTimeDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + public InstantInstantInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -62,18 +62,18 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -81,15 +81,15 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -98,13 +98,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -112,13 +112,13 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -126,28 +126,28 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeDateTimeColumnTupleSource( + return new InstantInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantIntegerColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantIntegerColumnTupleSource.java index de6001a3b92..94d20343f11 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantIntegerColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDateTimeIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + public InstantInstantIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,8 +64,8 @@ public final LongLongIntTuple createPreviousTuple(final long rowKey) { @Override public final LongLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -73,8 +73,8 @@ public final LongLongIntTuple createTupleFromValues(@NotNull final Object... val @Override public final LongLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongIntTuple t @Override public final Object exportElement(@NotNull final LongLongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -114,10 +114,10 @@ public final Object exportElement(@NotNull final LongLongIntTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongLongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -128,8 +128,8 @@ public final Object exportElementReinterpreted(@NotNull final LongLongIntTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongIntTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeIntegerColumnTupleSource( + return new InstantInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantLongColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantLongColumnTupleSource.java index cf113315e94..89da0458757 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantLongColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class InstantInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDateTimeLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + public InstantInstantLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,8 +64,8 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -73,8 +73,8 @@ public final LongLongLongTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -114,10 +114,10 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -128,8 +128,8 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeLongColumnTupleSource( + return new InstantInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantObjectColumnTupleSource.java similarity index 73% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantObjectColumnTupleSource.java index 979b1913eae..fcbc78dcfb6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantObjectColumnTupleSource.java @@ -10,29 +10,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongObjectTuple; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class InstantInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDateTimeObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + public InstantInstantObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -62,8 +62,8 @@ public final LongLongObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -71,8 +71,8 @@ public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... @Override public final LongLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -81,11 +81,11 @@ public final LongLongObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -98,10 +98,10 @@ public final void exportElement(@NotNull final LongLongObjectTupl @Override public final Object exportElement(@NotNull final LongLongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -112,10 +112,10 @@ public final Object exportElement(@NotNull final LongLongObjectTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongLongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -126,8 +126,8 @@ public final Object exportElementReinterpreted(@NotNull final LongLongObjectTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongObjectTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -135,19 +135,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeObjectColumnTupleSource( + return new InstantInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantReinterpretedBooleanColumnTupleSource.java similarity index 73% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantReinterpretedBooleanColumnTupleSource.java index f9824925822..5b94d929f4f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantReinterpretedBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDateTimeReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + public InstantInstantReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,8 +65,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -74,8 +74,8 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -84,11 +84,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -115,10 +115,10 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,8 +129,8 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongByteTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeReinterpretedBooleanColumnTupleSource( + return new InstantInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantReinterpretedInstantColumnTupleSource.java similarity index 70% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantReinterpretedInstantColumnTupleSource.java index f7ae4521534..ed049df959b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantReinterpretedInstantColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDateTimeReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + public InstantInstantReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,17 +64,17 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -83,15 +83,15 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,10 +114,10 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -128,8 +128,8 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeReinterpretedDateTimeColumnTupleSource( + return new InstantInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantShortColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantShortColumnTupleSource.java index 7aa2d8264bf..2bb5677119d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantInstantShortColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class InstantInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource1; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeDateTimeShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + public InstantInstantShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,8 +64,8 @@ public final LongLongShortTuple createPreviousTuple(final long rowKey) { @Override public final LongLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -73,8 +73,8 @@ public final LongLongShortTuple createTupleFromValues(@NotNull final Object... v @Override public final LongLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongShortTuple @Override public final Object exportElement(@NotNull final LongLongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -114,10 +114,10 @@ public final Object exportElement(@NotNull final LongLongShortTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongLongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -128,8 +128,8 @@ public final Object exportElementReinterpreted(@NotNull final LongLongShortTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongShortTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeDateTimeShortColumnTupleSource( + return new InstantInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerBooleanColumnTupleSource.java index 03d8031f737..9df75ab2e87 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeIntegerBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongIntByteTuple createPreviousTuple(final long rowKey) { @Override public final LongIntByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongIntByteTuple createTupleFromValues(@NotNull final Object... val @Override public final LongIntByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntByteTuple t @Override public final Object exportElement(@NotNull final LongIntByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongIntByteTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongIntByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntByteTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerBooleanColumnTupleSource( + return new InstantIntegerBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerByteColumnTupleSource.java index 35fbe28a00d..e184f18333c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerByteColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerByteColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeIntegerByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongIntByteTuple createPreviousTuple(final long rowKey) { @Override public final LongIntByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -74,7 +74,7 @@ public final LongIntByteTuple createTupleFromValues(@NotNull final Object... val @Override public final LongIntByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntByteTuple t @Override public final Object exportElement(@NotNull final LongIntByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongIntByteTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongIntByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntByteTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerByteColumnTupleSource( + return new InstantIntegerByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerCharacterColumnTupleSource.java index 84daebb5fe3..992422e28f0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerCharacterColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeIntegerCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongIntCharTuple createPreviousTuple(final long rowKey) { @Override public final LongIntCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -74,7 +74,7 @@ public final LongIntCharTuple createTupleFromValues(@NotNull final Object... val @Override public final LongIntCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntCharTuple t @Override public final Object exportElement(@NotNull final LongIntCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongIntCharTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongIntCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntCharTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerCharacterColumnTupleSource( + return new InstantIntegerCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerColumnTupleSource.java similarity index 80% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerColumnTupleSource.java index 63e06fe5d5f..1c6639712ae 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DateTimeIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); @@ -59,7 +59,7 @@ public final LongIntTuple createPreviousTuple(final long rowKey) { @Override public final LongIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]) ); } @@ -67,7 +67,7 @@ public final LongIntTuple createTupleFromValues(@NotNull final Object... values) @Override public final LongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]) ); } @@ -76,7 +76,7 @@ public final LongIntTuple createTupleFromReinterpretedValues(@NotNull final Obje @Override public final void exportElement(@NotNull final LongIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongIntTuple tuple @Override public final Object exportElement(@NotNull final LongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -100,7 +100,7 @@ public final Object exportElement(@NotNull final LongIntTuple tuple, int element @Override public final Object exportElementReinterpreted(@NotNull final LongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -110,7 +110,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntTuple tuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongIntTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii))); @@ -118,18 +118,18 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantIntegerColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DateTimeIntegerColumnTupleSource( + return new InstantIntegerColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerDoubleColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerDoubleColumnTupleSource.java index feb7d6489a9..05d01bcddcb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerDoubleColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeIntegerDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongIntDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongIntDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -74,7 +74,7 @@ public final LongIntDoubleTuple createTupleFromValues(@NotNull final Object... v @Override public final LongIntDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntDoubleTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongIntDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntDoubleTuple @Override public final Object exportElement(@NotNull final LongIntDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongIntDoubleTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongIntDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntDoubleTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerDoubleColumnTupleSource( + return new InstantIntegerDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerFloatColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerFloatColumnTupleSource.java index 2f4869784c1..ef9f8ee52e9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerFloatColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerFloatColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeIntegerFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongIntFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongIntFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -74,7 +74,7 @@ public final LongIntFloatTuple createTupleFromValues(@NotNull final Object... va @Override public final LongIntFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntFloatTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntFloatTuple @Override public final Object exportElement(@NotNull final LongIntFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongIntFloatTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongIntFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntFloatTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerFloatColumnTupleSource( + return new InstantIntegerFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerInstantColumnTupleSource.java index 2b57f56394e..2f945f74127 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DateTimeIntegerDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,18 +64,18 @@ public final LongIntLongTuple createPreviousTuple(final long rowKey) { @Override public final LongIntLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongIntLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongIntLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongIntLongTuple t @Override public final Object exportElement(@NotNull final LongIntLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,13 +114,13 @@ public final Object exportElement(@NotNull final LongIntLongTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongIntLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -128,28 +128,28 @@ public final Object exportElementReinterpreted(@NotNull final LongIntLongTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongIntLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerDateTimeColumnTupleSource( + return new InstantIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerIntegerColumnTupleSource.java index 64cf53946ff..3cc6156b3a7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerIntegerColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeIntegerIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongIntIntTuple createPreviousTuple(final long rowKey) { @Override public final LongIntIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -73,7 +73,7 @@ public final LongIntIntTuple createTupleFromValues(@NotNull final Object... valu @Override public final LongIntIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -83,7 +83,7 @@ public final LongIntIntTuple createTupleFromReinterpretedValues(@NotNull final O @Override public final void exportElement(@NotNull final LongIntIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongIntIntTuple tu @Override public final Object exportElement(@NotNull final LongIntIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongIntIntTuple tuple, int elem @Override public final Object exportElementReinterpreted(@NotNull final LongIntIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntIntTuple tu @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerIntegerColumnTupleSource( + return new InstantIntegerIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerLongColumnTupleSource.java index 4605bd39f33..32b077c9081 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerLongColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerLongColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeIntegerLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongIntLongTuple createPreviousTuple(final long rowKey) { @Override public final LongIntLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -74,7 +74,7 @@ public final LongIntLongTuple createTupleFromValues(@NotNull final Object... val @Override public final LongIntLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntLongTuple t @Override public final Object exportElement(@NotNull final LongIntLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongIntLongTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongIntLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntLongTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerLongColumnTupleSource( + return new InstantIntegerLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerObjectColumnTupleSource.java index d681904e517..8bcdaebd097 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerObjectColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerObjectColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeIntegerObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongIntObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongIntObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), values[2] ); @@ -73,7 +73,7 @@ public final LongIntObjectTuple createTupleFromValues(@NotNull final Object... v @Override public final LongIntObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), values[2] ); @@ -83,7 +83,7 @@ public final LongIntObjectTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongIntObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongIntObjectTuple @Override public final Object exportElement(@NotNull final LongIntObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongIntObjectTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongIntObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntObjectTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerObjectColumnTupleSource( + return new InstantIntegerObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerReinterpretedBooleanColumnTupleSource.java index a39efa19756..d61ce9fedb4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerReinterpretedBooleanColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeIntegerReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongIntByteTuple createPreviousTuple(final long rowKey) { @Override public final LongIntByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -75,7 +75,7 @@ public final LongIntByteTuple createTupleFromValues(@NotNull final Object... val @Override public final LongIntByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -85,7 +85,7 @@ public final LongIntByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongIntByteTuple t @Override public final Object exportElement(@NotNull final LongIntByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongIntByteTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongIntByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntByteTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerReinterpretedBooleanColumnTupleSource( + return new InstantIntegerReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerReinterpretedInstantColumnTupleSource.java index d4772ee2e7c..4d9b803fe68 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeIntegerReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,16 +65,16 @@ public final LongIntLongTuple createPreviousTuple(final long rowKey) { @Override public final LongIntLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongIntLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongIntLongTuple t @Override public final Object exportElement(@NotNull final LongIntLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongIntLongTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongIntLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntLongTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerReinterpretedDateTimeColumnTupleSource( + return new InstantIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerShortColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerShortColumnTupleSource.java index 9fb2b426c0b..7a2c749d6ba 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeIntegerShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantIntegerShortColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Integer, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Integer, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeIntegerShortColumnTupleSource extends AbstractTupleSource { +public class InstantIntegerShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeIntegerShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantIntegerShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeIntegerShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantIntegerShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongIntShortTuple createPreviousTuple(final long rowKey) { @Override public final LongIntShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -74,7 +74,7 @@ public final LongIntShortTuple createTupleFromValues(@NotNull final Object... va @Override public final LongIntShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongIntShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntShortTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntShortTuple @Override public final Object exportElement(@NotNull final LongIntShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongIntShortTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongIntShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntShortTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeIntegerShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantIntegerShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeIntegerShortColumnTupleSource( + return new InstantIntegerShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongBooleanColumnTupleSource.java index 19226eecdb4..b5f388d1c7c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantLongBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeLongBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongBooleanColumnTupleSource( + return new InstantLongBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongByteColumnTupleSource.java index fa3296e5dd0..bb24c04db84 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongByteColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongByteColumnTupleSource extends AbstractTupleSource { +public class InstantLongByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeLongByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -74,7 +74,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongByteColumnTupleSource( + return new InstantLongByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongCharacterColumnTupleSource.java index e8a01a2b2ab..8416f10f0d5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongCharacterColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantLongCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeLongCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongLongCharTuple createPreviousTuple(final long rowKey) { @Override public final LongLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -74,7 +74,7 @@ public final LongLongCharTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongLongCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongLongCharTuple @Override public final Object exportElement(@NotNull final LongLongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongCharTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongCharTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongCharacterColumnTupleSource( + return new InstantLongCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongColumnTupleSource.java index c5835a4c3c4..b8eb7b827e5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongColumnTupleSource extends AbstractTupleSource { +public class InstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantLongColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DateTimeLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); @@ -59,7 +59,7 @@ public final LongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]) ); } @@ -67,7 +67,7 @@ public final LongLongTuple createTupleFromValues(@NotNull final Object... values @Override public final LongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]) ); } @@ -76,7 +76,7 @@ public final LongLongTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongLongTuple tupl @Override public final Object exportElement(@NotNull final LongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -100,7 +100,7 @@ public final Object exportElement(@NotNull final LongLongTuple tuple, int elemen @Override public final Object exportElementReinterpreted(@NotNull final LongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -110,7 +110,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii))); @@ -118,18 +118,18 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeLongColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantLongColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DateTimeLongColumnTupleSource( + return new InstantLongColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongDoubleColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongDoubleColumnTupleSource.java index 0cb906230f8..9199eb2159f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongDoubleColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantLongDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeLongDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongLongDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -74,7 +74,7 @@ public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... @Override public final LongLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongLongDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongLongDoubleTupl @Override public final Object exportElement(@NotNull final LongLongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongDoubleTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongLongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongDoubleTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongDoubleColumnTupleSource( + return new InstantLongDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongFloatColumnTupleSource.java index e1004d76719..08bdf4ce32a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongFloatColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongFloatColumnTupleSource extends AbstractTupleSource { +public class InstantLongFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeLongFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongLongFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -74,7 +74,7 @@ public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... v @Override public final LongLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongLongFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongLongFloatTuple @Override public final Object exportElement(@NotNull final LongLongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongFloatTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongLongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongFloatTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongFloatColumnTupleSource( + return new InstantLongFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongInstantColumnTupleSource.java index ab764839787..83a8920b30a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DateTimeLongDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,18 +64,18 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,13 +114,13 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -128,28 +128,28 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongDateTimeColumnTupleSource( + return new InstantLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongIntegerColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongIntegerColumnTupleSource.java index f13c280b9e9..c9b88ed0064 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongIntegerColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantLongIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeLongIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongLongIntTuple createPreviousTuple(final long rowKey) { @Override public final LongLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -74,7 +74,7 @@ public final LongLongIntTuple createTupleFromValues(@NotNull final Object... val @Override public final LongLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongLongIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongLongIntTuple t @Override public final Object exportElement(@NotNull final LongLongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongIntTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongLongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongIntTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongIntegerColumnTupleSource( + return new InstantLongIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongLongColumnTupleSource.java index c212aeaa0be..bdd599d0975 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongLongColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongLongColumnTupleSource extends AbstractTupleSource { +public class InstantLongLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeLongLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -73,7 +73,7 @@ public final LongLongLongTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -83,7 +83,7 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongLongColumnTupleSource( + return new InstantLongLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongObjectColumnTupleSource.java index 23ccc36b713..0c8df00a60c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongObjectColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongObjectColumnTupleSource extends AbstractTupleSource { +public class InstantLongObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeLongObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongLongObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), values[2] ); @@ -73,7 +73,7 @@ public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... @Override public final LongLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), values[2] ); @@ -83,7 +83,7 @@ public final LongLongObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongLongObjectTupl @Override public final Object exportElement(@NotNull final LongLongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongLongObjectTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongLongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongObjectTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongObjectColumnTupleSource( + return new InstantLongObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongReinterpretedBooleanColumnTupleSource.java index 4b754474b12..a86ba4a6753 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongReinterpretedBooleanColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantLongReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeLongReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -75,7 +75,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -85,7 +85,7 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongReinterpretedBooleanColumnTupleSource( + return new InstantLongReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongReinterpretedInstantColumnTupleSource.java index c8c37e67336..d3d687c2524 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeLongReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,16 +64,16 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -83,7 +83,7 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongReinterpretedDateTimeColumnTupleSource( + return new InstantLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongShortColumnTupleSource.java index e1ada39c6d5..7e64a8f6ce4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeLongShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantLongShortColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeLongShortColumnTupleSource extends AbstractTupleSource { +public class InstantLongShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeLongShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantLongShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeLongShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantLongShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongLongShortTuple createPreviousTuple(final long rowKey) { @Override public final LongLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -74,7 +74,7 @@ public final LongLongShortTuple createTupleFromValues(@NotNull final Object... v @Override public final LongLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongLongShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongLongShortTuple @Override public final Object exportElement(@NotNull final LongLongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongShortTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongLongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongShortTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeLongShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantLongShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeLongShortColumnTupleSource( + return new InstantLongShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectBooleanColumnTupleSource.java index a428ac26835..0e07852447c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectBooleanColumnTupleSource.java @@ -10,29 +10,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectByteTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantObjectBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeObjectBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -63,7 +63,7 @@ public final LongObjectByteTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -72,7 +72,7 @@ public final LongObjectByteTuple createTupleFromValues(@NotNull final Object... @Override public final LongObjectByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -82,7 +82,7 @@ public final LongObjectByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -99,7 +99,7 @@ public final void exportElement(@NotNull final LongObjectByteTupl @Override public final Object exportElement(@NotNull final LongObjectByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -113,7 +113,7 @@ public final Object exportElement(@NotNull final LongObjectByteTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongObjectByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -127,7 +127,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectByteTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -136,19 +136,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectBooleanColumnTupleSource( + return new InstantObjectBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectByteColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectByteColumnTupleSource.java index cb1d2398627..73f2fb039a6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectByteColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectByteColumnTupleSource extends AbstractTupleSource { +public class InstantObjectByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeObjectByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongObjectByteTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Byte)values[2]) ); @@ -73,7 +73,7 @@ public final LongObjectByteTuple createTupleFromValues(@NotNull final Object... @Override public final LongObjectByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Byte)values[2]) ); @@ -83,7 +83,7 @@ public final LongObjectByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongObjectByteTupl @Override public final Object exportElement(@NotNull final LongObjectByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongObjectByteTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongObjectByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectByteTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectByteColumnTupleSource( + return new InstantObjectByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectCharacterColumnTupleSource.java index 2e885fac2a3..f2c13233ca8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectCharacterColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantObjectCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeObjectCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongObjectCharTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Character)values[2]) ); @@ -73,7 +73,7 @@ public final LongObjectCharTuple createTupleFromValues(@NotNull final Object... @Override public final LongObjectCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Character)values[2]) ); @@ -83,7 +83,7 @@ public final LongObjectCharTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongObjectCharTupl @Override public final Object exportElement(@NotNull final LongObjectCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongObjectCharTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongObjectCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectCharTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectCharacterColumnTupleSource( + return new InstantObjectCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectColumnTupleSource.java similarity index 80% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectColumnTupleSource.java index 0354b30515e..a7f4d042568 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectColumnTupleSource.java @@ -10,27 +10,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectTuple; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class InstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantObjectColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DateTimeObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); @@ -57,7 +57,7 @@ public final LongObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1] ); } @@ -65,7 +65,7 @@ public final LongObjectTuple createTupleFromValues(@NotNull final Object... valu @Override public final LongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1] ); } @@ -74,7 +74,7 @@ public final LongObjectTuple createTupleFromReinterpretedValues(@NotNull final O @Override public final void exportElement(@NotNull final LongObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final LongObjectTuple tu @Override public final Object exportElement(@NotNull final LongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -98,7 +98,7 @@ public final Object exportElement(@NotNull final LongObjectTuple tuple, int elem @Override public final Object exportElementReinterpreted(@NotNull final LongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -108,7 +108,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectTuple tu protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongObjectTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii))); @@ -116,18 +116,18 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantObjectColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DateTimeObjectColumnTupleSource( + return new InstantObjectColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectDoubleColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectDoubleColumnTupleSource.java index 544a53c43d3..324690df2a5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectDoubleColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantObjectDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeObjectDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongObjectDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Double)values[2]) ); @@ -73,7 +73,7 @@ public final LongObjectDoubleTuple createTupleFromValues(@NotNull final Object.. @Override public final LongObjectDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Double)values[2]) ); @@ -83,7 +83,7 @@ public final LongObjectDoubleTuple createTupleFromReinterpretedValues(@NotNull f @Override public final void exportElement(@NotNull final LongObjectDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongObjectDoubleTu @Override public final Object exportElement(@NotNull final LongObjectDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongObjectDoubleTuple tuple, in @Override public final Object exportElementReinterpreted(@NotNull final LongObjectDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectDoubleTu @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectDoubleColumnTupleSource( + return new InstantObjectDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectFloatColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectFloatColumnTupleSource.java index a5a91ac7114..d08dc0e3f5d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectFloatColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectFloatColumnTupleSource extends AbstractTupleSource { +public class InstantObjectFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeObjectFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongObjectFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Float)values[2]) ); @@ -73,7 +73,7 @@ public final LongObjectFloatTuple createTupleFromValues(@NotNull final Object... @Override public final LongObjectFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Float)values[2]) ); @@ -83,7 +83,7 @@ public final LongObjectFloatTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongObjectFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongObjectFloatTup @Override public final Object exportElement(@NotNull final LongObjectFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongObjectFloatTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongObjectFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectFloatTup @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectFloatColumnTupleSource( + return new InstantObjectFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectInstantColumnTupleSource.java similarity index 73% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectInstantColumnTupleSource.java index 4c012baf5c5..a896d100a10 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectInstantColumnTupleSource.java @@ -10,30 +10,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectLongTuple; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DateTimeObjectDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -62,18 +62,18 @@ public final LongObjectLongTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongObjectLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -81,7 +81,7 @@ public final LongObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -98,13 +98,13 @@ public final void exportElement(@NotNull final LongObjectLongTupl @Override public final Object exportElement(@NotNull final LongObjectLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -112,13 +112,13 @@ public final Object exportElement(@NotNull final LongObjectLongTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongObjectLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -126,28 +126,28 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectLongTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongObjectLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectDateTimeColumnTupleSource( + return new InstantObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectIntegerColumnTupleSource.java index 9323a3a3803..972e7611290 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectIntegerColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantObjectIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeObjectIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongObjectIntTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Integer)values[2]) ); @@ -73,7 +73,7 @@ public final LongObjectIntTuple createTupleFromValues(@NotNull final Object... v @Override public final LongObjectIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Integer)values[2]) ); @@ -83,7 +83,7 @@ public final LongObjectIntTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongObjectIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongObjectIntTuple @Override public final Object exportElement(@NotNull final LongObjectIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongObjectIntTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongObjectIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectIntTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectIntegerColumnTupleSource( + return new InstantObjectIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectLongColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectLongColumnTupleSource.java index 28548ddeba7..a000209d605 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectLongColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectLongColumnTupleSource extends AbstractTupleSource { +public class InstantObjectLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeObjectLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongObjectLongTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Long)values[2]) ); @@ -73,7 +73,7 @@ public final LongObjectLongTuple createTupleFromValues(@NotNull final Object... @Override public final LongObjectLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Long)values[2]) ); @@ -83,7 +83,7 @@ public final LongObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongObjectLongTupl @Override public final Object exportElement(@NotNull final LongObjectLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongObjectLongTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongObjectLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectLongTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectLongColumnTupleSource( + return new InstantObjectLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectObjectColumnTupleSource.java index d31845ac670..16ba1d62b3f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectObjectColumnTupleSource.java @@ -10,28 +10,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectObjectTuple; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectObjectColumnTupleSource extends AbstractTupleSource { +public class InstantObjectObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeObjectObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -62,7 +62,7 @@ public final LongObjectObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], values[2] ); @@ -71,7 +71,7 @@ public final LongObjectObjectTuple createTupleFromValues(@NotNull final Object.. @Override public final LongObjectObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], values[2] ); @@ -81,7 +81,7 @@ public final LongObjectObjectTuple createTupleFromReinterpretedValues(@NotNull f @Override public final void exportElement(@NotNull final LongObjectObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -98,7 +98,7 @@ public final void exportElement(@NotNull final LongObjectObjectTu @Override public final Object exportElement(@NotNull final LongObjectObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -112,7 +112,7 @@ public final Object exportElement(@NotNull final LongObjectObjectTuple tuple, in @Override public final Object exportElementReinterpreted(@NotNull final LongObjectObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -126,7 +126,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectObjectTu @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -135,19 +135,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectObjectColumnTupleSource( + return new InstantObjectObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectReinterpretedBooleanColumnTupleSource.java index a3aa07ff4d4..07af3a6cf40 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectReinterpretedBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantObjectReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeObjectReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongObjectByteTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongObjectByteTuple createTupleFromValues(@NotNull final Object... @Override public final LongObjectByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongObjectByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongObjectByteTupl @Override public final Object exportElement(@NotNull final LongObjectByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongObjectByteTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongObjectByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectByteTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectReinterpretedBooleanColumnTupleSource( + return new InstantObjectReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectReinterpretedInstantColumnTupleSource.java index 82e424e9c59..e372e607353 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeObjectReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,16 +64,16 @@ public final LongObjectLongTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongObjectLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Long)values[2]) ); @@ -83,7 +83,7 @@ public final LongObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongObjectLongTupl @Override public final Object exportElement(@NotNull final LongObjectLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongObjectLongTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongObjectLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectLongTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectReinterpretedDateTimeColumnTupleSource( + return new InstantObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectShortColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectShortColumnTupleSource.java index bc8c48dbeb4..bbda4d7ad9b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeObjectShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantObjectShortColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Object, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Object, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeObjectShortColumnTupleSource extends AbstractTupleSource { +public class InstantObjectShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeObjectShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantObjectShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeObjectShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantObjectShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongObjectShortTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Short)values[2]) ); @@ -73,7 +73,7 @@ public final LongObjectShortTuple createTupleFromValues(@NotNull final Object... @Override public final LongObjectShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongObjectShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Short)values[2]) ); @@ -83,7 +83,7 @@ public final LongObjectShortTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongObjectShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongObjectShortTup @Override public final Object exportElement(@NotNull final LongObjectShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongObjectShortTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongObjectShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectShortTup @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeObjectShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantObjectShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeObjectShortColumnTupleSource( + return new InstantObjectShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanBooleanColumnTupleSource.java index a49f26e0f5d..62b8aabeeeb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanBooleanColumnTupleSource( + return new InstantReinterpretedBooleanBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanByteColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanByteColumnTupleSource.java index aed8639242b..d5d30e9eca7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanByteColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanByteColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanByteColumnTupleSource( + return new InstantReinterpretedBooleanByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanCharacterColumnTupleSource.java index 1adc8ed9a23..93c0b915d39 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanCharacterColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteCharTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongByteCharTuple createPreviousTuple(final long rowKey) { @Override public final LongByteCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -75,7 +75,7 @@ public final LongByteCharTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteCharTuple @Override public final Object exportElement(@NotNull final LongByteCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongByteCharTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteCharTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanCharacterColumnTupleSource( + return new InstantReinterpretedBooleanCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanColumnTupleSource.java similarity index 80% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanColumnTupleSource.java index a216751825f..bcebc0d59a5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DateTimeReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); @@ -60,7 +60,7 @@ public final LongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]) ); } @@ -68,7 +68,7 @@ public final LongByteTuple createTupleFromValues(@NotNull final Object... values @Override public final LongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]) ); } @@ -77,7 +77,7 @@ public final LongByteTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -90,7 +90,7 @@ public final void exportElement(@NotNull final LongByteTuple tupl @Override public final Object exportElement(@NotNull final LongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -101,7 +101,7 @@ public final Object exportElement(@NotNull final LongByteTuple tuple, int elemen @Override public final Object exportElementReinterpreted(@NotNull final LongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -111,7 +111,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii))); @@ -119,18 +119,18 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DateTimeReinterpretedBooleanColumnTupleSource( + return new InstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanDoubleColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanDoubleColumnTupleSource.java index b15d31bb8f6..e708ca3dabd 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanDoubleColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteDoubleTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongByteDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongByteDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -75,7 +75,7 @@ public final LongByteDoubleTuple createTupleFromValues(@NotNull final Object... @Override public final LongByteDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteDoubleTupl @Override public final Object exportElement(@NotNull final LongByteDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongByteDoubleTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongByteDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteDoubleTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanDoubleColumnTupleSource( + return new InstantReinterpretedBooleanDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanFloatColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanFloatColumnTupleSource.java index fd277e0efbd..1c2864937c6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanFloatColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteFloatTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanFloatColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongByteFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongByteFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -75,7 +75,7 @@ public final LongByteFloatTuple createTupleFromValues(@NotNull final Object... v @Override public final LongByteFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteFloatTuple @Override public final Object exportElement(@NotNull final LongByteFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongByteFloatTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongByteFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteFloatTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanFloatColumnTupleSource( + return new InstantReinterpretedBooleanFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanInstantColumnTupleSource.java index d67e12a5df7..b6359969a2c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,18 +65,18 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -84,7 +84,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -115,13 +115,13 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,28 +129,28 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanDateTimeColumnTupleSource( + return new InstantReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanIntegerColumnTupleSource.java index 7555d4a15ed..70d022cd69b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanIntegerColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteIntTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongByteIntTuple createPreviousTuple(final long rowKey) { @Override public final LongByteIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -75,7 +75,7 @@ public final LongByteIntTuple createTupleFromValues(@NotNull final Object... val @Override public final LongByteIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteIntTuple t @Override public final Object exportElement(@NotNull final LongByteIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongByteIntTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongByteIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteIntTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanIntegerColumnTupleSource( + return new InstantReinterpretedBooleanIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanLongColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanLongColumnTupleSource.java index af777529173..42308fb55a6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanLongColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanLongColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -75,7 +75,7 @@ public final LongByteLongTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanLongColumnTupleSource( + return new InstantReinterpretedBooleanLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanObjectColumnTupleSource.java index cf8910d0c69..2c9d21ce7ba 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanObjectColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteObjectTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanObjectColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongByteObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), values[2] ); @@ -74,7 +74,7 @@ public final LongByteObjectTuple createTupleFromValues(@NotNull final Object... @Override public final LongByteObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), values[2] ); @@ -84,7 +84,7 @@ public final LongByteObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteObjectTupl @Override public final Object exportElement(@NotNull final LongByteObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteObjectTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongByteObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteObjectTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanObjectColumnTupleSource( + return new InstantReinterpretedBooleanObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java index 56c5f61c124..3bfc3b9d29c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongByteByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongByteByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource( + return new InstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 78% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index 365e81d4965..ac7958efe82 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,16 +66,16 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -102,13 +102,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new InstantReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanShortColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanShortColumnTupleSource.java index 4b24aa76cea..888a1e9318d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedBooleanShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedBooleanShortColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteShortTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Byte, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Byte, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedBooleanShortColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedBooleanShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedBooleanShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedBooleanShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedBooleanShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedBooleanShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongByteShortTuple createPreviousTuple(final long rowKey) { @Override public final LongByteShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -75,7 +75,7 @@ public final LongByteShortTuple createTupleFromValues(@NotNull final Object... v @Override public final LongByteShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongByteShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteShortTuple @Override public final Object exportElement(@NotNull final LongByteShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongByteShortTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongByteShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteShortTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedBooleanShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedBooleanShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedBooleanShortColumnTupleSource( + return new InstantReinterpretedBooleanShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantBooleanColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantBooleanColumnTupleSource.java index c7746664053..5daae0e8396 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,8 +65,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -74,7 +74,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,11 +84,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeBooleanColumnTupleSource( + return new InstantReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantByteColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantByteColumnTupleSource.java index da88dce18ec..a4cf067bed6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantByteColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,8 +65,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -74,7 +74,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,11 +84,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeByteColumnTupleSource( + return new InstantReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantCharacterColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantCharacterColumnTupleSource.java index 1c34c0ed9ab..f6105b1bce9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantCharacterColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,8 +65,8 @@ public final LongLongCharTuple createPreviousTuple(final long rowKey) { @Override public final LongLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -74,7 +74,7 @@ public final LongLongCharTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,11 +84,11 @@ public final LongLongCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongCharTuple @Override public final Object exportElement(@NotNull final LongLongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongCharTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongCharTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeCharacterColumnTupleSource( + return new InstantReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantColumnTupleSource.java similarity index 76% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantColumnTupleSource.java index d134b4a5ff2..a27e47bae64 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DateTimeReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); @@ -59,15 +59,15 @@ public final LongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]) ); } @Override public final LongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]) ); } @@ -76,11 +76,11 @@ public final LongLongTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -89,10 +89,10 @@ public final void exportElement(@NotNull final LongLongTuple tupl @Override public final Object exportElement(@NotNull final LongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -100,7 +100,7 @@ public final Object exportElement(@NotNull final LongLongTuple tuple, int elemen @Override public final Object exportElementReinterpreted(@NotNull final LongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -110,7 +110,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii))); @@ -118,18 +118,18 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DateTimeReinterpretedDateTimeColumnTupleSource( + return new InstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantDoubleColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantDoubleColumnTupleSource.java index a86150e24e6..24ae479e838 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantDoubleColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,8 +65,8 @@ public final LongLongDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -74,7 +74,7 @@ public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... @Override public final LongLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,11 +84,11 @@ public final LongLongDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongDoubleTupl @Override public final Object exportElement(@NotNull final LongLongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongDoubleTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongLongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongDoubleTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeDoubleColumnTupleSource( + return new InstantReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantFloatColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantFloatColumnTupleSource.java index 8fd9b29bae0..61eb145302a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantFloatColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,8 +65,8 @@ public final LongLongFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -74,7 +74,7 @@ public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... v @Override public final LongLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,11 +84,11 @@ public final LongLongFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongFloatTuple @Override public final Object exportElement(@NotNull final LongLongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongFloatTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongLongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongFloatTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeFloatColumnTupleSource( + return new InstantReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantInstantColumnTupleSource.java similarity index 70% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantInstantColumnTupleSource.java index a7dfb859591..af84b35e27c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,18 +64,18 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,15 +83,15 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,13 +114,13 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -128,28 +128,28 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeDateTimeColumnTupleSource( + return new InstantReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantIntegerColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantIntegerColumnTupleSource.java index bf39bae9539..990cf0e896d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantIntegerColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,8 +65,8 @@ public final LongLongIntTuple createPreviousTuple(final long rowKey) { @Override public final LongLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -74,7 +74,7 @@ public final LongLongIntTuple createTupleFromValues(@NotNull final Object... val @Override public final LongLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,11 +84,11 @@ public final LongLongIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongIntTuple t @Override public final Object exportElement(@NotNull final LongLongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongIntTuple tuple, int ele @Override public final Object exportElementReinterpreted(@NotNull final LongLongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongIntTuple t @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeIntegerColumnTupleSource( + return new InstantReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantLongColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantLongColumnTupleSource.java index a928aee4cd6..2f28e062af0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantLongColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,8 +64,8 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -73,7 +73,7 @@ public final LongLongLongTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -83,11 +83,11 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeLongColumnTupleSource( + return new InstantReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantObjectColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantObjectColumnTupleSource.java index 3c291178356..750770b29a8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantObjectColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,8 +64,8 @@ public final LongLongObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -73,7 +73,7 @@ public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... @Override public final LongLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), values[2] ); @@ -83,11 +83,11 @@ public final LongLongObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongObjectTupl @Override public final Object exportElement(@NotNull final LongLongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongLongObjectTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongLongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongObjectTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeObjectColumnTupleSource( + return new InstantReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 78% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index 950bd6d4092..a1455a87e5d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,8 +66,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va @Override public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -85,11 +85,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -102,10 +102,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new InstantReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 75% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantReinterpretedInstantColumnTupleSource.java index e86cd3949b9..d7b340aee65 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,16 +64,16 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -83,15 +83,15 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new InstantReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantShortColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantShortColumnTupleSource.java index 18f4d29248d..353dff6e9a3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantReinterpretedInstantShortColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Long, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class InstantReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeReinterpretedDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantReinterpretedInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeReinterpretedDateTimeShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantReinterpretedInstantShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,8 +65,8 @@ public final LongLongShortTuple createPreviousTuple(final long rowKey) { @Override public final LongLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -74,7 +74,7 @@ public final LongLongShortTuple createTupleFromValues(@NotNull final Object... v @Override public final LongLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,11 +84,11 @@ public final LongLongShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongShortTuple @Override public final Object exportElement(@NotNull final LongLongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongLongShortTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongLongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongShortTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeReinterpretedDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantReinterpretedInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeReinterpretedDateTimeShortColumnTupleSource( + return new InstantReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortBooleanColumnTupleSource.java index 2b7da6dd7c3..ff512ab85c4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortBooleanColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantShortBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeShortBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongShortByteTuple createPreviousTuple(final long rowKey) { @Override public final LongShortByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -74,7 +74,7 @@ public final LongShortByteTuple createTupleFromValues(@NotNull final Object... v @Override public final LongShortByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortByteTuple @Override public final Object exportElement(@NotNull final LongShortByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongShortByteTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongShortByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortBooleanColumnTupleSource( + return new InstantShortBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortByteColumnTupleSource.java index 39b9583e247..34a0f4bf1b2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortByteColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortByteColumnTupleSource extends AbstractTupleSource { +public class InstantShortByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeShortByteColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortByteColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongShortByteTuple createPreviousTuple(final long rowKey) { @Override public final LongShortByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -74,7 +74,7 @@ public final LongShortByteTuple createTupleFromValues(@NotNull final Object... v @Override public final LongShortByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortByteTuple @Override public final Object exportElement(@NotNull final LongShortByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongShortByteTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongShortByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortByteColumnTupleSource( + return new InstantShortByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortCharacterColumnTupleSource.java index 0b76d7355ca..c57c705534c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortCharacterColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortCharacterColumnTupleSource extends AbstractTupleSource { +public class InstantShortCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeShortCharacterColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortCharacterColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongShortCharTuple createPreviousTuple(final long rowKey) { @Override public final LongShortCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -74,7 +74,7 @@ public final LongShortCharTuple createTupleFromValues(@NotNull final Object... v @Override public final LongShortCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortCharTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortCharTuple @Override public final Object exportElement(@NotNull final LongShortCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongShortCharTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongShortCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortCharTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortCharacterColumnTupleSource( + return new InstantShortCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortColumnTupleSource.java index 672ca7e1a70..0d95ed8cdd5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortColumnTupleSource extends AbstractTupleSource { +public class InstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link InstantShortColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public DateTimeShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); @@ -59,7 +59,7 @@ public final LongShortTuple createPreviousTuple(final long rowKey) { @Override public final LongShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]) ); } @@ -67,7 +67,7 @@ public final LongShortTuple createTupleFromValues(@NotNull final Object... value @Override public final LongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]) ); } @@ -76,7 +76,7 @@ public final LongShortTuple createTupleFromReinterpretedValues(@NotNull final Ob @Override public final void exportElement(@NotNull final LongShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongShortTuple tup @Override public final Object exportElement(@NotNull final LongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -100,7 +100,7 @@ public final Object exportElement(@NotNull final LongShortTuple tuple, int eleme @Override public final Object exportElementReinterpreted(@NotNull final LongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -110,7 +110,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortTuple tup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongShortTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii))); @@ -118,18 +118,18 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link DateTimeShortColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link InstantShortColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new DateTimeShortColumnTupleSource( + return new InstantShortColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortDoubleColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortDoubleColumnTupleSource.java index 3cc5e23b6a1..ed0dad1d176 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortDoubleColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortDoubleColumnTupleSource extends AbstractTupleSource { +public class InstantShortDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeShortDoubleColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortDoubleColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongShortDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongShortDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -74,7 +74,7 @@ public final LongShortDoubleTuple createTupleFromValues(@NotNull final Object... @Override public final LongShortDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortDoubleTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongShortDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortDoubleTup @Override public final Object exportElement(@NotNull final LongShortDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongShortDoubleTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongShortDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortDoubleTup @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortDoubleColumnTupleSource( + return new InstantShortDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortFloatColumnTupleSource.java index faaa88e826c..f5b71a1871b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortFloatColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortFloatColumnTupleSource extends AbstractTupleSource { +public class InstantShortFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeShortFloatColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortFloatColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongShortFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongShortFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -74,7 +74,7 @@ public final LongShortFloatTuple createTupleFromValues(@NotNull final Object... @Override public final LongShortFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortFloatTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongShortFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortFloatTupl @Override public final Object exportElement(@NotNull final LongShortFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongShortFloatTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongShortFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortFloatTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortFloatColumnTupleSource( + return new InstantShortFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortInstantColumnTupleSource.java index b72c40ff5e0..6f7e8ef5efc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public DateTimeShortDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,18 +64,18 @@ public final LongShortLongTuple createPreviousTuple(final long rowKey) { @Override public final LongShortLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongShortLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongShortLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongShortLongTuple @Override public final Object exportElement(@NotNull final LongShortLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -114,13 +114,13 @@ public final Object exportElement(@NotNull final LongShortLongTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongShortLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -128,28 +128,28 @@ public final Object exportElementReinterpreted(@NotNull final LongShortLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongShortLongTuple(DateTimeUtils.epochNanos(chunk1.get(ii)), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortDateTimeColumnTupleSource( + return new InstantShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortIntegerColumnTupleSource.java index 0a7fba453ac..4a41e5bf982 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortIntegerColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortIntegerColumnTupleSource extends AbstractTupleSource { +public class InstantShortIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeShortIntegerColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortIntegerColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongShortIntTuple createPreviousTuple(final long rowKey) { @Override public final LongShortIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -74,7 +74,7 @@ public final LongShortIntTuple createTupleFromValues(@NotNull final Object... va @Override public final LongShortIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongShortIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortIntTuple @Override public final Object exportElement(@NotNull final LongShortIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongShortIntTuple tuple, int el @Override public final Object exportElementReinterpreted(@NotNull final LongShortIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortIntTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortIntegerColumnTupleSource( + return new InstantShortIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortLongColumnTupleSource.java index d96f03c016e..a287c3f5a46 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortLongColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortLongColumnTupleSource extends AbstractTupleSource { +public class InstantShortLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeShortLongColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortLongColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,7 +65,7 @@ public final LongShortLongTuple createPreviousTuple(final long rowKey) { @Override public final LongShortLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -74,7 +74,7 @@ public final LongShortLongTuple createTupleFromValues(@NotNull final Object... v @Override public final LongShortLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortLongTuple @Override public final Object exportElement(@NotNull final LongShortLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongShortLongTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongShortLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortLongColumnTupleSource( + return new InstantShortLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortObjectColumnTupleSource.java index 7f5aba0833d..7560d241dcd 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortObjectColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortObjectColumnTupleSource extends AbstractTupleSource { +public class InstantShortObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeShortObjectColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortObjectColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongShortObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongShortObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), values[2] ); @@ -73,7 +73,7 @@ public final LongShortObjectTuple createTupleFromValues(@NotNull final Object... @Override public final LongShortObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), values[2] ); @@ -83,7 +83,7 @@ public final LongShortObjectTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongShortObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongShortObjectTup @Override public final Object exportElement(@NotNull final LongShortObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongShortObjectTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongShortObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortObjectTup @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortObjectColumnTupleSource( + return new InstantShortObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortReinterpretedBooleanColumnTupleSource.java index a7f93ad905a..6c0c597073e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortReinterpretedBooleanColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class InstantShortReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeShortReinterpretedBooleanColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortReinterpretedBooleanColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -66,7 +66,7 @@ public final LongShortByteTuple createPreviousTuple(final long rowKey) { @Override public final LongShortByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -75,7 +75,7 @@ public final LongShortByteTuple createTupleFromValues(@NotNull final Object... v @Override public final LongShortByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -85,7 +85,7 @@ public final LongShortByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongShortByteTuple @Override public final Object exportElement(@NotNull final LongShortByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -116,7 +116,7 @@ public final Object exportElement(@NotNull final LongShortByteTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongShortByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortByteTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -139,19 +139,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortReinterpretedBooleanColumnTupleSource( + return new InstantShortReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortReinterpretedInstantColumnTupleSource.java index 8e464e94817..5b0f4e01d66 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class InstantShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeShortReinterpretedDateTimeColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortReinterpretedInstantColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -65,16 +65,16 @@ public final LongShortLongTuple createPreviousTuple(final long rowKey) { @Override public final LongShortLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @Override public final LongShortLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongShortLongTuple @Override public final Object exportElement(@NotNull final LongShortLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -115,7 +115,7 @@ public final Object exportElement(@NotNull final LongShortLongTuple tuple, int e @Override public final Object exportElementReinterpreted(@NotNull final LongShortLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortLongTuple @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -138,19 +138,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortReinterpretedDateTimeColumnTupleSource( + return new InstantShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortShortColumnTupleSource.java index 69a19320132..3019d4833eb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/DateTimeShortShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/InstantShortShortColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types DateTime, Short, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Instant, Short, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class DateTimeShortShortColumnTupleSource extends AbstractTupleSource { +public class InstantShortShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link DateTimeShortShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link InstantShortShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); - private final ColumnSource columnSource1; + private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public DateTimeShortShortColumnTupleSource( - @NotNull final ColumnSource columnSource1, + public InstantShortShortColumnTupleSource( + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { @@ -64,7 +64,7 @@ public final LongShortShortTuple createPreviousTuple(final long rowKey) { @Override public final LongShortShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -73,7 +73,7 @@ public final LongShortShortTuple createTupleFromValues(@NotNull final Object... @Override public final LongShortShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongShortShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -83,7 +83,7 @@ public final LongShortShortTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongShortShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongShortShortTupl @Override public final Object exportElement(@NotNull final LongShortShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -114,7 +114,7 @@ public final Object exportElement(@NotNull final LongShortShortTuple tuple, int @Override public final Object exportElementReinterpreted(@NotNull final LongShortShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortShortTupl @Override protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); - ObjectChunk chunk1 = chunks[0].asObjectChunk(); + ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { @@ -137,19 +137,19 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link DateTimeShortShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link InstantShortShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @Override public TupleSource create( - @NotNull final ColumnSource columnSource1, + @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new DateTimeShortShortColumnTupleSource( + return new InstantShortShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanInstantColumnTupleSource.java index 8336416dcf9..cad0916c49f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public IntegerBooleanDateTimeColumnTupleSource( + public IntegerBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final IntByteLongTuple createTupleFromValues(@NotNull final Object... val return new IntByteLongTuple( TypeUtils.unbox((Integer)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final IntByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new IntByteLongTuple( TypeUtils.unbox((Integer)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntByteLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntByteLongTuple tuple, int ele return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final IntByteLongTuple t return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntByteLongTuple(chunk1.get(ii), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new IntegerBooleanDateTimeColumnTupleSource( + return new IntegerBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanReinterpretedInstantColumnTupleSource.java index fa7a48a503b..2c4c92d8189 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerBooleanReinterpretedDateTimeColumnTupleSource( + public IntegerBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final IntByteLongTuple createTupleFromValues(@NotNull final Object... val return new IntByteLongTuple( TypeUtils.unbox((Integer)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final IntByteLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final IntByteLongTuple tuple, int ele return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerBooleanReinterpretedDateTimeColumnTupleSource( + return new IntegerBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteInstantColumnTupleSource.java index 5bd25b9143c..0363424b68c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public IntegerByteDateTimeColumnTupleSource( + public IntegerByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final IntByteLongTuple createTupleFromValues(@NotNull final Object... val return new IntByteLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final IntByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new IntByteLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntByteLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntByteLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final IntByteLongTuple t return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new IntegerByteDateTimeColumnTupleSource( + return new IntegerByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteReinterpretedInstantColumnTupleSource.java index 03012e3dd0a..1fa39bb8c97 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerByteReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerByteReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerByteReinterpretedDateTimeColumnTupleSource( + public IntegerByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final IntByteLongTuple createTupleFromValues(@NotNull final Object... val return new IntByteLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntByteLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntByteLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerByteReinterpretedDateTimeColumnTupleSource( + return new IntegerByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterInstantColumnTupleSource.java index 954d8604912..163e8a7a7e8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public IntegerCharacterDateTimeColumnTupleSource( + public IntegerCharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final IntCharLongTuple createTupleFromValues(@NotNull final Object... val return new IntCharLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final IntCharLongTuple createTupleFromReinterpretedValues(@NotNull final return new IntCharLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntCharLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntCharLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final IntCharLongTuple t return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntCharLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new IntegerCharacterDateTimeColumnTupleSource( + return new IntegerCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterReinterpretedInstantColumnTupleSource.java index c49c6957046..25fa25aa07f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerCharacterReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerCharacterReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerCharacterReinterpretedDateTimeColumnTupleSource( + public IntegerCharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final IntCharLongTuple createTupleFromValues(@NotNull final Object... val return new IntCharLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntCharLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntCharLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerCharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerCharacterReinterpretedDateTimeColumnTupleSource( + return new IntegerCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleInstantColumnTupleSource.java index d347cc782df..85a6664dcce 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public IntegerDoubleDateTimeColumnTupleSource( + public IntegerDoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final IntDoubleLongTuple createTupleFromValues(@NotNull final Object... v return new IntDoubleLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final IntDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fina return new IntDoubleLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntDoubleLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntDoubleLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final IntDoubleLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntDoubleLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new IntegerDoubleDateTimeColumnTupleSource( + return new IntegerDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleReinterpretedInstantColumnTupleSource.java index 1022a661e9b..ccba77a25b6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDoubleReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDoubleReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDoubleReinterpretedDateTimeColumnTupleSource( + public IntegerDoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final IntDoubleLongTuple createTupleFromValues(@NotNull final Object... v return new IntDoubleLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntDoubleLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntDoubleLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDoubleReinterpretedDateTimeColumnTupleSource( + return new IntegerDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatInstantColumnTupleSource.java index c66264ba217..ef8ffb50154 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public IntegerFloatDateTimeColumnTupleSource( + public IntegerFloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final IntFloatLongTuple createTupleFromValues(@NotNull final Object... va return new IntFloatLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final IntFloatLongTuple createTupleFromReinterpretedValues(@NotNull final return new IntFloatLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntFloatLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final IntFloatLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntFloatLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new IntegerFloatDateTimeColumnTupleSource( + return new IntegerFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatReinterpretedInstantColumnTupleSource.java index b502b2d841c..22047dd1aae 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerFloatReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerFloatReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerFloatReinterpretedDateTimeColumnTupleSource( + public IntegerFloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final IntFloatLongTuple createTupleFromValues(@NotNull final Object... va return new IntFloatLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntFloatLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerFloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerFloatReinterpretedDateTimeColumnTupleSource( + return new IntegerFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantBooleanColumnTupleSource.java index e1c7fb1de90..ceb96992785 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDateTimeBooleanColumnTupleSource( + public IntegerInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final IntLongByteTuple createPreviousTuple(final long rowKey) { public final IntLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongByteTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final IntLongByteTuple createTupleFromValues(@NotNull final Object... val public final IntLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongByteTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongByteTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongByteTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongByteTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongByteTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeBooleanColumnTupleSource( + return new IntegerInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantByteColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantByteColumnTupleSource.java index c04cdc4815f..47136f39fbb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantByteColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDateTimeByteColumnTupleSource( + public IntegerInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final IntLongByteTuple createPreviousTuple(final long rowKey) { public final IntLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongByteTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -75,7 +75,7 @@ public final IntLongByteTuple createTupleFromValues(@NotNull final Object... val public final IntLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongByteTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongByteTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongByteTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongByteTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongByteTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeByteColumnTupleSource( + return new IntegerInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantCharacterColumnTupleSource.java index d11f7f05aa0..c4ee179d639 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantCharacterColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDateTimeCharacterColumnTupleSource( + public IntegerInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final IntLongCharTuple createPreviousTuple(final long rowKey) { public final IntLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongCharTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -75,7 +75,7 @@ public final IntLongCharTuple createTupleFromValues(@NotNull final Object... val public final IntLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongCharTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongCharTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongCharTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongCharTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongCharTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongCharTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeCharacterColumnTupleSource( + return new IntegerInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantColumnTupleSource.java similarity index 80% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantColumnTupleSource.java index c35dc5949bc..c06a173058b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; - public IntegerDateTimeColumnTupleSource( + public IntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -60,7 +60,7 @@ public final IntLongTuple createPreviousTuple(final long rowKey) { public final IntLongTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -68,7 +68,7 @@ public final IntLongTuple createTupleFromValues(@NotNull final Object... values) public final IntLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final IntLongTuple tuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final IntLongTuple tuple, int element return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -103,7 +103,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongTuple tuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -111,15 +111,15 @@ public final Object exportElementReinterpreted(@NotNull final IntLongTuple tuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link IntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link IntegerInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @@ -127,9 +127,9 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { - return new IntegerDateTimeColumnTupleSource( + return new IntegerInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantDoubleColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantDoubleColumnTupleSource.java index 27e5d9a8054..2de87430624 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantDoubleColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDateTimeDoubleColumnTupleSource( + public IntegerInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final IntLongDoubleTuple createPreviousTuple(final long rowKey) { public final IntLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongDoubleTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -75,7 +75,7 @@ public final IntLongDoubleTuple createTupleFromValues(@NotNull final Object... v public final IntLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongDoubleTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongDoubleTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongDoubleTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongDoubleTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongDoubleTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongDoubleTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeDoubleColumnTupleSource( + return new IntegerInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantFloatColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantFloatColumnTupleSource.java index a1bf836314d..e85b1dda49a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantFloatColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDateTimeFloatColumnTupleSource( + public IntegerInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final IntLongFloatTuple createPreviousTuple(final long rowKey) { public final IntLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongFloatTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -75,7 +75,7 @@ public final IntLongFloatTuple createTupleFromValues(@NotNull final Object... va public final IntLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongFloatTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongFloatTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongFloatTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongFloatTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongFloatTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeFloatColumnTupleSource( + return new IntegerInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantInstantColumnTupleSource.java index 916d554ca8a..9b3592370de 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public IntegerDateTimeDateTimeColumnTupleSource( + public IntegerInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,8 +65,8 @@ public final IntLongLongTuple createPreviousTuple(final long rowKey) { public final IntLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,8 +74,8 @@ public final IntLongLongTuple createTupleFromValues(@NotNull final Object... val public final IntLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final IntLongLongTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final IntLongLongTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -117,10 +117,10 @@ public final Object exportElementReinterpreted(@NotNull final IntLongLongTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,16 +129,16 @@ public final Object exportElementReinterpreted(@NotNull final IntLongLongTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeDateTimeColumnTupleSource( + return new IntegerInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantIntegerColumnTupleSource.java index 08c81fb4708..9cfa270014a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantIntegerColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDateTimeIntegerColumnTupleSource( + public IntegerInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final IntLongIntTuple createPreviousTuple(final long rowKey) { public final IntLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongIntTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -74,7 +74,7 @@ public final IntLongIntTuple createTupleFromValues(@NotNull final Object... valu public final IntLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongIntTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final IntLongIntTuple tu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final IntLongIntTuple tuple, int elem return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongIntTuple tu return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongIntTuple tu protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongIntTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeIntegerColumnTupleSource( + return new IntegerInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantLongColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantLongColumnTupleSource.java index bb286970eb8..fac306698be 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantLongColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDateTimeLongColumnTupleSource( + public IntegerInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final IntLongLongTuple createPreviousTuple(final long rowKey) { public final IntLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -75,7 +75,7 @@ public final IntLongLongTuple createTupleFromValues(@NotNull final Object... val public final IntLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongLongTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongLongTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongLongTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongLongTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeLongColumnTupleSource( + return new IntegerInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantObjectColumnTupleSource.java index 0e81c1181bf..3641e80d2e3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantObjectColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDateTimeObjectColumnTupleSource( + public IntegerInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final IntLongObjectTuple createPreviousTuple(final long rowKey) { public final IntLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongObjectTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -74,7 +74,7 @@ public final IntLongObjectTuple createTupleFromValues(@NotNull final Object... v public final IntLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongObjectTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final IntLongObjectTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final IntLongObjectTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongObjectTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongObjectTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongObjectTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeObjectColumnTupleSource( + return new IntegerInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantReinterpretedBooleanColumnTupleSource.java index 68dd8b311a5..a37bec255d7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantReinterpretedBooleanColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDateTimeReinterpretedBooleanColumnTupleSource( + public IntegerInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final IntLongByteTuple createPreviousTuple(final long rowKey) { public final IntLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongByteTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -76,7 +76,7 @@ public final IntLongByteTuple createTupleFromValues(@NotNull final Object... val public final IntLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongByteTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final IntLongByteTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final IntLongByteTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongByteTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongByteTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeReinterpretedBooleanColumnTupleSource( + return new IntegerInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantReinterpretedInstantColumnTupleSource.java index 07228ae5e4d..6f42c67550d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantReinterpretedInstantColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDateTimeReinterpretedDateTimeColumnTupleSource( + public IntegerInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,8 +66,8 @@ public final IntLongLongTuple createPreviousTuple(final long rowKey) { public final IntLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final IntLongLongTuple createTupleFromValues(@NotNull final Object... val public final IntLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final IntLongLongTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final IntLongLongTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongLongTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongLongTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeReinterpretedDateTimeColumnTupleSource( + return new IntegerInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantShortColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantShortColumnTupleSource.java index 0b9dee2aee6..0731b8733c8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerInstantShortColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class IntegerInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerDateTimeShortColumnTupleSource( + public IntegerInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final IntLongShortTuple createPreviousTuple(final long rowKey) { public final IntLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongShortTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -75,7 +75,7 @@ public final IntLongShortTuple createTupleFromValues(@NotNull final Object... va public final IntLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new IntLongShortTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongShortTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongShortTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongShortTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongShortTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerDateTimeShortColumnTupleSource( + return new IntegerInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerInstantColumnTupleSource.java index 7b3d5f599bf..70160a267f1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public IntegerIntegerDateTimeColumnTupleSource( + public IntegerIntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final IntIntLongTuple createTupleFromValues(@NotNull final Object... valu return new IntIntLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final IntIntLongTuple createTupleFromReinterpretedValues(@NotNull final O return new IntIntLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final IntIntLongTuple tu return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final IntIntLongTuple tuple, int elem return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final IntIntLongTuple tu return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntIntLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new IntegerIntegerDateTimeColumnTupleSource( + return new IntegerIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerReinterpretedInstantColumnTupleSource.java index 4d60394f401..1c2e5d2823a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerIntegerReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerIntegerReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerIntegerReinterpretedDateTimeColumnTupleSource( + public IntegerIntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final IntIntLongTuple createTupleFromValues(@NotNull final Object... valu return new IntIntLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final IntIntLongTuple tu return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final IntIntLongTuple tuple, int elem return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerIntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerIntegerReinterpretedDateTimeColumnTupleSource( + return new IntegerIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongInstantColumnTupleSource.java index bc9355780c0..a3b4a8c200b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public IntegerLongDateTimeColumnTupleSource( + public IntegerLongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final IntLongLongTuple createTupleFromValues(@NotNull final Object... val return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final IntLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntLongLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntLongLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongLongTuple t return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new IntegerLongDateTimeColumnTupleSource( + return new IntegerLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongReinterpretedInstantColumnTupleSource.java index e6dad558816..f8c0ce4c2af 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerLongReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerLongReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerLongReinterpretedDateTimeColumnTupleSource( + public IntegerLongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final IntLongLongTuple createTupleFromValues(@NotNull final Object... val return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final IntLongLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final IntLongLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerLongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerLongReinterpretedDateTimeColumnTupleSource( + return new IntegerLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectInstantColumnTupleSource.java index 638bda62436..059d7e20175 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public IntegerObjectDateTimeColumnTupleSource( + public IntegerObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final IntObjectLongTuple createTupleFromValues(@NotNull final Object... v return new IntObjectLongTuple( TypeUtils.unbox((Integer)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final IntObjectLongTuple createTupleFromReinterpretedValues(@NotNull fina return new IntObjectLongTuple( TypeUtils.unbox((Integer)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final IntObjectLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final IntObjectLongTuple tuple, int e return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final IntObjectLongTuple return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntObjectLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new IntegerObjectDateTimeColumnTupleSource( + return new IntegerObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectReinterpretedInstantColumnTupleSource.java index ba6a3a30906..266533a7315 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerObjectReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerObjectReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerObjectReinterpretedDateTimeColumnTupleSource( + public IntegerObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final IntObjectLongTuple createTupleFromValues(@NotNull final Object... v return new IntObjectLongTuple( TypeUtils.unbox((Integer)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntObjectLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntObjectLongTuple tuple, int e return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerObjectReinterpretedDateTimeColumnTupleSource( + return new IntegerObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanInstantColumnTupleSource.java index 15294b35680..eea2e6835ce 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public IntegerReinterpretedBooleanDateTimeColumnTupleSource( + public IntegerReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final IntByteLongTuple createTupleFromValues(@NotNull final Object... val return new IntByteLongTuple( TypeUtils.unbox((Integer)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final IntByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new IntByteLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final IntByteLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final IntByteLongTuple tuple, int ele return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final IntByteLongTuple t return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedBooleanDateTimeColumnTupleSource( + return new IntegerReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index 513963e385b..1e0b94cd3c8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public IntegerReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final IntByteLongTuple createTupleFromValues(@NotNull final Object... val return new IntByteLongTuple( TypeUtils.unbox((Integer)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final IntByteLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final IntByteLongTuple tuple, int ele return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new IntegerReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantBooleanColumnTupleSource.java index aaa310959b7..57154f0a5c8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeBooleanColumnTupleSource( + public IntegerReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final IntLongByteTuple createPreviousTuple(final long rowKey) { public final IntLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongByteTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final IntLongByteTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final IntLongByteTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeBooleanColumnTupleSource( + return new IntegerReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantByteColumnTupleSource.java index dd9ff4b4cb4..379f9138cfc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeByteColumnTupleSource( + public IntegerReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final IntLongByteTuple createPreviousTuple(final long rowKey) { public final IntLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongByteTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongByteTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongByteTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeByteColumnTupleSource( + return new IntegerReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantCharacterColumnTupleSource.java index 0742ffdd06f..bd70f12fc86 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeCharacterColumnTupleSource( + public IntegerReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final IntLongCharTuple createPreviousTuple(final long rowKey) { public final IntLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongCharTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongCharTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongCharTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeCharacterColumnTupleSource( + return new IntegerReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantColumnTupleSource.java index e3d795a2641..8158a97dc6c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public IntegerReinterpretedDateTimeColumnTupleSource( + public IntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -60,7 +60,7 @@ public final IntLongTuple createPreviousTuple(final long rowKey) { public final IntLongTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final IntLongTuple tuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final IntLongTuple tuple, int element return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new IntegerReinterpretedDateTimeColumnTupleSource( + return new IntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantDoubleColumnTupleSource.java index 167af7e643a..32a1a9deaed 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeDoubleColumnTupleSource( + public IntegerReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final IntLongDoubleTuple createPreviousTuple(final long rowKey) { public final IntLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongDoubleTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongDoubleTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongDoubleTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeDoubleColumnTupleSource( + return new IntegerReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantFloatColumnTupleSource.java index c31bed1bdc7..eff067d48ab 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeFloatColumnTupleSource( + public IntegerReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final IntLongFloatTuple createPreviousTuple(final long rowKey) { public final IntLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongFloatTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongFloatTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeFloatColumnTupleSource( + return new IntegerReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantInstantColumnTupleSource.java index 233e47bdc8a..ec25d98decb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeDateTimeColumnTupleSource( + public IntegerReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,8 +66,8 @@ public final IntLongLongTuple createPreviousTuple(final long rowKey) { public final IntLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final IntLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final IntLongLongTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final IntLongLongTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final IntLongLongTuple t return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeDateTimeColumnTupleSource( + return new IntegerReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantIntegerColumnTupleSource.java index e87512b4ad8..ecb3e398a23 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantIntegerColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeIntegerColumnTupleSource( + public IntegerReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final IntLongIntTuple createPreviousTuple(final long rowKey) { public final IntLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongIntTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final IntLongIntTuple tu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final IntLongIntTuple tuple, int elem return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeIntegerColumnTupleSource( + return new IntegerReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantLongColumnTupleSource.java index 7935b700799..c01afe885d2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeLongColumnTupleSource( + public IntegerReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final IntLongLongTuple createPreviousTuple(final long rowKey) { public final IntLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final IntLongLongTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final IntLongLongTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeLongColumnTupleSource( + return new IntegerReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantObjectColumnTupleSource.java index 636c23dc19d..f0643d69265 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeObjectColumnTupleSource( + public IntegerReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final IntLongObjectTuple createPreviousTuple(final long rowKey) { public final IntLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongObjectTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongObjectTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongObjectTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeObjectColumnTupleSource( + return new IntegerReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index e67987eabb8..fad6066d4d6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public IntegerReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final IntLongByteTuple createPreviousTuple(final long rowKey) { public final IntLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongByteTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final IntLongByteTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final IntLongByteTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new IntegerReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantReinterpretedInstantColumnTupleSource.java index b2c0738df4d..cd1ed32bfe6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public IntegerReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,8 +65,8 @@ public final IntLongLongTuple createPreviousTuple(final long rowKey) { public final IntLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongLongTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final IntLongLongTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final IntLongLongTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new IntegerReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantShortColumnTupleSource.java index 2846aba2ba5..4be825ddd48 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerReinterpretedInstantShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class IntegerReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerReinterpretedInstantShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerReinterpretedDateTimeShortColumnTupleSource( + public IntegerReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final IntLongShortTuple createPreviousTuple(final long rowKey) { public final IntLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new IntLongShortTuple( TypeUtils.unbox((Integer)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final IntLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final IntLongShortTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerReinterpretedDateTimeShortColumnTupleSource( + return new IntegerReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortInstantColumnTupleSource.java index 0b7713f5a4b..ccbbe11bfa3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public IntegerShortDateTimeColumnTupleSource( + public IntegerShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final IntShortLongTuple createTupleFromValues(@NotNull final Object... va return new IntShortLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final IntShortLongTuple createTupleFromReinterpretedValues(@NotNull final return new IntShortLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntShortLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final IntShortLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); IntChunk chunk1 = chunks[0].asIntChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new IntShortLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new IntegerShortDateTimeColumnTupleSource( + return new IntegerShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortReinterpretedInstantColumnTupleSource.java index 91db0bf8be6..6070627e072 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/IntegerShortReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.IntShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Integer, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class IntegerShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class IntegerShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link IntegerShortReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public IntegerShortReinterpretedDateTimeColumnTupleSource( + public IntegerShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final IntShortLongTuple createTupleFromValues(@NotNull final Object... va return new IntShortLongTuple( TypeUtils.unbox((Integer)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final IntShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final IntShortLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link IntegerShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new IntegerShortReinterpretedDateTimeColumnTupleSource( + return new IntegerShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanInstantColumnTupleSource.java index c942521e8f5..6bcc63a3bd2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public LongBooleanDateTimeColumnTupleSource( + public LongBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final LongByteLongTuple createTupleFromValues(@NotNull final Object... va return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteLongTuple(chunk1.get(ii), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new LongBooleanDateTimeColumnTupleSource( + return new LongBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanReinterpretedInstantColumnTupleSource.java index 888ccaefa6d..bd663fc06d3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongBooleanReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongBooleanReinterpretedDateTimeColumnTupleSource( + public LongBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final LongByteLongTuple createTupleFromValues(@NotNull final Object... va return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongBooleanReinterpretedDateTimeColumnTupleSource( + return new LongBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteInstantColumnTupleSource.java index 367f268c03a..66613a981ed 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public LongByteDateTimeColumnTupleSource( + public LongByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final LongByteLongTuple createTupleFromValues(@NotNull final Object... va return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new LongByteDateTimeColumnTupleSource( + return new LongByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteReinterpretedInstantColumnTupleSource.java index 7c98a0e91ef..f39adc604c6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongByteReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongByteReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongByteReinterpretedDateTimeColumnTupleSource( + public LongByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteLongTuple createTupleFromValues(@NotNull final Object... va return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongByteReinterpretedDateTimeColumnTupleSource( + return new LongByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterInstantColumnTupleSource.java index f21b89c65e9..b599c28c198 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public LongCharacterDateTimeColumnTupleSource( + public LongCharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final LongCharLongTuple createTupleFromValues(@NotNull final Object... va return new LongCharLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongCharLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongCharLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final LongCharLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongCharLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new LongCharacterDateTimeColumnTupleSource( + return new LongCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterReinterpretedInstantColumnTupleSource.java index 14af3f9e533..e68a7d756e1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongCharacterReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongCharacterReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongCharacterReinterpretedDateTimeColumnTupleSource( + public LongCharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongCharLongTuple createTupleFromValues(@NotNull final Object... va return new LongCharLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final LongCharLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongCharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongCharacterReinterpretedDateTimeColumnTupleSource( + return new LongCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleInstantColumnTupleSource.java index 29461443dfd..bfc6c5ebbce 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public LongDoubleDateTimeColumnTupleSource( + public LongDoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final LongDoubleLongTuple createTupleFromValues(@NotNull final Object... return new LongDoubleLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin return new LongDoubleLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final LongDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongDoubleLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new LongDoubleDateTimeColumnTupleSource( + return new LongDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleReinterpretedInstantColumnTupleSource.java index be081f4fa0b..fb6e9984974 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDoubleReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDoubleReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDoubleReinterpretedDateTimeColumnTupleSource( + public LongDoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongDoubleLongTuple createTupleFromValues(@NotNull final Object... return new LongDoubleLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final LongDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDoubleReinterpretedDateTimeColumnTupleSource( + return new LongDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatInstantColumnTupleSource.java index 9da116a7f45..1bdddbc87b8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public LongFloatDateTimeColumnTupleSource( + public LongFloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final LongFloatLongTuple createTupleFromValues(@NotNull final Object... v return new LongFloatLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina return new LongFloatLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final LongFloatLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongFloatLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new LongFloatDateTimeColumnTupleSource( + return new LongFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatReinterpretedInstantColumnTupleSource.java index ce7d91e4187..be164807b2f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongFloatReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongFloatReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongFloatReinterpretedDateTimeColumnTupleSource( + public LongFloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongFloatLongTuple createTupleFromValues(@NotNull final Object... v return new LongFloatLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final LongFloatLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongFloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongFloatReinterpretedDateTimeColumnTupleSource( + return new LongFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantBooleanColumnTupleSource.java index 02d229c0dd0..feba1e48ac0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class LongInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDateTimeBooleanColumnTupleSource( + public LongInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final LongLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeBooleanColumnTupleSource( + return new LongInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantByteColumnTupleSource.java index 24ea6ca2885..c6318dbea0e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantByteColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class LongInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDateTimeByteColumnTupleSource( + public LongInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final LongLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeByteColumnTupleSource( + return new LongInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantCharacterColumnTupleSource.java index f7f69b6f009..634a7396c9f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantCharacterColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class LongInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDateTimeCharacterColumnTupleSource( + public LongInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final LongLongCharTuple createPreviousTuple(final long rowKey) { public final LongLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongCharTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongCharTuple createTupleFromValues(@NotNull final Object... va public final LongLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongCharTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final LongLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final LongLongCharTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongCharTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongCharTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongCharTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeCharacterColumnTupleSource( + return new LongInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantColumnTupleSource.java index 9dbbc239bf5..3b016b36e58 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link LongInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; - public LongDateTimeColumnTupleSource( + public LongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -60,7 +60,7 @@ public final LongLongTuple createPreviousTuple(final long rowKey) { public final LongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -68,7 +68,7 @@ public final LongLongTuple createTupleFromValues(@NotNull final Object... values public final LongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final LongLongTuple tupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final LongLongTuple tuple, int elemen return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -103,7 +103,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongTuple tupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -111,15 +111,15 @@ public final Object exportElementReinterpreted(@NotNull final LongLongTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link LongDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link LongInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @@ -127,9 +127,9 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { - return new LongDateTimeColumnTupleSource( + return new LongInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantDoubleColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantDoubleColumnTupleSource.java index 11f850a627b..6c8f79498d4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantDoubleColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class LongInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDateTimeDoubleColumnTupleSource( + public LongInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final LongLongDoubleTuple createPreviousTuple(final long rowKey) { public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongDoubleTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... public final LongLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongDoubleTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final LongLongDoubleTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final LongLongDoubleTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongDoubleTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongDoubleTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongDoubleTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeDoubleColumnTupleSource( + return new LongInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantFloatColumnTupleSource.java index 91f4284bf5e..7459d0aaa2a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantFloatColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class LongInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDateTimeFloatColumnTupleSource( + public LongInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final LongLongFloatTuple createPreviousTuple(final long rowKey) { public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongFloatTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... v public final LongLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongFloatTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final LongLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final LongLongFloatTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongFloatTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongFloatTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongFloatTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeFloatColumnTupleSource( + return new LongInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantInstantColumnTupleSource.java index 8b05a0e55e3..6652ca43fdf 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public LongDateTimeDateTimeColumnTupleSource( + public LongInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,8 +65,8 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,8 +74,8 @@ public final LongLongLongTuple createTupleFromValues(@NotNull final Object... va public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -117,10 +117,10 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,16 +129,16 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeDateTimeColumnTupleSource( + return new LongInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantIntegerColumnTupleSource.java index 36bace55de8..b9a3d423b94 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantIntegerColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class LongInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDateTimeIntegerColumnTupleSource( + public LongInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final LongLongIntTuple createPreviousTuple(final long rowKey) { public final LongLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongIntTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongIntTuple createTupleFromValues(@NotNull final Object... val public final LongLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongIntTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final LongLongIntTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final LongLongIntTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongIntTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongIntTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongIntTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeIntegerColumnTupleSource( + return new LongInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantLongColumnTupleSource.java index 0936d289297..029306227b7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantLongColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class LongInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDateTimeLongColumnTupleSource( + public LongInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -74,7 +74,7 @@ public final LongLongLongTuple createTupleFromValues(@NotNull final Object... va public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeLongColumnTupleSource( + return new LongInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantObjectColumnTupleSource.java index 76cb2728a2c..93532fd687e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantObjectColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class LongInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDateTimeObjectColumnTupleSource( + public LongInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final LongLongObjectTuple createPreviousTuple(final long rowKey) { public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongObjectTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -74,7 +74,7 @@ public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... public final LongLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongObjectTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final LongLongObjectTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final LongLongObjectTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongObjectTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongObjectTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongObjectTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeObjectColumnTupleSource( + return new LongInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantReinterpretedBooleanColumnTupleSource.java index 53b4e07205e..77859cdc8bb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantReinterpretedBooleanColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class LongInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDateTimeReinterpretedBooleanColumnTupleSource( + public LongInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -76,7 +76,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeReinterpretedBooleanColumnTupleSource( + return new LongInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantReinterpretedInstantColumnTupleSource.java index 58ba16f94bb..dd21ffe1110 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantReinterpretedInstantColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDateTimeReinterpretedDateTimeColumnTupleSource( + public LongInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,8 +65,8 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,7 +74,7 @@ public final LongLongLongTuple createTupleFromValues(@NotNull final Object... va public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeReinterpretedDateTimeColumnTupleSource( + return new LongInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantShortColumnTupleSource.java index a56e9f611e9..deadfc2edb2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongInstantShortColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class LongInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongDateTimeShortColumnTupleSource( + public LongInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final LongLongShortTuple createPreviousTuple(final long rowKey) { public final LongLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongShortTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongShortTuple createTupleFromValues(@NotNull final Object... v public final LongLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongShortTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final LongLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final LongLongShortTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongShortTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongShortTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongShortTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongDateTimeShortColumnTupleSource( + return new LongInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerInstantColumnTupleSource.java index 59cdbf4b4e0..e417d57b6b8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public LongIntegerDateTimeColumnTupleSource( + public LongIntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final LongIntLongTuple createTupleFromValues(@NotNull final Object... val return new LongIntLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongIntLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongIntLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final LongIntLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntLongTuple t return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongIntLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new LongIntegerDateTimeColumnTupleSource( + return new LongIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerReinterpretedInstantColumnTupleSource.java index 1cd02c9faf9..541e0fe5d60 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongIntegerReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongIntegerReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongIntegerReinterpretedDateTimeColumnTupleSource( + public LongIntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongIntLongTuple createTupleFromValues(@NotNull final Object... val return new LongIntLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final LongIntLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongIntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongIntegerReinterpretedDateTimeColumnTupleSource( + return new LongIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongInstantColumnTupleSource.java index b3bf2f1614a..bc476abf454 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public LongLongDateTimeColumnTupleSource( + public LongLongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final LongLongLongTuple createTupleFromValues(@NotNull final Object... va return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new LongLongDateTimeColumnTupleSource( + return new LongLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongReinterpretedInstantColumnTupleSource.java index 52717d5e509..e6dbb46791d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongLongReinterpretedInstantColumnTupleSource.java @@ -10,28 +10,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongLongReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongLongReinterpretedDateTimeColumnTupleSource( + public LongLongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongLongLongTuple createTupleFromValues(@NotNull final Object... va return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -90,7 +90,7 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -136,7 +136,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongLongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -148,7 +148,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongLongReinterpretedDateTimeColumnTupleSource( + return new LongLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectInstantColumnTupleSource.java index 940d5cd9cb5..e73a24381ed 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public LongObjectDateTimeColumnTupleSource( + public LongObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final LongObjectLongTuple createTupleFromValues(@NotNull final Object... return new LongObjectLongTuple( TypeUtils.unbox((Long)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final LongObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin return new LongObjectLongTuple( TypeUtils.unbox((Long)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final LongObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectLongTupl return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongObjectLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new LongObjectDateTimeColumnTupleSource( + return new LongObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectReinterpretedInstantColumnTupleSource.java index 941fe633344..a8831af1523 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongObjectReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongObjectReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongObjectReinterpretedDateTimeColumnTupleSource( + public LongObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongObjectLongTuple createTupleFromValues(@NotNull final Object... return new LongObjectLongTuple( TypeUtils.unbox((Long)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final LongObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongObjectReinterpretedDateTimeColumnTupleSource( + return new LongObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanInstantColumnTupleSource.java index d7779db446e..3a63a44b976 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public LongReinterpretedBooleanDateTimeColumnTupleSource( + public LongReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final LongByteLongTuple createTupleFromValues(@NotNull final Object... va return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedBooleanDateTimeColumnTupleSource( + return new LongReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index 564d29e3167..f43dfd6112b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public LongReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final LongByteLongTuple createTupleFromValues(@NotNull final Object... va return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final LongByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new LongReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantBooleanColumnTupleSource.java index 1418d943c78..de3a77841a7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedDateTimeBooleanColumnTupleSource( + public LongReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final LongLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeBooleanColumnTupleSource( + return new LongReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantByteColumnTupleSource.java index 18abc8520d7..5eb0d1aca30 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantByteColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedDateTimeByteColumnTupleSource( + public LongReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final LongLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeByteColumnTupleSource( + return new LongReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantCharacterColumnTupleSource.java index f396c366077..ea2f4a00143 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantCharacterColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedDateTimeCharacterColumnTupleSource( + public LongReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongLongCharTuple createPreviousTuple(final long rowKey) { public final LongLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongCharTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final LongLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final LongLongCharTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeCharacterColumnTupleSource( + return new LongReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantColumnTupleSource.java index f05124cd5f9..76780cdfa66 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantColumnTupleSource.java @@ -10,27 +10,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public LongReinterpretedDateTimeColumnTupleSource( + public LongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -59,7 +59,7 @@ public final LongLongTuple createPreviousTuple(final long rowKey) { public final LongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -79,7 +79,7 @@ public final void exportElement(@NotNull final LongLongTuple tupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -91,7 +91,7 @@ public final Object exportElement(@NotNull final LongLongTuple tuple, int elemen return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -117,7 +117,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -128,7 +128,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new LongReinterpretedDateTimeColumnTupleSource( + return new LongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantDoubleColumnTupleSource.java index 2ea9677521e..12d087a52f3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantDoubleColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedDateTimeDoubleColumnTupleSource( + public LongReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongLongDoubleTuple createPreviousTuple(final long rowKey) { public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongDoubleTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final LongLongDoubleTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final LongLongDoubleTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeDoubleColumnTupleSource( + return new LongReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantFloatColumnTupleSource.java index 0d33e9eca3d..294974ae161 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantFloatColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedDateTimeFloatColumnTupleSource( + public LongReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongLongFloatTuple createPreviousTuple(final long rowKey) { public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongFloatTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final LongLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final LongLongFloatTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeFloatColumnTupleSource( + return new LongReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantInstantColumnTupleSource.java index 838a5bcb54d..90fd5bcac18 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public LongReinterpretedDateTimeDateTimeColumnTupleSource( + public LongReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,8 +65,8 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeDateTimeColumnTupleSource( + return new LongReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantIntegerColumnTupleSource.java index ed420b68255..341b4200fe3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantIntegerColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedDateTimeIntegerColumnTupleSource( + public LongReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongLongIntTuple createPreviousTuple(final long rowKey) { public final LongLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongIntTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final LongLongIntTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final LongLongIntTuple tuple, int ele return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeIntegerColumnTupleSource( + return new LongReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantLongColumnTupleSource.java index 211c5a20285..1ca10a8c814 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantLongColumnTupleSource.java @@ -10,28 +10,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedDateTimeLongColumnTupleSource( + public LongReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -86,7 +86,7 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -102,7 +102,7 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -136,7 +136,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -148,7 +148,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeLongColumnTupleSource( + return new LongReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantObjectColumnTupleSource.java index 0264d6ca537..5e8ff73a66a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantObjectColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedDateTimeObjectColumnTupleSource( + public LongReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongLongObjectTuple createPreviousTuple(final long rowKey) { public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongObjectTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final LongLongObjectTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final LongLongObjectTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeObjectColumnTupleSource( + return new LongReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index 78fd2599328..6fcc642af89 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public LongReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final LongLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final LongLongByteTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new LongReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantReinterpretedInstantColumnTupleSource.java index 31b2a92f86b..242c379fc02 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -10,28 +10,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public LongReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,8 +64,8 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -86,11 +86,11 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -102,10 +102,10 @@ public final Object exportElement(@NotNull final LongLongLongTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -136,7 +136,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -148,7 +148,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new LongReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantShortColumnTupleSource.java index 8d732ac746a..832f9178f89 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongReinterpretedInstantShortColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class LongReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongReinterpretedInstantShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongReinterpretedDateTimeShortColumnTupleSource( + public LongReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongLongShortTuple createPreviousTuple(final long rowKey) { public final LongLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongShortTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final LongLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final LongLongShortTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongReinterpretedDateTimeShortColumnTupleSource( + return new LongReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortInstantColumnTupleSource.java index 2dc7db156b6..41a16f37c68 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public LongShortDateTimeColumnTupleSource( + public LongShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final LongShortLongTuple createTupleFromValues(@NotNull final Object... v return new LongShortLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongShortLongTuple createTupleFromReinterpretedValues(@NotNull fina return new LongShortLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final LongShortLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongShortLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new LongShortDateTimeColumnTupleSource( + return new LongShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortReinterpretedInstantColumnTupleSource.java index edad6b028c0..14dc2c90e10 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/LongShortReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class LongShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class LongShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link LongShortReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public LongShortReinterpretedDateTimeColumnTupleSource( + public LongShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongShortLongTuple createTupleFromValues(@NotNull final Object... v return new LongShortLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final LongShortLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link LongShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new LongShortReinterpretedDateTimeColumnTupleSource( + return new LongShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanInstantColumnTupleSource.java index bcf76b35088..9f6c46ca36c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanInstantColumnTupleSource.java @@ -10,31 +10,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectByteLongTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ObjectBooleanDateTimeColumnTupleSource( + public ObjectBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,7 +65,7 @@ public final ObjectByteLongTuple createTupleFromValues(@NotNull final Object... return new ObjectByteLongTuple( values[0], BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,7 +74,7 @@ public final ObjectByteLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ObjectByteLongTuple( values[0], BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -90,7 +90,7 @@ public final void exportElement(@NotNull final ObjectByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ObjectByteLongTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectByteLongTupl return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,15 +129,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectByteLongTuple(chunk1.get(ii), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,9 +146,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ObjectBooleanDateTimeColumnTupleSource( + return new ObjectBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanReinterpretedInstantColumnTupleSource.java index 512c569ae73..2124f043740 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectBooleanReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectBooleanReinterpretedDateTimeColumnTupleSource( + public ObjectBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ObjectByteLongTuple createTupleFromValues(@NotNull final Object... return new ObjectByteLongTuple( values[0], BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ObjectByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ObjectByteLongTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectBooleanReinterpretedDateTimeColumnTupleSource( + return new ObjectBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteInstantColumnTupleSource.java index 1fb67d1e3f1..285fad05828 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ObjectByteDateTimeColumnTupleSource( + public ObjectByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final ObjectByteLongTuple createTupleFromValues(@NotNull final Object... return new ObjectByteLongTuple( values[0], TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ObjectByteLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ObjectByteLongTuple( values[0], TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ObjectByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ObjectByteLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectByteLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ObjectByteDateTimeColumnTupleSource( + return new ObjectByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteReinterpretedInstantColumnTupleSource.java index aa69c349ce7..6e517253d1c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectByteReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectByteReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectByteReinterpretedDateTimeColumnTupleSource( + public ObjectByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ObjectByteLongTuple createTupleFromValues(@NotNull final Object... return new ObjectByteLongTuple( values[0], TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ObjectByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ObjectByteLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectByteReinterpretedDateTimeColumnTupleSource( + return new ObjectByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterInstantColumnTupleSource.java index 66d55ebba93..32bc41586ae 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ObjectCharacterDateTimeColumnTupleSource( + public ObjectCharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final ObjectCharLongTuple createTupleFromValues(@NotNull final Object... return new ObjectCharLongTuple( values[0], TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ObjectCharLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ObjectCharLongTuple( values[0], TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ObjectCharLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ObjectCharLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectCharLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectCharLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ObjectCharacterDateTimeColumnTupleSource( + return new ObjectCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterReinterpretedInstantColumnTupleSource.java index e8c26457b45..aad73e807d7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectCharacterReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectCharacterReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectCharacterReinterpretedDateTimeColumnTupleSource( + public ObjectCharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ObjectCharLongTuple createTupleFromValues(@NotNull final Object... return new ObjectCharLongTuple( values[0], TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ObjectCharLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ObjectCharLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectCharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectCharacterReinterpretedDateTimeColumnTupleSource( + return new ObjectCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleInstantColumnTupleSource.java index 94b280ad2fe..a8771fa9e4c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ObjectDoubleDateTimeColumnTupleSource( + public ObjectDoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final ObjectDoubleLongTuple createTupleFromValues(@NotNull final Object.. return new ObjectDoubleLongTuple( values[0], TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ObjectDoubleLongTuple createTupleFromReinterpretedValues(@NotNull f return new ObjectDoubleLongTuple( values[0], TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ObjectDoubleLongTu return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ObjectDoubleLongTuple tuple, in return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectDoubleLongTu return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectDoubleLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ObjectDoubleDateTimeColumnTupleSource( + return new ObjectDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleReinterpretedInstantColumnTupleSource.java index cc5e8fd4e49..2b3cb4ca25f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDoubleReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDoubleReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDoubleReinterpretedDateTimeColumnTupleSource( + public ObjectDoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ObjectDoubleLongTuple createTupleFromValues(@NotNull final Object.. return new ObjectDoubleLongTuple( values[0], TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ObjectDoubleLongTu return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ObjectDoubleLongTuple tuple, in return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDoubleReinterpretedDateTimeColumnTupleSource( + return new ObjectDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatInstantColumnTupleSource.java index 94bdc354253..09683014b14 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ObjectFloatDateTimeColumnTupleSource( + public ObjectFloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final ObjectFloatLongTuple createTupleFromValues(@NotNull final Object... return new ObjectFloatLongTuple( values[0], TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ObjectFloatLongTuple createTupleFromReinterpretedValues(@NotNull fi return new ObjectFloatLongTuple( values[0], TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ObjectFloatLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ObjectFloatLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectFloatLongTup return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectFloatLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ObjectFloatDateTimeColumnTupleSource( + return new ObjectFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatReinterpretedInstantColumnTupleSource.java index 483bb1daccc..fd9e8b6b854 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectFloatReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectFloatReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectFloatReinterpretedDateTimeColumnTupleSource( + public ObjectFloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ObjectFloatLongTuple createTupleFromValues(@NotNull final Object... return new ObjectFloatLongTuple( values[0], TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ObjectFloatLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ObjectFloatLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectFloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectFloatReinterpretedDateTimeColumnTupleSource( + return new ObjectFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantBooleanColumnTupleSource.java index bf57fa2bfdd..bb93f39b706 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantBooleanColumnTupleSource.java @@ -10,30 +10,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongByteTuple; import io.deephaven.util.BooleanUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDateTimeBooleanColumnTupleSource( + public ObjectInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,7 +64,7 @@ public final ObjectLongByteTuple createPreviousTuple(final long rowKey) { public final ObjectLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongByteTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -73,7 +73,7 @@ public final ObjectLongByteTuple createTupleFromValues(@NotNull final Object... public final ObjectLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongByteTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -86,7 +86,7 @@ public final void exportElement(@NotNull final ObjectLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -102,7 +102,7 @@ public final Object exportElement(@NotNull final ObjectLongByteTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -116,7 +116,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongByteTupl return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -128,7 +128,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongByteTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -136,8 +136,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -145,10 +145,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeBooleanColumnTupleSource( + return new ObjectInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantByteColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantByteColumnTupleSource.java index bf0f10d83aa..f262d12414c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantByteColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDateTimeByteColumnTupleSource( + public ObjectInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final ObjectLongByteTuple createPreviousTuple(final long rowKey) { public final ObjectLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongByteTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -74,7 +74,7 @@ public final ObjectLongByteTuple createTupleFromValues(@NotNull final Object... public final ObjectLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongByteTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ObjectLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ObjectLongByteTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongByteTupl return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongByteTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeByteColumnTupleSource( + return new ObjectInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantCharacterColumnTupleSource.java index 8cac4ea5255..b4574d3e4f5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantCharacterColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDateTimeCharacterColumnTupleSource( + public ObjectInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final ObjectLongCharTuple createPreviousTuple(final long rowKey) { public final ObjectLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongCharTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -74,7 +74,7 @@ public final ObjectLongCharTuple createTupleFromValues(@NotNull final Object... public final ObjectLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongCharTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ObjectLongCharTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ObjectLongCharTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongCharTupl return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongCharTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongCharTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeCharacterColumnTupleSource( + return new ObjectInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantColumnTupleSource.java similarity index 80% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantColumnTupleSource.java index 8b54c091f39..1bed42ffd52 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantColumnTupleSource.java @@ -10,28 +10,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongTuple; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; - public ObjectDateTimeColumnTupleSource( + public ObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -58,7 +58,7 @@ public final ObjectLongTuple createPreviousTuple(final long rowKey) { public final ObjectLongTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -66,7 +66,7 @@ public final ObjectLongTuple createTupleFromValues(@NotNull final Object... valu public final ObjectLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -78,7 +78,7 @@ public final void exportElement(@NotNull final ObjectLongTuple tu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -90,7 +90,7 @@ public final Object exportElement(@NotNull final ObjectLongTuple tuple, int elem return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -101,7 +101,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongTuple tu return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -109,15 +109,15 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongTuple tu protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ObjectInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @@ -125,9 +125,9 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { - return new ObjectDateTimeColumnTupleSource( + return new ObjectInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantDoubleColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantDoubleColumnTupleSource.java index 5a6bb67e7df..7b69d4039b0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantDoubleColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDateTimeDoubleColumnTupleSource( + public ObjectInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final ObjectLongDoubleTuple createPreviousTuple(final long rowKey) { public final ObjectLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongDoubleTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -74,7 +74,7 @@ public final ObjectLongDoubleTuple createTupleFromValues(@NotNull final Object.. public final ObjectLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongDoubleTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ObjectLongDoubleTu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ObjectLongDoubleTuple tuple, in return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongDoubleTu return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongDoubleTu protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongDoubleTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeDoubleColumnTupleSource( + return new ObjectInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantFloatColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantFloatColumnTupleSource.java index c25fdbd86bc..3510b6537e5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantFloatColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDateTimeFloatColumnTupleSource( + public ObjectInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final ObjectLongFloatTuple createPreviousTuple(final long rowKey) { public final ObjectLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongFloatTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -74,7 +74,7 @@ public final ObjectLongFloatTuple createTupleFromValues(@NotNull final Object... public final ObjectLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongFloatTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ObjectLongFloatTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ObjectLongFloatTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongFloatTup return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongFloatTup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongFloatTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeFloatColumnTupleSource( + return new ObjectInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantInstantColumnTupleSource.java similarity index 73% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantInstantColumnTupleSource.java index 50b0c4c6e83..9d28a7948cf 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantInstantColumnTupleSource.java @@ -10,30 +10,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongLongTuple; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public ObjectDateTimeDateTimeColumnTupleSource( + public ObjectInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -63,8 +63,8 @@ public final ObjectLongLongTuple createPreviousTuple(final long rowKey) { public final ObjectLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -72,8 +72,8 @@ public final ObjectLongLongTuple createTupleFromValues(@NotNull final Object... public final ObjectLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -85,11 +85,11 @@ public final void exportElement(@NotNull final ObjectLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,10 +101,10 @@ public final Object exportElement(@NotNull final ObjectLongLongTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -115,10 +115,10 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongLongTupl return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -127,16 +127,16 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongLongTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -144,10 +144,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeDateTimeColumnTupleSource( + return new ObjectInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantIntegerColumnTupleSource.java index 266c4cc0995..acb457d7628 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantIntegerColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDateTimeIntegerColumnTupleSource( + public ObjectInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final ObjectLongIntTuple createPreviousTuple(final long rowKey) { public final ObjectLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongIntTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -74,7 +74,7 @@ public final ObjectLongIntTuple createTupleFromValues(@NotNull final Object... v public final ObjectLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongIntTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ObjectLongIntTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ObjectLongIntTuple tuple, int e return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongIntTuple return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongIntTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongIntTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeIntegerColumnTupleSource( + return new ObjectInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantLongColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantLongColumnTupleSource.java index c3e64c521f7..43f90ead844 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantLongColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDateTimeLongColumnTupleSource( + public ObjectInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final ObjectLongLongTuple createPreviousTuple(final long rowKey) { public final ObjectLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -74,7 +74,7 @@ public final ObjectLongLongTuple createTupleFromValues(@NotNull final Object... public final ObjectLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ObjectLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ObjectLongLongTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongLongTupl return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongLongTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeLongColumnTupleSource( + return new ObjectInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantObjectColumnTupleSource.java index 2185a4066bc..91b227e376a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantObjectColumnTupleSource.java @@ -10,29 +10,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongObjectTuple; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDateTimeObjectColumnTupleSource( + public ObjectInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -63,7 +63,7 @@ public final ObjectLongObjectTuple createPreviousTuple(final long rowKey) { public final ObjectLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongObjectTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -72,7 +72,7 @@ public final ObjectLongObjectTuple createTupleFromValues(@NotNull final Object.. public final ObjectLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongObjectTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -85,7 +85,7 @@ public final void exportElement(@NotNull final ObjectLongObjectTu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,7 +101,7 @@ public final Object exportElement(@NotNull final ObjectLongObjectTuple tuple, in return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -115,7 +115,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongObjectTu return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -127,7 +127,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongObjectTu protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongObjectTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -135,8 +135,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -144,10 +144,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeObjectColumnTupleSource( + return new ObjectInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantReinterpretedBooleanColumnTupleSource.java index e6f4eb91ad8..34e2e52f052 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantReinterpretedBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDateTimeReinterpretedBooleanColumnTupleSource( + public ObjectInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ObjectLongByteTuple createPreviousTuple(final long rowKey) { public final ObjectLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongByteTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final ObjectLongByteTuple createTupleFromValues(@NotNull final Object... public final ObjectLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongByteTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ObjectLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ObjectLongByteTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongByteTupl return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongByteTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeReinterpretedBooleanColumnTupleSource( + return new ObjectInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantReinterpretedInstantColumnTupleSource.java index 1d8ace3bb83..74d97c6bd86 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantReinterpretedInstantColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDateTimeReinterpretedDateTimeColumnTupleSource( + public ObjectInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,8 +65,8 @@ public final ObjectLongLongTuple createPreviousTuple(final long rowKey) { public final ObjectLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,7 +74,7 @@ public final ObjectLongLongTuple createTupleFromValues(@NotNull final Object... public final ObjectLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final ObjectLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final ObjectLongLongTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongLongTupl return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongLongTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeReinterpretedDateTimeColumnTupleSource( + return new ObjectInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantShortColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantShortColumnTupleSource.java index 1f25552a702..1abb660a5ea 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectInstantShortColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class ObjectInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectDateTimeShortColumnTupleSource( + public ObjectInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final ObjectLongShortTuple createPreviousTuple(final long rowKey) { public final ObjectLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongShortTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -74,7 +74,7 @@ public final ObjectLongShortTuple createTupleFromValues(@NotNull final Object... public final ObjectLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ObjectLongShortTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ObjectLongShortTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ObjectLongShortTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongShortTup return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongShortTup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongShortTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectDateTimeShortColumnTupleSource( + return new ObjectInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerInstantColumnTupleSource.java index 0feba521399..04c5ab0bf96 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ObjectIntegerDateTimeColumnTupleSource( + public ObjectIntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final ObjectIntLongTuple createTupleFromValues(@NotNull final Object... v return new ObjectIntLongTuple( values[0], TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ObjectIntLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ObjectIntLongTuple( values[0], TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ObjectIntLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ObjectIntLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectIntLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectIntLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ObjectIntegerDateTimeColumnTupleSource( + return new ObjectIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerReinterpretedInstantColumnTupleSource.java index 17101493597..7aa8b761e43 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectIntegerReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectIntegerReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectIntegerReinterpretedDateTimeColumnTupleSource( + public ObjectIntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ObjectIntLongTuple createTupleFromValues(@NotNull final Object... v return new ObjectIntLongTuple( values[0], TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ObjectIntLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ObjectIntLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectIntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectIntegerReinterpretedDateTimeColumnTupleSource( + return new ObjectIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongInstantColumnTupleSource.java index cba81a0d20f..878aa29e264 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ObjectLongDateTimeColumnTupleSource( + public ObjectLongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final ObjectLongLongTuple createTupleFromValues(@NotNull final Object... return new ObjectLongLongTuple( values[0], TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ObjectLongLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ObjectLongLongTuple( values[0], TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ObjectLongLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ObjectLongLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ObjectLongDateTimeColumnTupleSource( + return new ObjectLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongReinterpretedInstantColumnTupleSource.java index 8231838368d..7296de9d23e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectLongReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectLongReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectLongReinterpretedDateTimeColumnTupleSource( + public ObjectLongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ObjectLongLongTuple createTupleFromValues(@NotNull final Object... return new ObjectLongLongTuple( values[0], TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ObjectLongLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ObjectLongLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectLongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectLongReinterpretedDateTimeColumnTupleSource( + return new ObjectLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectInstantColumnTupleSource.java index 9f8da48bdc7..29e2d013f83 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectInstantColumnTupleSource.java @@ -10,30 +10,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectObjectLongTuple; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ObjectObjectDateTimeColumnTupleSource( + public ObjectObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,7 +64,7 @@ public final ObjectObjectLongTuple createTupleFromValues(@NotNull final Object.. return new ObjectObjectLongTuple( values[0], values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -73,7 +73,7 @@ public final ObjectObjectLongTuple createTupleFromReinterpretedValues(@NotNull f return new ObjectObjectLongTuple( values[0], values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ObjectObjectLongTu return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ObjectObjectLongTuple tuple, in return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectObjectLongTu return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -128,15 +128,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectObjectLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -145,9 +145,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ObjectObjectDateTimeColumnTupleSource( + return new ObjectObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectReinterpretedInstantColumnTupleSource.java index 2069210faf4..7cbd1790bea 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectObjectReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectObjectReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectObjectReinterpretedDateTimeColumnTupleSource( + public ObjectObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ObjectObjectLongTuple createTupleFromValues(@NotNull final Object.. return new ObjectObjectLongTuple( values[0], values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ObjectObjectLongTu return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ObjectObjectLongTuple tuple, in return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectObjectReinterpretedDateTimeColumnTupleSource( + return new ObjectObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanInstantColumnTupleSource.java index df3ab428296..46786b855d0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ObjectReinterpretedBooleanDateTimeColumnTupleSource( + public ObjectReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ObjectByteLongTuple createTupleFromValues(@NotNull final Object... return new ObjectByteLongTuple( values[0], BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ObjectByteLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ObjectByteLongTuple( values[0], TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ObjectByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ObjectByteLongTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectByteLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedBooleanDateTimeColumnTupleSource( + return new ObjectReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index 15fd59b009e..23ae70bb303 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public ObjectReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ObjectByteLongTuple createTupleFromValues(@NotNull final Object... return new ObjectByteLongTuple( values[0], BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ObjectByteLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ObjectByteLongTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new ObjectReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantBooleanColumnTupleSource.java index 789a10e5b94..51037236229 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeBooleanColumnTupleSource( + public ObjectReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ObjectLongByteTuple createPreviousTuple(final long rowKey) { public final ObjectLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongByteTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ObjectLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ObjectLongByteTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeBooleanColumnTupleSource( + return new ObjectReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantByteColumnTupleSource.java index fc53554e947..643038886e9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeByteColumnTupleSource( + public ObjectReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ObjectLongByteTuple createPreviousTuple(final long rowKey) { public final ObjectLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongByteTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ObjectLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ObjectLongByteTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeByteColumnTupleSource( + return new ObjectReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantCharacterColumnTupleSource.java index 1e13cade930..e0997e5489f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeCharacterColumnTupleSource( + public ObjectReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ObjectLongCharTuple createPreviousTuple(final long rowKey) { public final ObjectLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongCharTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ObjectLongCharTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ObjectLongCharTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeCharacterColumnTupleSource( + return new ObjectReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantColumnTupleSource.java index b97dbbaa5cd..bf55022f567 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ObjectReinterpretedDateTimeColumnTupleSource( + public ObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -60,7 +60,7 @@ public final ObjectLongTuple createPreviousTuple(final long rowKey) { public final ObjectLongTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final ObjectLongTuple tu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final ObjectLongTuple tuple, int elem return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ObjectReinterpretedDateTimeColumnTupleSource( + return new ObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantDoubleColumnTupleSource.java index 481677d4698..c3141e35130 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeDoubleColumnTupleSource( + public ObjectReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ObjectLongDoubleTuple createPreviousTuple(final long rowKey) { public final ObjectLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongDoubleTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ObjectLongDoubleTu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ObjectLongDoubleTuple tuple, in return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeDoubleColumnTupleSource( + return new ObjectReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantFloatColumnTupleSource.java index 6b39d9d11a9..9d41be1c611 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeFloatColumnTupleSource( + public ObjectReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ObjectLongFloatTuple createPreviousTuple(final long rowKey) { public final ObjectLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongFloatTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ObjectLongFloatTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ObjectLongFloatTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeFloatColumnTupleSource( + return new ObjectReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantInstantColumnTupleSource.java index 5d9334f8e49..fb3b254d91b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeDateTimeColumnTupleSource( + public ObjectReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,8 +65,8 @@ public final ObjectLongLongTuple createPreviousTuple(final long rowKey) { public final ObjectLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ObjectLongLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ObjectLongLongTuple( values[0], TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final ObjectLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final ObjectLongLongTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectLongLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeDateTimeColumnTupleSource( + return new ObjectReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantIntegerColumnTupleSource.java index 06796b24ac2..fbef1001333 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeIntegerColumnTupleSource( + public ObjectReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ObjectLongIntTuple createPreviousTuple(final long rowKey) { public final ObjectLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongIntTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ObjectLongIntTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ObjectLongIntTuple tuple, int e return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeIntegerColumnTupleSource( + return new ObjectReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantLongColumnTupleSource.java index b0f69261ad4..e7b8e7a3dda 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeLongColumnTupleSource( + public ObjectReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final ObjectLongLongTuple createPreviousTuple(final long rowKey) { public final ObjectLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ObjectLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ObjectLongLongTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeLongColumnTupleSource( + return new ObjectReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantObjectColumnTupleSource.java index 25af9e6131d..6600ec16022 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantObjectColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeObjectColumnTupleSource( + public ObjectReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final ObjectLongObjectTuple createPreviousTuple(final long rowKey) { public final ObjectLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongObjectTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ObjectLongObjectTu return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ObjectLongObjectTuple tuple, in return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeObjectColumnTupleSource( + return new ObjectReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index 3b5c3bac457..6e6fc63dd21 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public ObjectReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ObjectLongByteTuple createPreviousTuple(final long rowKey) { public final ObjectLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongByteTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ObjectLongByteTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ObjectLongByteTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new ObjectReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantReinterpretedInstantColumnTupleSource.java index cc9ff8a811b..c02502c4c8a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public ObjectReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,8 +65,8 @@ public final ObjectLongLongTuple createPreviousTuple(final long rowKey) { public final ObjectLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongLongTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final ObjectLongLongTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final ObjectLongLongTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new ObjectReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantShortColumnTupleSource.java index e426fd52739..f7d5bc0eda8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectReinterpretedInstantShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class ObjectReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectReinterpretedInstantShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectReinterpretedDateTimeShortColumnTupleSource( + public ObjectReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ObjectLongShortTuple createPreviousTuple(final long rowKey) { public final ObjectLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new ObjectLongShortTuple( values[0], - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ObjectLongShortTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ObjectLongShortTuple tuple, int return tuple.getFirstElement(); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectReinterpretedDateTimeShortColumnTupleSource( + return new ObjectReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortInstantColumnTupleSource.java index 035098f6dec..77202879ae3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ObjectShortDateTimeColumnTupleSource( + public ObjectShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final ObjectShortLongTuple createTupleFromValues(@NotNull final Object... return new ObjectShortLongTuple( values[0], TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ObjectShortLongTuple createTupleFromReinterpretedValues(@NotNull fi return new ObjectShortLongTuple( values[0], TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ObjectShortLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ObjectShortLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ObjectShortLongTup return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ObjectChunk chunk1 = chunks[0].asObjectChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ObjectShortLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ObjectShortDateTimeColumnTupleSource( + return new ObjectShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortReinterpretedInstantColumnTupleSource.java index 698051eb0ac..50199967f18 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ObjectShortReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ObjectShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Object, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ObjectShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ObjectShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ObjectShortReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ObjectShortReinterpretedDateTimeColumnTupleSource( + public ObjectShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ObjectShortLongTuple createTupleFromValues(@NotNull final Object... return new ObjectShortLongTuple( values[0], TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ObjectShortLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ObjectShortLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ObjectShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ObjectShortReinterpretedDateTimeColumnTupleSource( + return new ObjectShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanInstantColumnTupleSource.java index 88d6ffb54b2..d429a5f3355 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedBooleanBooleanDateTimeColumnTupleSource( + public ReinterpretedBooleanBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteByteLongTuple return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteByteLongTuple(chunk1.get(ii), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanBooleanDateTimeColumnTupleSource( + return new ReinterpretedBooleanBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanReinterpretedInstantColumnTupleSource.java index 8aa1b5477ce..fc64f268d9e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanBooleanReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanBooleanReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteInstantColumnTupleSource.java index db194be0b52..7300804beb9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedBooleanByteDateTimeColumnTupleSource( + public ReinterpretedBooleanByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanByteDateTimeColumnTupleSource( + return new ReinterpretedBooleanByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteReinterpretedInstantColumnTupleSource.java index 2a3e224ce1a..e6440a1025a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanByteReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanByteReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanByteReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanByteReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterInstantColumnTupleSource.java index 3a19138f47e..6af014f8a39 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteCharLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedBooleanCharacterDateTimeColumnTupleSource( + public ReinterpretedBooleanCharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final ByteCharLongTuple createTupleFromValues(@NotNull final Object... va return new ByteCharLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final ByteCharLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteCharLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteCharLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteCharLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteCharLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanCharacterDateTimeColumnTupleSource( + return new ReinterpretedBooleanCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterReinterpretedInstantColumnTupleSource.java index 56f4017e558..e261cb20841 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanCharacterReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteCharLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanCharacterReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanCharacterReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanCharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteCharLongTuple createTupleFromValues(@NotNull final Object... va return new ByteCharLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteCharLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanCharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanCharacterReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleInstantColumnTupleSource.java index 4ff3e79082f..a69f5fc7acc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteDoubleLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedBooleanDoubleDateTimeColumnTupleSource( + public ReinterpretedBooleanDoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final ByteDoubleLongTuple createTupleFromValues(@NotNull final Object... return new ByteDoubleLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final ByteDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ByteDoubleLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteDoubleLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteDoubleLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDoubleDateTimeColumnTupleSource( + return new ReinterpretedBooleanDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleReinterpretedInstantColumnTupleSource.java index ae8ff50db10..8c327cc7cb1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDoubleReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteDoubleLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDoubleReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDoubleReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanDoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteDoubleLongTuple createTupleFromValues(@NotNull final Object... return new ByteDoubleLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDoubleReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatInstantColumnTupleSource.java index dcd6727e088..316d2bb7e86 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteFloatLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedBooleanFloatDateTimeColumnTupleSource( + public ReinterpretedBooleanFloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final ByteFloatLongTuple createTupleFromValues(@NotNull final Object... v return new ByteFloatLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final ByteFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ByteFloatLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteFloatLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteFloatLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteFloatLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanFloatDateTimeColumnTupleSource( + return new ReinterpretedBooleanFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatReinterpretedInstantColumnTupleSource.java index c858dbc0481..10874f66d4e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanFloatReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteFloatLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanFloatReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanFloatReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanFloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteFloatLongTuple createTupleFromValues(@NotNull final Object... v return new ByteFloatLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteFloatLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanFloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanFloatReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantBooleanColumnTupleSource.java index b03b96aaa5e..152150c794f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeBooleanColumnTupleSource( + public ReinterpretedBooleanInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... va public final ByteLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeBooleanColumnTupleSource( + return new ReinterpretedBooleanInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantByteColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantByteColumnTupleSource.java index 8e3b8208117..47853c7bcd8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantByteColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeByteColumnTupleSource( + public ReinterpretedBooleanInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... va public final ByteLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeByteColumnTupleSource( + return new ReinterpretedBooleanInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantCharacterColumnTupleSource.java index e513fec0549..f92d04127b6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantCharacterColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongCharTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeCharacterColumnTupleSource( + public ReinterpretedBooleanInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final ByteLongCharTuple createPreviousTuple(final long rowKey) { public final ByteLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongCharTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteLongCharTuple createTupleFromValues(@NotNull final Object... va public final ByteLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongCharTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongCharTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongCharTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongCharTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongCharTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeCharacterColumnTupleSource( + return new ReinterpretedBooleanInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantColumnTupleSource.java similarity index 80% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantColumnTupleSource.java index 6d5a1d6de1a..894248d6e89 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; - public ReinterpretedBooleanDateTimeColumnTupleSource( + public ReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -61,7 +61,7 @@ public final ByteLongTuple createPreviousTuple(final long rowKey) { public final ByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -69,7 +69,7 @@ public final ByteLongTuple createTupleFromValues(@NotNull final Object... values public final ByteLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -81,7 +81,7 @@ public final void exportElement(@NotNull final ByteLongTuple tupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -93,7 +93,7 @@ public final Object exportElement(@NotNull final ByteLongTuple tuple, int elemen return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -104,7 +104,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongTuple tupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -112,15 +112,15 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @@ -128,9 +128,9 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedBooleanDateTimeColumnTupleSource( + return new ReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantDoubleColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantDoubleColumnTupleSource.java index 6a42ef819b8..ccb8ed10225 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantDoubleColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongDoubleTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeDoubleColumnTupleSource( + public ReinterpretedBooleanInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final ByteLongDoubleTuple createPreviousTuple(final long rowKey) { public final ByteLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongDoubleTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteLongDoubleTuple createTupleFromValues(@NotNull final Object... public final ByteLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongDoubleTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongDoubleTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongDoubleTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongDoubleTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongDoubleTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongDoubleTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeDoubleColumnTupleSource( + return new ReinterpretedBooleanInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantFloatColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantFloatColumnTupleSource.java index 19b7b9e4500..491161ffba8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantFloatColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongFloatTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeFloatColumnTupleSource( + public ReinterpretedBooleanInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final ByteLongFloatTuple createPreviousTuple(final long rowKey) { public final ByteLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongFloatTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteLongFloatTuple createTupleFromValues(@NotNull final Object... v public final ByteLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongFloatTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongFloatTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongFloatTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongFloatTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongFloatTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeFloatColumnTupleSource( + return new ReinterpretedBooleanInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantInstantColumnTupleSource.java index 4c9cd1bcbdc..ac50b3ccf5c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeDateTimeColumnTupleSource( + public ReinterpretedBooleanInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,8 +66,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,8 +75,8 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -118,10 +118,10 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,16 +130,16 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeDateTimeColumnTupleSource( + return new ReinterpretedBooleanInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantIntegerColumnTupleSource.java index 4b921b06b65..764b6a419a3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantIntegerColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongIntTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeIntegerColumnTupleSource( + public ReinterpretedBooleanInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final ByteLongIntTuple createPreviousTuple(final long rowKey) { public final ByteLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongIntTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteLongIntTuple createTupleFromValues(@NotNull final Object... val public final ByteLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongIntTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongIntTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongIntTuple tuple, int ele return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongIntTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongIntTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongIntTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeIntegerColumnTupleSource( + return new ReinterpretedBooleanInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantLongColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantLongColumnTupleSource.java index fe519af8f99..af888df9df8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantLongColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeLongColumnTupleSource( + public ReinterpretedBooleanInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeLongColumnTupleSource( + return new ReinterpretedBooleanInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantObjectColumnTupleSource.java index f5e2a7f0d14..55a81d28677 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantObjectColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongObjectTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeObjectColumnTupleSource( + public ReinterpretedBooleanInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongObjectTuple createPreviousTuple(final long rowKey) { public final ByteLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongObjectTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -75,7 +75,7 @@ public final ByteLongObjectTuple createTupleFromValues(@NotNull final Object... public final ByteLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongObjectTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongObjectTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongObjectTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongObjectTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongObjectTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongObjectTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeObjectColumnTupleSource( + return new ReinterpretedBooleanInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantReinterpretedBooleanColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantReinterpretedBooleanColumnTupleSource.java index 101b2daf0cd..a1a40dfd9b7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantReinterpretedBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeReinterpretedBooleanColumnTupleSource( + public ReinterpretedBooleanInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... va public final ByteLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongByteTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeReinterpretedBooleanColumnTupleSource( + return new ReinterpretedBooleanInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantReinterpretedInstantColumnTupleSource.java similarity index 78% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantReinterpretedInstantColumnTupleSource.java index 342bd57f611..b1f383f5cec 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantReinterpretedInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,8 +67,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -89,11 +89,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -105,10 +105,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantShortColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantShortColumnTupleSource.java index a9d1fd74976..b195d0d63dc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanInstantShortColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongShortTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanDateTimeShortColumnTupleSource( + public ReinterpretedBooleanInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final ByteLongShortTuple createPreviousTuple(final long rowKey) { public final ByteLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongShortTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteLongShortTuple createTupleFromValues(@NotNull final Object... v public final ByteLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ByteLongShortTuple( TypeUtils.unbox((Byte)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongShortTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongShortTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongShortTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongShortTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanDateTimeShortColumnTupleSource( + return new ReinterpretedBooleanInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerInstantColumnTupleSource.java index 6bf97b9f79f..0ca1f8b3f4e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteIntLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedBooleanIntegerDateTimeColumnTupleSource( + public ReinterpretedBooleanIntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final ByteIntLongTuple createTupleFromValues(@NotNull final Object... val return new ByteIntLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final ByteIntLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteIntLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteIntLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteIntLongTuple t return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteIntLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanIntegerDateTimeColumnTupleSource( + return new ReinterpretedBooleanIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerReinterpretedInstantColumnTupleSource.java index 5bf0eb4d367..1f0db3ea805 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanIntegerReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteIntLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanIntegerReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanIntegerReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanIntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteIntLongTuple createTupleFromValues(@NotNull final Object... val return new ByteIntLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteIntLongTuple tuple, int ele return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanIntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanIntegerReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongInstantColumnTupleSource.java index 5553d1b655e..ae6473887a0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedBooleanLongDateTimeColumnTupleSource( + public ReinterpretedBooleanLongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanLongDateTimeColumnTupleSource( + return new ReinterpretedBooleanLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongReinterpretedInstantColumnTupleSource.java index 087e9e7ef98..cc45376db0c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanLongReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanLongReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanLongReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanLongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... va return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanLongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanLongReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectInstantColumnTupleSource.java index b7ffd161323..2f0d4d09a9d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteObjectLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedBooleanObjectDateTimeColumnTupleSource( + public ReinterpretedBooleanObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteObjectLongTuple createTupleFromValues(@NotNull final Object... return new ByteObjectLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ByteObjectLongTuple( TypeUtils.unbox((Byte)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteObjectLongTupl return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteObjectLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanObjectDateTimeColumnTupleSource( + return new ReinterpretedBooleanObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectReinterpretedInstantColumnTupleSource.java index 7be7edc04c1..f1e7fb12d4e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanObjectReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteObjectLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanObjectReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanObjectReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteObjectLongTuple createTupleFromValues(@NotNull final Object... return new ByteObjectLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanObjectReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanInstantColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanInstantColumnTupleSource.java index 3f3b262e3a9..42a4da61303 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedBooleanDateTimeColumnTupleSource( + public ReinterpretedBooleanReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ByteByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteByteLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedBooleanDateTimeColumnTupleSource( + return new ReinterpretedBooleanReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 92% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index c2915e4e684..0144bdaab94 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteByteLongTuple createTupleFromValues(@NotNull final Object... va return new ByteByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ByteByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ByteByteLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantBooleanColumnTupleSource.java index d815b0bdd42..15a450bc33d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeBooleanColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeBooleanColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantByteColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantByteColumnTupleSource.java index a7150904ee4..72b94b1633e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantByteColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeByteColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeByteColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantCharacterColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantCharacterColumnTupleSource.java index 9105c4834bd..8b6d4cdfe27 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantCharacterColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongCharTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeCharacterColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongCharTuple createPreviousTuple(final long rowKey) { public final ByteLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongCharTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongCharTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeCharacterColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 88% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index 258a33b31b3..b6c2816ef06 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -61,7 +61,7 @@ public final ByteLongTuple createPreviousTuple(final long rowKey) { public final ByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -81,7 +81,7 @@ public final void exportElement(@NotNull final ByteLongTuple tupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -93,7 +93,7 @@ public final Object exportElement(@NotNull final ByteLongTuple tuple, int elemen return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -119,7 +119,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -130,7 +130,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantDoubleColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantDoubleColumnTupleSource.java index d479a0b34ca..59fcc552d54 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantDoubleColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongDoubleTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeDoubleColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongDoubleTuple createPreviousTuple(final long rowKey) { public final ByteLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongDoubleTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongDoubleTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongDoubleTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeDoubleColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantFloatColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantFloatColumnTupleSource.java index 6e086953543..c4fa8468e5b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantFloatColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongFloatTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeFloatColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongFloatTuple createPreviousTuple(final long rowKey) { public final ByteLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongFloatTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongFloatTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongFloatTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeFloatColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantInstantColumnTupleSource.java similarity index 78% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantInstantColumnTupleSource.java index 7e84eb03349..b4822e61712 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeDateTimeColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,8 +67,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final ByteLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new ByteLongLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -89,11 +89,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -105,10 +105,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeDateTimeColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantIntegerColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantIntegerColumnTupleSource.java index e9db8a5c58c..13efe198494 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantIntegerColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongIntTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeIntegerColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongIntTuple createPreviousTuple(final long rowKey) { public final ByteLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongIntTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongIntTuple t return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongIntTuple tuple, int ele return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeIntegerColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantLongColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantLongColumnTupleSource.java index 7764a6dd6b5..b4331b003ca 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantLongColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeLongColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeLongColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantObjectColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantObjectColumnTupleSource.java index 83acfe2e0f0..fc07cb5500a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantObjectColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongObjectTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeObjectColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongObjectTuple createPreviousTuple(final long rowKey) { public final ByteLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongObjectTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongObjectTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongObjectTuple tuple, int return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeObjectColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 88% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index 754dbf5add2..6589d434022 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ByteLongByteTuple createPreviousTuple(final long rowKey) { public final ByteLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongByteTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ByteLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ByteLongByteTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 85% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantReinterpretedInstantColumnTupleSource.java index 5906372becc..d23fe5b6cbe 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,8 +66,8 @@ public final ByteLongLongTuple createPreviousTuple(final long rowKey) { public final ByteLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final ByteLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final ByteLongLongTuple tuple, int el return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantShortColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantShortColumnTupleSource.java index 9f9519a7e76..86a5d5cbc3b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanReinterpretedInstantShortColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteLongShortTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanReinterpretedInstantShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanReinterpretedDateTimeShortColumnTupleSource( + public ReinterpretedBooleanReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ByteLongShortTuple createPreviousTuple(final long rowKey) { public final ByteLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new ByteLongShortTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ByteLongShortTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ByteLongShortTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanReinterpretedDateTimeShortColumnTupleSource( + return new ReinterpretedBooleanReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortInstantColumnTupleSource.java index 4cec37378cd..3f33e819757 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteShortLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedBooleanShortDateTimeColumnTupleSource( + public ReinterpretedBooleanShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final ByteShortLongTuple createTupleFromValues(@NotNull final Object... v return new ByteShortLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final ByteShortLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ByteShortLongTuple( TypeUtils.unbox((Byte)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteShortLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final ByteShortLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ByteChunk chunk1 = chunks[0].asByteChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ByteShortLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanShortDateTimeColumnTupleSource( + return new ReinterpretedBooleanShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortReinterpretedInstantColumnTupleSource.java index 3f8ae9289ba..dad02370ba6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedBooleanShortReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ByteShortLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Byte, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedBooleanShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedBooleanShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedBooleanShortReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedBooleanShortReinterpretedDateTimeColumnTupleSource( + public ReinterpretedBooleanShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ByteShortLongTuple createTupleFromValues(@NotNull final Object... v return new ByteShortLongTuple( BooleanUtils.booleanAsByte((Boolean)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ByteShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ByteShortLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedBooleanShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedBooleanShortReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedBooleanShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanBooleanColumnTupleSource.java similarity index 91% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanBooleanColumnTupleSource.java index ee06ba687f0..53ce0ab4c86 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanBooleanColumnTupleSource( + public ReinterpretedInstantBooleanBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanBooleanColumnTupleSource( + return new ReinterpretedInstantBooleanBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanByteColumnTupleSource.java index 44b3ecb2788..5dc34d408eb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanByteColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanByteColumnTupleSource( + public ReinterpretedInstantBooleanByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanByteColumnTupleSource( + return new ReinterpretedInstantBooleanByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanCharacterColumnTupleSource.java index 37a2b285fb5..06eb25ab028 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanCharacterColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteCharTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanCharacterColumnTupleSource( + public ReinterpretedInstantBooleanCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteCharTuple createPreviousTuple(final long rowKey) { @Override public final LongByteCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteCharTuple @Override public final Object exportElement(@NotNull final LongByteCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanCharacterColumnTupleSource( + return new ReinterpretedInstantBooleanCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanColumnTupleSource.java index d70d93d7d71..262b47a2cc6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedDateTimeBooleanColumnTupleSource( + public ReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -60,7 +60,7 @@ public final LongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]) ); } @@ -77,7 +77,7 @@ public final LongByteTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -90,7 +90,7 @@ public final void exportElement(@NotNull final LongByteTuple tupl @Override public final Object exportElement(@NotNull final LongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -119,7 +119,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -130,7 +130,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeBooleanColumnTupleSource( + return new ReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanDoubleColumnTupleSource.java index 017efeb5afe..7ec4defb659 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanDoubleColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteDoubleTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanDoubleColumnTupleSource( + public ReinterpretedInstantBooleanDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongByteDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteDoubleTupl @Override public final Object exportElement(@NotNull final LongByteDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanDoubleColumnTupleSource( + return new ReinterpretedInstantBooleanDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanFloatColumnTupleSource.java index 9d0da5694ac..9732a42d7be 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanFloatColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteFloatTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanFloatColumnTupleSource( + public ReinterpretedInstantBooleanFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongByteFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteFloatTuple @Override public final Object exportElement(@NotNull final LongByteFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanFloatColumnTupleSource( + return new ReinterpretedInstantBooleanFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanInstantColumnTupleSource.java index e2e59ef453b..20bbb827c78 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanDateTimeColumnTupleSource( + public ReinterpretedInstantBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,9 +65,9 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -84,7 +84,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteLongTuple(chunk1.get(ii), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanDateTimeColumnTupleSource( + return new ReinterpretedInstantBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanIntegerColumnTupleSource.java index c5146fdc29a..0ae6dd0da7e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanIntegerColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteIntTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanIntegerColumnTupleSource( + public ReinterpretedInstantBooleanIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteIntTuple createPreviousTuple(final long rowKey) { @Override public final LongByteIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteIntTuple t @Override public final Object exportElement(@NotNull final LongByteIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanIntegerColumnTupleSource( + return new ReinterpretedInstantBooleanIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanLongColumnTupleSource.java index 9008a553658..2acaa915d84 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanLongColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanLongColumnTupleSource( + public ReinterpretedInstantBooleanLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanLongColumnTupleSource( + return new ReinterpretedInstantBooleanLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanObjectColumnTupleSource.java index 414dcda0bbf..6fcd7101897 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanObjectColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteObjectTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanObjectColumnTupleSource( + public ReinterpretedInstantBooleanObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongByteObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), values[2] ); @@ -84,7 +84,7 @@ public final LongByteObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteObjectTupl @Override public final Object exportElement(@NotNull final LongByteObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanObjectColumnTupleSource( + return new ReinterpretedInstantBooleanObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanReinterpretedBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanReinterpretedBooleanColumnTupleSource.java index 61bb654e90a..67795e076a9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantBooleanReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantBooleanReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanReinterpretedInstantColumnTupleSource.java similarity index 87% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanReinterpretedInstantColumnTupleSource.java index b8803857113..db5c16e1fec 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,9 +65,9 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -84,7 +84,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanShortColumnTupleSource.java index fe774cf541d..4e51d1264ee 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeBooleanShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantBooleanShortColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteShortTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Boolean, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeBooleanShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantBooleanShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeBooleanShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantBooleanShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeBooleanShortColumnTupleSource( + public ReinterpretedInstantBooleanShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteShortTuple createPreviousTuple(final long rowKey) { @Override public final LongByteShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteShortTuple @Override public final Object exportElement(@NotNull final LongByteShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeBooleanShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantBooleanShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeBooleanShortColumnTupleSource( + return new ReinterpretedInstantBooleanShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteBooleanColumnTupleSource.java index 349c57dacc0..2f72cb8946c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteBooleanColumnTupleSource( + public ReinterpretedInstantByteBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteBooleanColumnTupleSource( + return new ReinterpretedInstantByteBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteByteColumnTupleSource.java index a6243926e95..7dbe11ce4d0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteByteColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteByteColumnTupleSource( + public ReinterpretedInstantByteByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -83,7 +83,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteByteColumnTupleSource( + return new ReinterpretedInstantByteByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteCharacterColumnTupleSource.java index 3b69d842ffe..f9cc1fea016 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteCharacterColumnTupleSource( + public ReinterpretedInstantByteCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteCharTuple createPreviousTuple(final long rowKey) { @Override public final LongByteCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteCharTuple @Override public final Object exportElement(@NotNull final LongByteCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteCharacterColumnTupleSource( + return new ReinterpretedInstantByteCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteColumnTupleSource.java index 3094738493d..a0f2bda0e59 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedDateTimeByteColumnTupleSource( + public ReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -59,7 +59,7 @@ public final LongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]) ); } @@ -76,7 +76,7 @@ public final LongByteTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongByteTuple tupl @Override public final Object exportElement(@NotNull final LongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeByteColumnTupleSource( + return new ReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteDoubleColumnTupleSource.java index d27b14d5882..ec7cc21dfd4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteDoubleColumnTupleSource( + public ReinterpretedInstantByteDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongByteDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteDoubleTupl @Override public final Object exportElement(@NotNull final LongByteDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteDoubleColumnTupleSource( + return new ReinterpretedInstantByteDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteFloatColumnTupleSource.java index 386a64d898b..7228e81e103 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteFloatColumnTupleSource( + public ReinterpretedInstantByteFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongByteFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteFloatTuple @Override public final Object exportElement(@NotNull final LongByteFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteFloatColumnTupleSource( + return new ReinterpretedInstantByteFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteInstantColumnTupleSource.java index f9321c7a948..48a78f32528 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteDateTimeColumnTupleSource( + public ReinterpretedInstantByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,9 +65,9 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -84,7 +84,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteDateTimeColumnTupleSource( + return new ReinterpretedInstantByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteIntegerColumnTupleSource.java index 9d438d70317..22b2d08dd9c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteIntegerColumnTupleSource( + public ReinterpretedInstantByteIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteIntTuple createPreviousTuple(final long rowKey) { @Override public final LongByteIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteIntTuple t @Override public final Object exportElement(@NotNull final LongByteIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteIntegerColumnTupleSource( + return new ReinterpretedInstantByteIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteLongColumnTupleSource.java index 928e5c81870..329509206e7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteLongColumnTupleSource( + public ReinterpretedInstantByteLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -83,7 +83,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteLongColumnTupleSource( + return new ReinterpretedInstantByteLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteObjectColumnTupleSource.java index 3fddb4d9f8c..782a1ac3a5f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteObjectColumnTupleSource( + public ReinterpretedInstantByteObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongByteObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), values[2] ); @@ -84,7 +84,7 @@ public final LongByteObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteObjectTupl @Override public final Object exportElement(@NotNull final LongByteObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteObjectColumnTupleSource( + return new ReinterpretedInstantByteObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteReinterpretedBooleanColumnTupleSource.java index 9488417bd4e..32bb95255d4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteReinterpretedBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantByteReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantByteReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteReinterpretedInstantColumnTupleSource.java index 68e0d96abec..7340bf66a95 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,9 +64,9 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteShortColumnTupleSource.java index d1819bfce7e..380d1dfc2f9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeByteShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantByteShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeByteShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantByteShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeByteShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantByteShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeByteShortColumnTupleSource( + public ReinterpretedInstantByteShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteShortTuple createPreviousTuple(final long rowKey) { @Override public final LongByteShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Byte)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteShortTuple @Override public final Object exportElement(@NotNull final LongByteShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeByteShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantByteShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeByteShortColumnTupleSource( + return new ReinterpretedInstantByteShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterBooleanColumnTupleSource.java index b99ac67600c..1fd1cebe420 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterBooleanColumnTupleSource( + public ReinterpretedInstantCharacterBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongCharByteTuple createPreviousTuple(final long rowKey) { @Override public final LongCharByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongCharByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongCharByteTuple @Override public final Object exportElement(@NotNull final LongCharByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterBooleanColumnTupleSource( + return new ReinterpretedInstantCharacterBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterByteColumnTupleSource.java index 4980f448ffc..ebe517731cb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterByteColumnTupleSource( + public ReinterpretedInstantCharacterByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongCharByteTuple createPreviousTuple(final long rowKey) { @Override public final LongCharByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharByteTuple @Override public final Object exportElement(@NotNull final LongCharByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterByteColumnTupleSource( + return new ReinterpretedInstantCharacterByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterCharacterColumnTupleSource.java index a71142af6a5..bfed7c66cd3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterCharacterColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterCharacterColumnTupleSource( + public ReinterpretedInstantCharacterCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongCharCharTuple createPreviousTuple(final long rowKey) { @Override public final LongCharCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -83,7 +83,7 @@ public final LongCharCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongCharCharTuple @Override public final Object exportElement(@NotNull final LongCharCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterCharacterColumnTupleSource( + return new ReinterpretedInstantCharacterCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterColumnTupleSource.java index bfe05adc724..b9ab1a84b6e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedDateTimeCharacterColumnTupleSource( + public ReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -59,7 +59,7 @@ public final LongCharTuple createPreviousTuple(final long rowKey) { @Override public final LongCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]) ); } @@ -76,7 +76,7 @@ public final LongCharTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongCharTuple tupl @Override public final Object exportElement(@NotNull final LongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeCharacterColumnTupleSource( + return new ReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterDoubleColumnTupleSource.java index 76f3d0bc1f0..62e795f892c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterDoubleColumnTupleSource( + public ReinterpretedInstantCharacterDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongCharDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongCharDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongCharDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharDoubleTupl @Override public final Object exportElement(@NotNull final LongCharDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterDoubleColumnTupleSource( + return new ReinterpretedInstantCharacterDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterFloatColumnTupleSource.java index e28257296c8..b7400a078da 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterFloatColumnTupleSource( + public ReinterpretedInstantCharacterFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongCharFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongCharFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongCharFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharFloatTuple @Override public final Object exportElement(@NotNull final LongCharFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterFloatColumnTupleSource( + return new ReinterpretedInstantCharacterFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterInstantColumnTupleSource.java index 3dd2811a54f..a16eec3266f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterDateTimeColumnTupleSource( + public ReinterpretedInstantCharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,9 +65,9 @@ public final LongCharLongTuple createPreviousTuple(final long rowKey) { @Override public final LongCharLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongCharLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongCharLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -84,7 +84,7 @@ public final LongCharLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongCharLongTuple @Override public final Object exportElement(@NotNull final LongCharLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongCharLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongCharLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterDateTimeColumnTupleSource( + return new ReinterpretedInstantCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterIntegerColumnTupleSource.java index def6d772675..5c4449d6449 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterIntegerColumnTupleSource( + public ReinterpretedInstantCharacterIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongCharIntTuple createPreviousTuple(final long rowKey) { @Override public final LongCharIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharIntTuple t @Override public final Object exportElement(@NotNull final LongCharIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterIntegerColumnTupleSource( + return new ReinterpretedInstantCharacterIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterLongColumnTupleSource.java index 9dff2a8aa15..4eb82be522d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterLongColumnTupleSource( + public ReinterpretedInstantCharacterLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongCharLongTuple createPreviousTuple(final long rowKey) { @Override public final LongCharLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -83,7 +83,7 @@ public final LongCharLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongCharLongTuple @Override public final Object exportElement(@NotNull final LongCharLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterLongColumnTupleSource( + return new ReinterpretedInstantCharacterLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterObjectColumnTupleSource.java index 1f5a03e304d..9fb3943e277 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterObjectColumnTupleSource( + public ReinterpretedInstantCharacterObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongCharObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongCharObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), values[2] ); @@ -84,7 +84,7 @@ public final LongCharObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongCharObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharObjectTupl @Override public final Object exportElement(@NotNull final LongCharObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterObjectColumnTupleSource( + return new ReinterpretedInstantCharacterObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterReinterpretedBooleanColumnTupleSource.java index 058a4a89497..a01d30b07c5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantCharacterReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongCharByteTuple createPreviousTuple(final long rowKey) { @Override public final LongCharByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongCharByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongCharByteTuple @Override public final Object exportElement(@NotNull final LongCharByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantCharacterReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterReinterpretedInstantColumnTupleSource.java index b8e6332c64f..bdabb4ba92d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantCharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,9 +64,9 @@ public final LongCharLongTuple createPreviousTuple(final long rowKey) { @Override public final LongCharLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongCharLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongCharLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongCharLongTuple @Override public final Object exportElement(@NotNull final LongCharLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterShortColumnTupleSource.java index 2c17fa4a956..1eb382689d3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeCharacterShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantCharacterShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongCharShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Character, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeCharacterShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantCharacterShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeCharacterShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantCharacterShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeCharacterShortColumnTupleSource( + public ReinterpretedInstantCharacterShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongCharShortTuple createPreviousTuple(final long rowKey) { @Override public final LongCharShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongCharShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Character)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongCharShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongCharShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongCharShortTuple @Override public final Object exportElement(@NotNull final LongCharShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeCharacterShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantCharacterShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeCharacterShortColumnTupleSource( + return new ReinterpretedInstantCharacterShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleBooleanColumnTupleSource.java index f1c7005b791..399000c9e0b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleBooleanColumnTupleSource( + public ReinterpretedInstantDoubleBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongDoubleByteTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongDoubleByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongDoubleByteTupl @Override public final Object exportElement(@NotNull final LongDoubleByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleBooleanColumnTupleSource( + return new ReinterpretedInstantDoubleBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleByteColumnTupleSource.java index 256daf0071b..956e57aaacd 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleByteColumnTupleSource( + public ReinterpretedInstantDoubleByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongDoubleByteTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleByteTupl @Override public final Object exportElement(@NotNull final LongDoubleByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleByteColumnTupleSource( + return new ReinterpretedInstantDoubleByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleCharacterColumnTupleSource.java index 1240346839a..0e98a90ae79 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleCharacterColumnTupleSource( + public ReinterpretedInstantDoubleCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongDoubleCharTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleCharTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleCharTupl @Override public final Object exportElement(@NotNull final LongDoubleCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleCharacterColumnTupleSource( + return new ReinterpretedInstantDoubleCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleColumnTupleSource.java index 8ae36eec7c8..7b16efb411d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedDateTimeDoubleColumnTupleSource( + public ReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -59,7 +59,7 @@ public final LongDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]) ); } @@ -76,7 +76,7 @@ public final LongDoubleTuple createTupleFromReinterpretedValues(@NotNull final O @Override public final void exportElement(@NotNull final LongDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongDoubleTuple tu @Override public final Object exportElement(@NotNull final LongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeDoubleColumnTupleSource( + return new ReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleDoubleColumnTupleSource.java index e52c79b19a4..381361db361 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleDoubleColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleDoubleColumnTupleSource( + public ReinterpretedInstantDoubleDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongDoubleDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -83,7 +83,7 @@ public final LongDoubleDoubleTuple createTupleFromReinterpretedValues(@NotNull f @Override public final void exportElement(@NotNull final LongDoubleDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongDoubleDoubleTu @Override public final Object exportElement(@NotNull final LongDoubleDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleDoubleColumnTupleSource( + return new ReinterpretedInstantDoubleDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleFloatColumnTupleSource.java index ca73d637c48..a9c92427664 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleFloatColumnTupleSource( + public ReinterpretedInstantDoubleFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongDoubleFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleFloatTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongDoubleFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleFloatTup @Override public final Object exportElement(@NotNull final LongDoubleFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleFloatColumnTupleSource( + return new ReinterpretedInstantDoubleFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleInstantColumnTupleSource.java index a7fe207f2c1..f6552a71068 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleDateTimeColumnTupleSource( + public ReinterpretedInstantDoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,9 +65,9 @@ public final LongDoubleLongTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin return new LongDoubleLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -84,7 +84,7 @@ public final LongDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongDoubleLongTupl @Override public final Object exportElement(@NotNull final LongDoubleLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongDoubleLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongDoubleLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleDateTimeColumnTupleSource( + return new ReinterpretedInstantDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleIntegerColumnTupleSource.java index 3c29c3890f1..b46bfe595fd 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleIntegerColumnTupleSource( + public ReinterpretedInstantDoubleIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongDoubleIntTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleIntTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongDoubleIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleIntTuple @Override public final Object exportElement(@NotNull final LongDoubleIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleIntegerColumnTupleSource( + return new ReinterpretedInstantDoubleIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleLongColumnTupleSource.java index d979b1ddd44..165b9575170 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleLongColumnTupleSource( + public ReinterpretedInstantDoubleLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongDoubleLongTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -83,7 +83,7 @@ public final LongDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongDoubleLongTupl @Override public final Object exportElement(@NotNull final LongDoubleLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleLongColumnTupleSource( + return new ReinterpretedInstantDoubleLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleObjectColumnTupleSource.java index 942f347a2c4..71dcc32a798 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleObjectColumnTupleSource( + public ReinterpretedInstantDoubleObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongDoubleObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), values[2] ); @@ -84,7 +84,7 @@ public final LongDoubleObjectTuple createTupleFromReinterpretedValues(@NotNull f @Override public final void exportElement(@NotNull final LongDoubleObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleObjectTu @Override public final Object exportElement(@NotNull final LongDoubleObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleObjectColumnTupleSource( + return new ReinterpretedInstantDoubleObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleReinterpretedBooleanColumnTupleSource.java index 075985173d5..5e2f5cdc772 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantDoubleReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongDoubleByteTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongDoubleByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongDoubleByteTupl @Override public final Object exportElement(@NotNull final LongDoubleByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantDoubleReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleReinterpretedInstantColumnTupleSource.java index 372ee09bce1..44f8421a7f2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantDoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,9 +64,9 @@ public final LongDoubleLongTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongDoubleLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongDoubleLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongDoubleLongTupl @Override public final Object exportElement(@NotNull final LongDoubleLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleShortColumnTupleSource.java similarity index 91% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleShortColumnTupleSource.java index 6cc24a308b4..93fdc99d5cf 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDoubleShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantDoubleShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongDoubleShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Double, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDoubleShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantDoubleShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDoubleShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantDoubleShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDoubleShortColumnTupleSource( + public ReinterpretedInstantDoubleShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongDoubleShortTuple createPreviousTuple(final long rowKey) { @Override public final LongDoubleShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongDoubleShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Double)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongDoubleShortTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongDoubleShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongDoubleShortTup @Override public final Object exportElement(@NotNull final LongDoubleShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDoubleShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantDoubleShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDoubleShortColumnTupleSource( + return new ReinterpretedInstantDoubleShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatBooleanColumnTupleSource.java index c3f7a8323aa..f428a26c6de 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatBooleanColumnTupleSource( + public ReinterpretedInstantFloatBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongFloatByteTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongFloatByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongFloatByteTuple @Override public final Object exportElement(@NotNull final LongFloatByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatBooleanColumnTupleSource( + return new ReinterpretedInstantFloatBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatByteColumnTupleSource.java index b3768b93599..db210014d87 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatByteColumnTupleSource( + public ReinterpretedInstantFloatByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongFloatByteTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatByteTuple @Override public final Object exportElement(@NotNull final LongFloatByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatByteColumnTupleSource( + return new ReinterpretedInstantFloatByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatCharacterColumnTupleSource.java index d136dd532a1..b528aae2d62 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatCharacterColumnTupleSource( + public ReinterpretedInstantFloatCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongFloatCharTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatCharTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatCharTuple @Override public final Object exportElement(@NotNull final LongFloatCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatCharacterColumnTupleSource( + return new ReinterpretedInstantFloatCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatColumnTupleSource.java index d106b0de2b9..574f98fdd65 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedDateTimeFloatColumnTupleSource( + public ReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -59,7 +59,7 @@ public final LongFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]) ); } @@ -76,7 +76,7 @@ public final LongFloatTuple createTupleFromReinterpretedValues(@NotNull final Ob @Override public final void exportElement(@NotNull final LongFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongFloatTuple tup @Override public final Object exportElement(@NotNull final LongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeFloatColumnTupleSource( + return new ReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatDoubleColumnTupleSource.java index f18cf34827f..8971128978c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatDoubleColumnTupleSource( + public ReinterpretedInstantFloatDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongFloatDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatDoubleTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongFloatDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatDoubleTup @Override public final Object exportElement(@NotNull final LongFloatDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatDoubleColumnTupleSource( + return new ReinterpretedInstantFloatDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatFloatColumnTupleSource.java index 063c640c251..11d1278b525 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatFloatColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatFloatColumnTupleSource( + public ReinterpretedInstantFloatFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongFloatFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -83,7 +83,7 @@ public final LongFloatFloatTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongFloatFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongFloatFloatTupl @Override public final Object exportElement(@NotNull final LongFloatFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatFloatColumnTupleSource( + return new ReinterpretedInstantFloatFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatInstantColumnTupleSource.java index 28992558ad5..887f2474f30 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatDateTimeColumnTupleSource( + public ReinterpretedInstantFloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,9 +65,9 @@ public final LongFloatLongTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina return new LongFloatLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -84,7 +84,7 @@ public final LongFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongFloatLongTuple @Override public final Object exportElement(@NotNull final LongFloatLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongFloatLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongFloatLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatDateTimeColumnTupleSource( + return new ReinterpretedInstantFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatIntegerColumnTupleSource.java index 78c066fb5b3..07de08a36ad 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatIntegerColumnTupleSource( + public ReinterpretedInstantFloatIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongFloatIntTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongFloatIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatIntTuple @Override public final Object exportElement(@NotNull final LongFloatIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatIntegerColumnTupleSource( + return new ReinterpretedInstantFloatIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatLongColumnTupleSource.java index d89980b0d58..2c1fa9d0d32 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatLongColumnTupleSource( + public ReinterpretedInstantFloatLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongFloatLongTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -83,7 +83,7 @@ public final LongFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongFloatLongTuple @Override public final Object exportElement(@NotNull final LongFloatLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatLongColumnTupleSource( + return new ReinterpretedInstantFloatLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatObjectColumnTupleSource.java index ef9d8582b3b..8acc6db7a32 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatObjectColumnTupleSource( + public ReinterpretedInstantFloatObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongFloatObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), values[2] ); @@ -84,7 +84,7 @@ public final LongFloatObjectTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongFloatObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatObjectTup @Override public final Object exportElement(@NotNull final LongFloatObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatObjectColumnTupleSource( + return new ReinterpretedInstantFloatObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatReinterpretedBooleanColumnTupleSource.java index b5928bee0af..ff899b8adcc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantFloatReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongFloatByteTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongFloatByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongFloatByteTuple @Override public final Object exportElement(@NotNull final LongFloatByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantFloatReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatReinterpretedInstantColumnTupleSource.java index b0b69c8b943..68459be9767 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantFloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,9 +64,9 @@ public final LongFloatLongTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongFloatLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongFloatLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongFloatLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongFloatLongTuple @Override public final Object exportElement(@NotNull final LongFloatLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatShortColumnTupleSource.java index 561c33dddca..12960671abc 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeFloatShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantFloatShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongFloatShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Float, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeFloatShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantFloatShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeFloatShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantFloatShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeFloatShortColumnTupleSource( + public ReinterpretedInstantFloatShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongFloatShortTuple createPreviousTuple(final long rowKey) { @Override public final LongFloatShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongFloatShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Float)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongFloatShortTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongFloatShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongFloatShortTupl @Override public final Object exportElement(@NotNull final LongFloatShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeFloatShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantFloatShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeFloatShortColumnTupleSource( + return new ReinterpretedInstantFloatShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantBooleanColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantBooleanColumnTupleSource.java index 63a92b90a78..b64ca458a4b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeBooleanColumnTupleSource( + public ReinterpretedInstantInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,8 +65,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -84,11 +84,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeBooleanColumnTupleSource( + return new ReinterpretedInstantInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantByteColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantByteColumnTupleSource.java index 6abb04bf915..1fb94120cea 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantByteColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeByteColumnTupleSource( + public ReinterpretedInstantInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,8 +65,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -84,11 +84,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeByteColumnTupleSource( + return new ReinterpretedInstantInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantCharacterColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantCharacterColumnTupleSource.java index f885e7db602..b9c99e28bda 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantCharacterColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeCharacterColumnTupleSource( + public ReinterpretedInstantInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,8 +65,8 @@ public final LongLongCharTuple createPreviousTuple(final long rowKey) { @Override public final LongLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongCharTuple createTupleFromValues(@NotNull final Object... va public final LongLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongCharTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -84,11 +84,11 @@ public final LongLongCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongCharTuple @Override public final Object exportElement(@NotNull final LongLongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongCharTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongCharTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongCharTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeCharacterColumnTupleSource( + return new ReinterpretedInstantInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantColumnTupleSource.java similarity index 76% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantColumnTupleSource.java index e954636031c..896b95c2bcb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; - public ReinterpretedDateTimeDateTimeColumnTupleSource( + public ReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -59,8 +59,8 @@ public final LongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -68,7 +68,7 @@ public final LongLongTuple createTupleFromValues(@NotNull final Object... values public final LongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -76,11 +76,11 @@ public final LongLongTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -89,10 +89,10 @@ public final void exportElement(@NotNull final LongLongTuple tupl @Override public final Object exportElement(@NotNull final LongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -103,7 +103,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongTuple tupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -111,15 +111,15 @@ public final Object exportElementReinterpreted(@NotNull final LongLongTuple tupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @@ -127,9 +127,9 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeDateTimeColumnTupleSource( + return new ReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantDoubleColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantDoubleColumnTupleSource.java index c3413ff1107..a0929f47e11 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantDoubleColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeDoubleColumnTupleSource( + public ReinterpretedInstantInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,8 +65,8 @@ public final LongLongDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... public final LongLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongDoubleTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -84,11 +84,11 @@ public final LongLongDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongDoubleTupl @Override public final Object exportElement(@NotNull final LongLongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongDoubleTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongDoubleTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongDoubleTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeDoubleColumnTupleSource( + return new ReinterpretedInstantInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantFloatColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantFloatColumnTupleSource.java index 12eaf33db51..3c7b481ebf4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantFloatColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeFloatColumnTupleSource( + public ReinterpretedInstantInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,8 +65,8 @@ public final LongLongFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... v public final LongLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongFloatTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -84,11 +84,11 @@ public final LongLongFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongFloatTuple @Override public final Object exportElement(@NotNull final LongLongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongFloatTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongFloatTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongFloatTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeFloatColumnTupleSource( + return new ReinterpretedInstantInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantInstantColumnTupleSource.java similarity index 70% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantInstantColumnTupleSource.java index c14884458c4..04aaea1e87d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeDateTimeColumnTupleSource( + public ReinterpretedInstantInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,9 +64,9 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,8 +74,8 @@ public final LongLongLongTuple createTupleFromValues(@NotNull final Object... va public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,15 +83,15 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -117,10 +117,10 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,16 +129,16 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeDateTimeColumnTupleSource( + return new ReinterpretedInstantInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantIntegerColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantIntegerColumnTupleSource.java index 63825341932..b000302bf28 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantIntegerColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeIntegerColumnTupleSource( + public ReinterpretedInstantInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,8 +65,8 @@ public final LongLongIntTuple createPreviousTuple(final long rowKey) { @Override public final LongLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongIntTuple createTupleFromValues(@NotNull final Object... val public final LongLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongIntTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -84,11 +84,11 @@ public final LongLongIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongIntTuple t @Override public final Object exportElement(@NotNull final LongLongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongIntTuple t return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongIntTuple t protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongIntTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeIntegerColumnTupleSource( + return new ReinterpretedInstantInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantLongColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantLongColumnTupleSource.java index 2c35593498d..6c5756f95c8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantLongColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeLongColumnTupleSource( + public ReinterpretedInstantInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,8 +64,8 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -74,7 +74,7 @@ public final LongLongLongTuple createTupleFromValues(@NotNull final Object... va public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeLongColumnTupleSource( + return new ReinterpretedInstantInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantObjectColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantObjectColumnTupleSource.java index 387453b845e..227049fd179 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantObjectColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeObjectColumnTupleSource( + public ReinterpretedInstantInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,8 +64,8 @@ public final LongLongObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -74,7 +74,7 @@ public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... public final LongLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongObjectTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -83,11 +83,11 @@ public final LongLongObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongObjectTupl @Override public final Object exportElement(@NotNull final LongLongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongObjectTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongObjectTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongObjectTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeObjectColumnTupleSource( + return new ReinterpretedInstantInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantReinterpretedBooleanColumnTupleSource.java similarity index 78% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantReinterpretedBooleanColumnTupleSource.java index 8e3d949f565..f012a235fd7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantReinterpretedBooleanColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,8 +66,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -76,7 +76,7 @@ public final LongLongByteTuple createTupleFromValues(@NotNull final Object... va public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongByteTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -85,11 +85,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -102,10 +102,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantReinterpretedInstantColumnTupleSource.java similarity index 75% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantReinterpretedInstantColumnTupleSource.java index d33b7e9eb00..649597021d6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantReinterpretedInstantColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -64,9 +64,9 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,7 +74,7 @@ public final LongLongLongTuple createTupleFromValues(@NotNull final Object... va public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -83,15 +83,15 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantShortColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantShortColumnTupleSource.java index 12c09a7591f..74c6e31d166 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantInstantShortColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeDateTimeShortColumnTupleSource( + public ReinterpretedInstantInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,8 +65,8 @@ public final LongLongShortTuple createPreviousTuple(final long rowKey) { @Override public final LongLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongShortTuple createTupleFromValues(@NotNull final Object... v public final LongLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new LongLongShortTuple( TypeUtils.unbox((Long)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -84,11 +84,11 @@ public final LongLongShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongShortTuple @Override public final Object exportElement(@NotNull final LongLongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongShortTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongShortTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongShortTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeDateTimeShortColumnTupleSource( + return new ReinterpretedInstantInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerBooleanColumnTupleSource.java index 3e08956c135..cd4967e86c3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerBooleanColumnTupleSource( + public ReinterpretedInstantIntegerBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongIntByteTuple createPreviousTuple(final long rowKey) { @Override public final LongIntByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongIntByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongIntByteTuple t @Override public final Object exportElement(@NotNull final LongIntByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerBooleanColumnTupleSource( + return new ReinterpretedInstantIntegerBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerByteColumnTupleSource.java index e6e3ce4ff5e..e777441f74c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerByteColumnTupleSource( + public ReinterpretedInstantIntegerByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongIntByteTuple createPreviousTuple(final long rowKey) { @Override public final LongIntByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntByteTuple t @Override public final Object exportElement(@NotNull final LongIntByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerByteColumnTupleSource( + return new ReinterpretedInstantIntegerByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerCharacterColumnTupleSource.java index 31bda168f67..01958356a89 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerCharacterColumnTupleSource( + public ReinterpretedInstantIntegerCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongIntCharTuple createPreviousTuple(final long rowKey) { @Override public final LongIntCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntCharTuple t @Override public final Object exportElement(@NotNull final LongIntCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerCharacterColumnTupleSource( + return new ReinterpretedInstantIntegerCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerColumnTupleSource.java index 7a522134ccf..7938c61f3d0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedDateTimeIntegerColumnTupleSource( + public ReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -59,7 +59,7 @@ public final LongIntTuple createPreviousTuple(final long rowKey) { @Override public final LongIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]) ); } @@ -76,7 +76,7 @@ public final LongIntTuple createTupleFromReinterpretedValues(@NotNull final Obje @Override public final void exportElement(@NotNull final LongIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongIntTuple tuple @Override public final Object exportElement(@NotNull final LongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeIntegerColumnTupleSource( + return new ReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerDoubleColumnTupleSource.java index 09ea5f9ee60..a44e180dba6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerDoubleColumnTupleSource( + public ReinterpretedInstantIntegerDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongIntDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongIntDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntDoubleTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongIntDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntDoubleTuple @Override public final Object exportElement(@NotNull final LongIntDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerDoubleColumnTupleSource( + return new ReinterpretedInstantIntegerDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerFloatColumnTupleSource.java index 6eb81fcbd52..6fd91665241 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerFloatColumnTupleSource( + public ReinterpretedInstantIntegerFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongIntFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongIntFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntFloatTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntFloatTuple @Override public final Object exportElement(@NotNull final LongIntFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerFloatColumnTupleSource( + return new ReinterpretedInstantIntegerFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerInstantColumnTupleSource.java index 998718e3ad9..997e735ed2c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerDateTimeColumnTupleSource( + public ReinterpretedInstantIntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,9 +65,9 @@ public final LongIntLongTuple createPreviousTuple(final long rowKey) { @Override public final LongIntLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongIntLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongIntLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -84,7 +84,7 @@ public final LongIntLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongIntLongTuple t @Override public final Object exportElement(@NotNull final LongIntLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongIntLongTuple t return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongIntLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerDateTimeColumnTupleSource( + return new ReinterpretedInstantIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerIntegerColumnTupleSource.java index 46c11ff8004..917d14260bb 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerIntegerColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerIntegerColumnTupleSource( + public ReinterpretedInstantIntegerIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongIntIntTuple createPreviousTuple(final long rowKey) { @Override public final LongIntIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -83,7 +83,7 @@ public final LongIntIntTuple createTupleFromReinterpretedValues(@NotNull final O @Override public final void exportElement(@NotNull final LongIntIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongIntIntTuple tu @Override public final Object exportElement(@NotNull final LongIntIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerIntegerColumnTupleSource( + return new ReinterpretedInstantIntegerIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerLongColumnTupleSource.java index 82681c359dd..1758d2bd250 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerLongColumnTupleSource( + public ReinterpretedInstantIntegerLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongIntLongTuple createPreviousTuple(final long rowKey) { @Override public final LongIntLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -83,7 +83,7 @@ public final LongIntLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongIntLongTuple t @Override public final Object exportElement(@NotNull final LongIntLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerLongColumnTupleSource( + return new ReinterpretedInstantIntegerLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerObjectColumnTupleSource.java index bb75920a661..88c6bea4ba4 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerObjectColumnTupleSource( + public ReinterpretedInstantIntegerObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongIntObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongIntObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), values[2] ); @@ -84,7 +84,7 @@ public final LongIntObjectTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongIntObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntObjectTuple @Override public final Object exportElement(@NotNull final LongIntObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerObjectColumnTupleSource( + return new ReinterpretedInstantIntegerObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerReinterpretedBooleanColumnTupleSource.java index f0b2d7b0c5b..bd50e4671fe 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantIntegerReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongIntByteTuple createPreviousTuple(final long rowKey) { @Override public final LongIntByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongIntByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongIntByteTuple t @Override public final Object exportElement(@NotNull final LongIntByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantIntegerReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerReinterpretedInstantColumnTupleSource.java index 8c017e2b693..c9e65723cb9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantIntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,9 +64,9 @@ public final LongIntLongTuple createPreviousTuple(final long rowKey) { @Override public final LongIntLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongIntLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongIntLongTuple t return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongIntLongTuple t @Override public final Object exportElement(@NotNull final LongIntLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerShortColumnTupleSource.java index 80dbeccbe29..511fb0a4573 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeIntegerShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantIntegerShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongIntShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Integer, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeIntegerShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantIntegerShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeIntegerShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantIntegerShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeIntegerShortColumnTupleSource( + public ReinterpretedInstantIntegerShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongIntShortTuple createPreviousTuple(final long rowKey) { @Override public final LongIntShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongIntShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Integer)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongIntShortTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongIntShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongIntShortTuple @Override public final Object exportElement(@NotNull final LongIntShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeIntegerShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantIntegerShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeIntegerShortColumnTupleSource( + return new ReinterpretedInstantIntegerShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongBooleanColumnTupleSource.java index 2b153da42ce..54820f7a7dd 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongBooleanColumnTupleSource( + public ReinterpretedInstantLongBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongBooleanColumnTupleSource( + return new ReinterpretedInstantLongBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongByteColumnTupleSource.java index cf485c8319c..5aefdfad5a3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongByteColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongByteColumnTupleSource( + public ReinterpretedInstantLongByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -83,7 +83,7 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongByteColumnTupleSource( + return new ReinterpretedInstantLongByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongCharacterColumnTupleSource.java index 9e265af8d98..653b100dff1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongCharacterColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongCharacterColumnTupleSource( + public ReinterpretedInstantLongCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongLongCharTuple createPreviousTuple(final long rowKey) { @Override public final LongLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -83,7 +83,7 @@ public final LongLongCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongLongCharTuple @Override public final Object exportElement(@NotNull final LongLongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongCharacterColumnTupleSource( + return new ReinterpretedInstantLongCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongColumnTupleSource.java index f70a96365e5..2fa1a962641 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongColumnTupleSource.java @@ -10,27 +10,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedDateTimeLongColumnTupleSource( + public ReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -58,7 +58,7 @@ public final LongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]) ); } @@ -75,7 +75,7 @@ public final LongLongTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final LongLongTuple tupl @Override public final Object exportElement(@NotNull final LongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -117,7 +117,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -128,7 +128,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeLongColumnTupleSource( + return new ReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongDoubleColumnTupleSource.java index 3eed23ea18d..38b5a88735d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongDoubleColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongDoubleColumnTupleSource( + public ReinterpretedInstantLongDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongLongDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -83,7 +83,7 @@ public final LongLongDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongLongDoubleTupl @Override public final Object exportElement(@NotNull final LongLongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongDoubleColumnTupleSource( + return new ReinterpretedInstantLongDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongFloatColumnTupleSource.java index 26f7ff7ead3..e65cc01b8a0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongFloatColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongFloatColumnTupleSource( + public ReinterpretedInstantLongFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongLongFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -83,7 +83,7 @@ public final LongLongFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongLongFloatTuple @Override public final Object exportElement(@NotNull final LongLongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongFloatColumnTupleSource( + return new ReinterpretedInstantLongFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongInstantColumnTupleSource.java index 0615a91088d..24368b253a7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongDateTimeColumnTupleSource( + public ReinterpretedInstantLongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,9 +64,9 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongDateTimeColumnTupleSource( + return new ReinterpretedInstantLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongIntegerColumnTupleSource.java index d2632c919b0..7cb770fcb58 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongIntegerColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongIntegerColumnTupleSource( + public ReinterpretedInstantLongIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongLongIntTuple createPreviousTuple(final long rowKey) { @Override public final LongLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -83,7 +83,7 @@ public final LongLongIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongLongIntTuple t @Override public final Object exportElement(@NotNull final LongLongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongIntegerColumnTupleSource( + return new ReinterpretedInstantLongIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongLongColumnTupleSource.java index c45212c45f0..ff75dbe1f3c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongLongColumnTupleSource.java @@ -10,28 +10,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongLongColumnTupleSource( + public ReinterpretedInstantLongLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -63,7 +63,7 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -82,7 +82,7 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -99,7 +99,7 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -136,7 +136,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -148,7 +148,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongLongColumnTupleSource( + return new ReinterpretedInstantLongLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongObjectColumnTupleSource.java index 78607548daf..5b2f4b9fd97 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongObjectColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongObjectColumnTupleSource( + public ReinterpretedInstantLongObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongLongObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), values[2] ); @@ -83,7 +83,7 @@ public final LongLongObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongLongObjectTupl @Override public final Object exportElement(@NotNull final LongLongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongObjectColumnTupleSource( + return new ReinterpretedInstantLongObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongReinterpretedBooleanColumnTupleSource.java index 638eb5f01f7..8758ab27b07 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongReinterpretedBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantLongReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantLongReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongReinterpretedInstantColumnTupleSource.java index 17806d37f6e..997f8402f78 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongReinterpretedInstantColumnTupleSource.java @@ -10,28 +10,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantLongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -63,9 +63,9 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -82,7 +82,7 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -90,7 +90,7 @@ public final void exportElement(@NotNull final LongLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -99,13 +99,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -136,7 +136,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -148,7 +148,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongShortColumnTupleSource.java index feb7ca7057d..3315adccc55 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeLongShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantLongShortColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeLongShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantLongShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeLongShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantLongShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeLongShortColumnTupleSource( + public ReinterpretedInstantLongShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongLongShortTuple createPreviousTuple(final long rowKey) { @Override public final LongLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Long)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -83,7 +83,7 @@ public final LongLongShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongLongShortTuple @Override public final Object exportElement(@NotNull final LongLongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeLongShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantLongShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeLongShortColumnTupleSource( + return new ReinterpretedInstantLongShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectBooleanColumnTupleSource.java index 9c4f211a2be..5379b86292d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectBooleanColumnTupleSource( + public ReinterpretedInstantObjectBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongObjectByteTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongObjectByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongObjectByteTupl @Override public final Object exportElement(@NotNull final LongObjectByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectBooleanColumnTupleSource( + return new ReinterpretedInstantObjectBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectByteColumnTupleSource.java index 168e396c6f4..7a21077443b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectByteColumnTupleSource( + public ReinterpretedInstantObjectByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongObjectByteTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongObjectByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongObjectByteTupl @Override public final Object exportElement(@NotNull final LongObjectByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectByteColumnTupleSource( + return new ReinterpretedInstantObjectByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectCharacterColumnTupleSource.java index c5479bf4d7c..8e2902df81f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectCharacterColumnTupleSource( + public ReinterpretedInstantObjectCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongObjectCharTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongObjectCharTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongObjectCharTupl @Override public final Object exportElement(@NotNull final LongObjectCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectCharacterColumnTupleSource( + return new ReinterpretedInstantObjectCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectColumnTupleSource.java index cd1198b423c..a6fe7b1dadf 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedDateTimeObjectColumnTupleSource( + public ReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -59,7 +59,7 @@ public final LongObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1] ); } @@ -76,7 +76,7 @@ public final LongObjectTuple createTupleFromReinterpretedValues(@NotNull final O @Override public final void exportElement(@NotNull final LongObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongObjectTuple tu @Override public final Object exportElement(@NotNull final LongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeObjectColumnTupleSource( + return new ReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectDoubleColumnTupleSource.java index 68616771a61..6c676ae7af7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectDoubleColumnTupleSource( + public ReinterpretedInstantObjectDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongObjectDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongObjectDoubleTuple createTupleFromReinterpretedValues(@NotNull f @Override public final void exportElement(@NotNull final LongObjectDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongObjectDoubleTu @Override public final Object exportElement(@NotNull final LongObjectDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectDoubleColumnTupleSource( + return new ReinterpretedInstantObjectDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectFloatColumnTupleSource.java index c4d6c548ce9..144104d641e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectFloatColumnTupleSource( + public ReinterpretedInstantObjectFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongObjectFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongObjectFloatTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongObjectFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongObjectFloatTup @Override public final Object exportElement(@NotNull final LongObjectFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectFloatColumnTupleSource( + return new ReinterpretedInstantObjectFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectInstantColumnTupleSource.java index 5ecfd71c90b..9fcd08af41b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectDateTimeColumnTupleSource( + public ReinterpretedInstantObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,9 +64,9 @@ public final LongObjectLongTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final LongObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin return new LongObjectLongTuple( TypeUtils.unbox((Long)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongObjectLongTupl @Override public final Object exportElement(@NotNull final LongObjectLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final LongObjectLongTupl return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongObjectLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectDateTimeColumnTupleSource( + return new ReinterpretedInstantObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectIntegerColumnTupleSource.java index e7778feff23..0ac84eaa6ab 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectIntegerColumnTupleSource( + public ReinterpretedInstantObjectIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongObjectIntTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongObjectIntTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongObjectIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongObjectIntTuple @Override public final Object exportElement(@NotNull final LongObjectIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectIntegerColumnTupleSource( + return new ReinterpretedInstantObjectIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectLongColumnTupleSource.java index 2d6af8d6800..ebd874e7bce 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectLongColumnTupleSource( + public ReinterpretedInstantObjectLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongObjectLongTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Long)values[2]) ); @@ -83,7 +83,7 @@ public final LongObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongObjectLongTupl @Override public final Object exportElement(@NotNull final LongObjectLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectLongColumnTupleSource( + return new ReinterpretedInstantObjectLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectObjectColumnTupleSource.java index b2807c0c666..436b5b2f614 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectObjectColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectObjectColumnTupleSource( + public ReinterpretedInstantObjectObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongObjectObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], values[2] ); @@ -83,7 +83,7 @@ public final LongObjectObjectTuple createTupleFromReinterpretedValues(@NotNull f @Override public final void exportElement(@NotNull final LongObjectObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongObjectObjectTu @Override public final Object exportElement(@NotNull final LongObjectObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectObjectColumnTupleSource( + return new ReinterpretedInstantObjectObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectReinterpretedBooleanColumnTupleSource.java index 8c43aa2163e..66b221cf1a0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantObjectReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongObjectByteTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongObjectByteTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongObjectByteTupl @Override public final Object exportElement(@NotNull final LongObjectByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantObjectReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectReinterpretedInstantColumnTupleSource.java index 68422db620b..05cb4dd13e2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,9 +64,9 @@ public final LongObjectLongTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongObjectLongTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongObjectLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongObjectLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongObjectLongTupl @Override public final Object exportElement(@NotNull final LongObjectLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectShortColumnTupleSource.java index 714964a4595..7e12c5299fe 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeObjectShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantObjectShortColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongObjectShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Object, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeObjectShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantObjectShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeObjectShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantObjectShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeObjectShortColumnTupleSource( + public ReinterpretedInstantObjectShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongObjectShortTuple createPreviousTuple(final long rowKey) { @Override public final LongObjectShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongObjectShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), values[1], TypeUtils.unbox((Short)values[2]) ); @@ -84,7 +84,7 @@ public final LongObjectShortTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongObjectShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongObjectShortTup @Override public final Object exportElement(@NotNull final LongObjectShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return tuple.getSecondElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeObjectShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantObjectShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeObjectShortColumnTupleSource( + return new ReinterpretedInstantObjectShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanBooleanColumnTupleSource.java index b4db7952181..9171656b6ac 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanBooleanColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanBooleanColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanByteColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanByteColumnTupleSource.java index 3d542fcc3e2..70f51e54615 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanByteColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanByteColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanByteColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanCharacterColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanCharacterColumnTupleSource.java index aba40ff81b6..0fe328c9965 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanCharacterColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteCharTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanCharacterColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteCharTuple createPreviousTuple(final long rowKey) { @Override public final LongByteCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteCharTuple @Override public final Object exportElement(@NotNull final LongByteCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanCharacterColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 88% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index 7607bb44ff2..c2580ce94ee 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -60,7 +60,7 @@ public final LongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]) ); } @@ -77,7 +77,7 @@ public final LongByteTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -90,7 +90,7 @@ public final void exportElement(@NotNull final LongByteTuple tupl @Override public final Object exportElement(@NotNull final LongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -119,7 +119,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -130,7 +130,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanDoubleColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanDoubleColumnTupleSource.java index 57501819f56..f7ee0fe4b8d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanDoubleColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteDoubleTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanDoubleColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongByteDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteDoubleTupl @Override public final Object exportElement(@NotNull final LongByteDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanDoubleColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanFloatColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanFloatColumnTupleSource.java index a94559382f9..735adf8b893 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanFloatColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteFloatTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanFloatColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongByteFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteFloatTuple @Override public final Object exportElement(@NotNull final LongByteFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanFloatColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanInstantColumnTupleSource.java similarity index 78% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanInstantColumnTupleSource.java index 7ecb07068ae..97c7763f641 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanDateTimeColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,9 +66,9 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongByteLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -85,7 +85,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -102,13 +102,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final LongByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanDateTimeColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanIntegerColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanIntegerColumnTupleSource.java index 15ad24cedb5..6c1bf0a55d2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanIntegerColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteIntTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanIntegerColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteIntTuple createPreviousTuple(final long rowKey) { @Override public final LongByteIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteIntTuple t @Override public final Object exportElement(@NotNull final LongByteIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanIntegerColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanLongColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanLongColumnTupleSource.java index 90a4608bf43..9460cd9c7a0 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanLongColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanLongColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanLongColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanObjectColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanObjectColumnTupleSource.java index 961f2480338..b5da39d18d3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanObjectColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteObjectTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanObjectColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongByteObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), values[2] ); @@ -85,7 +85,7 @@ public final LongByteObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongByteObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteObjectTupl @Override public final Object exportElement(@NotNull final LongByteObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanObjectColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java similarity index 88% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java index c3c69b1b749..6361e7eb514 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongByteByteTuple createPreviousTuple(final long rowKey) { @Override public final LongByteByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -84,7 +84,7 @@ public final LongByteByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongByteByteTuple @Override public final Object exportElement(@NotNull final LongByteByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 85% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index 9558e69b986..185c214dd0c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,9 +65,9 @@ public final LongByteLongTuple createPreviousTuple(final long rowKey) { @Override public final LongByteLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -84,7 +84,7 @@ public final LongByteLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongByteLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongByteLongTuple @Override public final Object exportElement(@NotNull final LongByteLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanShortColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanShortColumnTupleSource.java index fb1e777c4d6..1994382636c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedBooleanShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedBooleanShortColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongByteShortTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Byte, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedBooleanShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedBooleanShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedBooleanShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedBooleanShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedBooleanShortColumnTupleSource( + public ReinterpretedInstantReinterpretedBooleanShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongByteShortTuple createPreviousTuple(final long rowKey) { @Override public final LongByteShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongByteShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -85,7 +85,7 @@ public final LongByteShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongByteShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongByteShortTuple @Override public final Object exportElement(@NotNull final LongByteShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedBooleanShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedBooleanShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedBooleanShortColumnTupleSource( + return new ReinterpretedInstantReinterpretedBooleanShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantBooleanColumnTupleSource.java similarity index 87% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantBooleanColumnTupleSource.java index 567a633d656..d2e4139c73d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeBooleanColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,8 +65,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -84,11 +84,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeBooleanColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantByteColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantByteColumnTupleSource.java index 17b8e96721a..21ad046e1d3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantByteColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeByteColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,8 +64,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeByteColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantCharacterColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantCharacterColumnTupleSource.java index 5ceaaa095f6..26d1423be82 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantCharacterColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeCharacterColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,8 +64,8 @@ public final LongLongCharTuple createPreviousTuple(final long rowKey) { @Override public final LongLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongCharTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongCharTuple @Override public final Object exportElement(@NotNull final LongLongCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeCharacterColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 84% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantColumnTupleSource.java index 53abb3cdc44..b4fb9da2c92 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -10,27 +10,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -58,8 +58,8 @@ public final LongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -75,11 +75,11 @@ public final LongLongTuple createTupleFromReinterpretedValues(@NotNull final Obj @Override public final void exportElement(@NotNull final LongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -88,10 +88,10 @@ public final void exportElement(@NotNull final LongLongTuple tupl @Override public final Object exportElement(@NotNull final LongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -117,7 +117,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -128,7 +128,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantDoubleColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantDoubleColumnTupleSource.java index 7500ba0e135..34b7f24c12b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantDoubleColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeDoubleColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,8 +64,8 @@ public final LongLongDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongDoubleTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongDoubleTupl @Override public final Object exportElement(@NotNull final LongLongDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeDoubleColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantFloatColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantFloatColumnTupleSource.java index 345f7216e4a..14c0a2c9b58 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantFloatColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeFloatColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,8 +64,8 @@ public final LongLongFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongFloatTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongFloatTuple @Override public final Object exportElement(@NotNull final LongLongFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeFloatColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantInstantColumnTupleSource.java similarity index 75% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantInstantColumnTupleSource.java index fab0563adf3..aeda115206d 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeDateTimeColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -64,9 +64,9 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final return new LongLongLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,15 +83,15 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final LongLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeDateTimeColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantIntegerColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantIntegerColumnTupleSource.java index c78a97462e4..22381c329a5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantIntegerColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeIntegerColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,8 +64,8 @@ public final LongLongIntTuple createPreviousTuple(final long rowKey) { @Override public final LongLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongIntTuple t @Override public final Object exportElement(@NotNull final LongLongIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeIntegerColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantLongColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantLongColumnTupleSource.java index b9c89ef3b25..cffb2481aee 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantLongColumnTupleSource.java @@ -10,28 +10,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeLongColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -63,8 +63,8 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -82,11 +82,11 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -99,10 +99,10 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -136,7 +136,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -148,7 +148,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeLongColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantObjectColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantObjectColumnTupleSource.java index 30275e540ee..b2dcbc2239c 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantObjectColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeObjectColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,8 +64,8 @@ public final LongLongObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -83,11 +83,11 @@ public final LongLongObjectTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongLongObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongObjectTupl @Override public final Object exportElement(@NotNull final LongLongObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeObjectColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 85% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index 8c36a324e48..318426292af 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,8 +65,8 @@ public final LongLongByteTuple createPreviousTuple(final long rowKey) { @Override public final LongLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -84,11 +84,11 @@ public final LongLongByteTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -101,10 +101,10 @@ public final void exportElement(@NotNull final LongLongByteTuple @Override public final Object exportElement(@NotNull final LongLongByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantReinterpretedInstantColumnTupleSource.java index 21e4c100ec6..1df3955567e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -10,28 +10,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -63,9 +63,9 @@ public final LongLongLongTuple createPreviousTuple(final long rowKey) { @Override public final LongLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -82,15 +82,15 @@ public final LongLongLongTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongLongLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -99,13 +99,13 @@ public final void exportElement(@NotNull final LongLongLongTuple @Override public final Object exportElement(@NotNull final LongLongLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -136,7 +136,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -148,7 +148,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantShortColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantShortColumnTupleSource.java index 71318a3bdf0..4309d6bd699 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantReinterpretedInstantShortColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantReinterpretedInstantShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeReinterpretedDateTimeShortColumnTupleSource( + public ReinterpretedInstantReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,8 +64,8 @@ public final LongLongShortTuple createPreviousTuple(final long rowKey) { @Override public final LongLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongLongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[0]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -83,11 +83,11 @@ public final LongLongShortTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongLongShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -100,10 +100,10 @@ public final void exportElement(@NotNull final LongLongShortTuple @Override public final Object exportElement(@NotNull final LongLongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeReinterpretedDateTimeShortColumnTupleSource( + return new ReinterpretedInstantReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortBooleanColumnTupleSource.java index 0f2e68538a4..7031d14fa88 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortBooleanColumnTupleSource( + public ReinterpretedInstantShortBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongShortByteTuple createPreviousTuple(final long rowKey) { @Override public final LongShortByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongShortByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongShortByteTuple @Override public final Object exportElement(@NotNull final LongShortByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortBooleanColumnTupleSource( + return new ReinterpretedInstantShortBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortByteColumnTupleSource.java index fdf1d93c621..eb986faebb9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortByteColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortByteColumnTupleSource( + public ReinterpretedInstantShortByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongShortByteTuple createPreviousTuple(final long rowKey) { @Override public final LongShortByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Byte)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortByteTuple @Override public final Object exportElement(@NotNull final LongShortByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortByteColumnTupleSource( + return new ReinterpretedInstantShortByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortCharacterColumnTupleSource.java index 5b9e34daf9c..d92673f0417 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortCharacterColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortCharacterColumnTupleSource( + public ReinterpretedInstantShortCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongShortCharTuple createPreviousTuple(final long rowKey) { @Override public final LongShortCharTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortCharTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Character)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortCharTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortCharTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortCharTuple @Override public final Object exportElement(@NotNull final LongShortCharTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortCharacterColumnTupleSource( + return new ReinterpretedInstantShortCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortColumnTupleSource.java index ed956d35d21..5ee27ee67ea 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ReinterpretedDateTimeShortColumnTupleSource( + public ReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -59,7 +59,7 @@ public final LongShortTuple createPreviousTuple(final long rowKey) { @Override public final LongShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]) ); } @@ -76,7 +76,7 @@ public final LongShortTuple createTupleFromReinterpretedValues(@NotNull final Ob @Override public final void exportElement(@NotNull final LongShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final LongShortTuple tup @Override public final Object exportElement(@NotNull final LongShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ReinterpretedDateTimeShortColumnTupleSource( + return new ReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortDoubleColumnTupleSource.java index 8fe95337e31..ba611085516 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortDoubleColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortDoubleColumnTupleSource( + public ReinterpretedInstantShortDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongShortDoubleTuple createPreviousTuple(final long rowKey) { @Override public final LongShortDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortDoubleTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Double)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortDoubleTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongShortDoubleTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortDoubleTup @Override public final Object exportElement(@NotNull final LongShortDoubleTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortDoubleColumnTupleSource( + return new ReinterpretedInstantShortDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortFloatColumnTupleSource.java index 5fb6a390421..1068aac1ce8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortFloatColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortFloatColumnTupleSource( + public ReinterpretedInstantShortFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongShortFloatTuple createPreviousTuple(final long rowKey) { @Override public final LongShortFloatTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortFloatTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Float)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortFloatTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongShortFloatTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortFloatTupl @Override public final Object exportElement(@NotNull final LongShortFloatTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortFloatColumnTupleSource( + return new ReinterpretedInstantShortFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortInstantColumnTupleSource.java index 379d8891422..93baac836b6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortDateTimeColumnTupleSource( + public ReinterpretedInstantShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,9 +65,9 @@ public final LongShortLongTuple createPreviousTuple(final long rowKey) { @Override public final LongShortLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final LongShortLongTuple createTupleFromReinterpretedValues(@NotNull fina return new LongShortLongTuple( TypeUtils.unbox((Long)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -84,7 +84,7 @@ public final LongShortLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final LongShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -101,13 +101,13 @@ public final void exportElement(@NotNull final LongShortLongTuple @Override public final Object exportElement(@NotNull final LongShortLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final LongShortLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); LongChunk chunk1 = chunks[0].asLongChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new LongShortLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortDateTimeColumnTupleSource( + return new ReinterpretedInstantShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortIntegerColumnTupleSource.java index dc7fb27b78f..a69e26c52dd 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortIntegerColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortIntegerColumnTupleSource( + public ReinterpretedInstantShortIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongShortIntTuple createPreviousTuple(final long rowKey) { @Override public final LongShortIntTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortIntTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Integer)values[2]) ); @@ -84,7 +84,7 @@ public final LongShortIntTuple createTupleFromReinterpretedValues(@NotNull final @Override public final void exportElement(@NotNull final LongShortIntTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortIntTuple @Override public final Object exportElement(@NotNull final LongShortIntTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortIntegerColumnTupleSource( + return new ReinterpretedInstantShortIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortLongColumnTupleSource.java index b4b0be1fbbe..b46f94dee2a 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortLongColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortLongColumnTupleSource( + public ReinterpretedInstantShortLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongShortLongTuple createPreviousTuple(final long rowKey) { @Override public final LongShortLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Long)values[2]) ); @@ -83,7 +83,7 @@ public final LongShortLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongShortLongTuple @Override public final Object exportElement(@NotNull final LongShortLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortLongColumnTupleSource( + return new ReinterpretedInstantShortLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortObjectColumnTupleSource.java index af4e704d1b4..6d3453090f3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortObjectColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortObjectColumnTupleSource( + public ReinterpretedInstantShortObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final LongShortObjectTuple createPreviousTuple(final long rowKey) { @Override public final LongShortObjectTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortObjectTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), values[2] ); @@ -84,7 +84,7 @@ public final LongShortObjectTuple createTupleFromReinterpretedValues(@NotNull fi @Override public final void exportElement(@NotNull final LongShortObjectTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -101,7 +101,7 @@ public final void exportElement(@NotNull final LongShortObjectTup @Override public final Object exportElement(@NotNull final LongShortObjectTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortObjectColumnTupleSource( + return new ReinterpretedInstantShortObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortReinterpretedBooleanColumnTupleSource.java index 07d1e760145..54f0a091cec 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortReinterpretedBooleanColumnTupleSource( + public ReinterpretedInstantShortReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final LongShortByteTuple createPreviousTuple(final long rowKey) { @Override public final LongShortByteTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortByteTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); @@ -85,7 +85,7 @@ public final LongShortByteTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortByteTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -102,7 +102,7 @@ public final void exportElement(@NotNull final LongShortByteTuple @Override public final Object exportElement(@NotNull final LongShortByteTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortReinterpretedBooleanColumnTupleSource( + return new ReinterpretedInstantShortReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortReinterpretedInstantColumnTupleSource.java index 85b3eec588b..b29f15ff79e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortReinterpretedDateTimeColumnTupleSource( + public ReinterpretedInstantShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,9 +64,9 @@ public final LongShortLongTuple createPreviousTuple(final long rowKey) { @Override public final LongShortLongTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortLongTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -83,7 +83,7 @@ public final LongShortLongTuple createTupleFromReinterpretedValues(@NotNull fina @Override public final void exportElement(@NotNull final LongShortLongTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final LongShortLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -100,13 +100,13 @@ public final void exportElement(@NotNull final LongShortLongTuple @Override public final Object exportElement(@NotNull final LongShortLongTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortReinterpretedDateTimeColumnTupleSource( + return new ReinterpretedInstantShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortShortColumnTupleSource.java index 540111143a4..60bd4b704d6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedDateTimeShortShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ReinterpretedInstantShortShortColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.LongShortShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Long, Short, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ReinterpretedDateTimeShortShortColumnTupleSource extends AbstractTupleSource { +public class ReinterpretedInstantShortShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedDateTimeShortShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ReinterpretedInstantShortShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ReinterpretedDateTimeShortShortColumnTupleSource( + public ReinterpretedInstantShortShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -64,7 +64,7 @@ public final LongShortShortTuple createPreviousTuple(final long rowKey) { @Override public final LongShortShortTuple createTupleFromValues(@NotNull final Object... values) { return new LongShortShortTuple( - DateTimeUtils.epochNanos((DateTime)values[0]), + DateTimeUtils.epochNanos((Instant)values[0]), TypeUtils.unbox((Short)values[1]), TypeUtils.unbox((Short)values[2]) ); @@ -83,7 +83,7 @@ public final LongShortShortTuple createTupleFromReinterpretedValues(@NotNull fin @Override public final void exportElement(@NotNull final LongShortShortTuple tuple, final int elementIndex, @NotNull final WritableColumnSource writableSource, final long destinationRowKey) { if (elementIndex == 0) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getFirstElement())); return; } if (elementIndex == 1) { @@ -100,7 +100,7 @@ public final void exportElement(@NotNull final LongShortShortTupl @Override public final Object exportElement(@NotNull final LongShortShortTuple tuple, int elementIndex) { if (elementIndex == 0) { - return DateTimeUtils.epochNanosToDateTime(tuple.getFirstElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getFirstElement()); } if (elementIndex == 1) { return TypeUtils.box(tuple.getSecondElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedDateTimeShortShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ReinterpretedInstantShortShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ReinterpretedDateTimeShortShortColumnTupleSource( + return new ReinterpretedInstantShortShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanInstantColumnTupleSource.java index 71dec2736a0..adf8dd4ed7f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanInstantColumnTupleSource.java @@ -11,32 +11,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Boolean, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Boolean, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ShortBooleanDateTimeColumnTupleSource( + public ShortBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ShortByteLongTuple createTupleFromValues(@NotNull final Object... v return new ShortByteLongTuple( TypeUtils.unbox((Short)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ShortByteLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ShortByteLongTuple( TypeUtils.unbox((Short)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortByteLongTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortByteLongTuple return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortByteLongTuple(chunk1.get(ii), BooleanUtils.booleanAsByte(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ShortBooleanDateTimeColumnTupleSource( + return new ShortBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanReinterpretedInstantColumnTupleSource.java index fe435b6f801..b50b63e4254 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Boolean, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortBooleanReinterpretedDateTimeColumnTupleSource( + public ShortBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ShortByteLongTuple createTupleFromValues(@NotNull final Object... v return new ShortByteLongTuple( TypeUtils.unbox((Short)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ShortByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ShortByteLongTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortBooleanReinterpretedDateTimeColumnTupleSource( + return new ShortBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteInstantColumnTupleSource.java index 2b27e87ce55..f1bf36347ad 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortByteDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortByteInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortByteDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortByteInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ShortByteDateTimeColumnTupleSource( + public ShortByteInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ShortByteLongTuple createTupleFromValues(@NotNull final Object... v return new ShortByteLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ShortByteLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ShortByteLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortByteLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortByteDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortByteInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ShortByteDateTimeColumnTupleSource( + return new ShortByteInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteReinterpretedInstantColumnTupleSource.java index 5bb21a84b1b..49e2fe7ebe6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortByteReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortByteLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortByteReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortByteReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortByteReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortByteReinterpretedDateTimeColumnTupleSource( + public ShortByteReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ShortByteLongTuple createTupleFromValues(@NotNull final Object... v return new ShortByteLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortByteLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortByteReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortByteReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortByteReinterpretedDateTimeColumnTupleSource( + return new ShortByteReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterInstantColumnTupleSource.java index 1ad39dc7185..75d79e301b9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Character, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Character, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortCharacterDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortCharacterInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortCharacterDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortCharacterInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ShortCharacterDateTimeColumnTupleSource( + public ShortCharacterInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ShortCharLongTuple createTupleFromValues(@NotNull final Object... v return new ShortCharLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ShortCharLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ShortCharLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortCharLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortCharLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); CharChunk chunk2 = chunks[1].asCharChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortCharLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortCharacterDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortCharacterInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ShortCharacterDateTimeColumnTupleSource( + return new ShortCharacterInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterReinterpretedInstantColumnTupleSource.java index 9c8ed1f45ba..35fdba34995 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortCharacterReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortCharLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Character, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortCharacterReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortCharacterReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortCharacterReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortCharacterReinterpretedDateTimeColumnTupleSource( + public ShortCharacterReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ShortCharLongTuple createTupleFromValues(@NotNull final Object... v return new ShortCharLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Character)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortCharLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortCharLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortCharacterReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortCharacterReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortCharacterReinterpretedDateTimeColumnTupleSource( + return new ShortCharacterReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleInstantColumnTupleSource.java index 20610b0dfa4..cbe8b49c5a6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Double, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Double, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDoubleDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortDoubleInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDoubleDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDoubleInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ShortDoubleDateTimeColumnTupleSource( + public ShortDoubleInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ShortDoubleLongTuple createTupleFromValues(@NotNull final Object... return new ShortDoubleLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ShortDoubleLongTuple createTupleFromReinterpretedValues(@NotNull fi return new ShortDoubleLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortDoubleLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortDoubleLongTup return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); DoubleChunk chunk2 = chunks[1].asDoubleChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortDoubleLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDoubleDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDoubleInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ShortDoubleDateTimeColumnTupleSource( + return new ShortDoubleInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleReinterpretedInstantColumnTupleSource.java index d3b41bf59c9..5daa997f4dd 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDoubleReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortDoubleLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Double, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDoubleReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortDoubleReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDoubleReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDoubleReinterpretedDateTimeColumnTupleSource( + public ShortDoubleReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ShortDoubleLongTuple createTupleFromValues(@NotNull final Object... return new ShortDoubleLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Double)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortDoubleLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortDoubleLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDoubleReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDoubleReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDoubleReinterpretedDateTimeColumnTupleSource( + return new ShortDoubleReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatInstantColumnTupleSource.java index f83b38487a3..3fd0e7d2e97 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Float, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Float, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortFloatDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortFloatInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortFloatDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortFloatInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ShortFloatDateTimeColumnTupleSource( + public ShortFloatInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ShortFloatLongTuple createTupleFromValues(@NotNull final Object... return new ShortFloatLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ShortFloatLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ShortFloatLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortFloatLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortFloatLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortFloatLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); FloatChunk chunk2 = chunks[1].asFloatChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortFloatLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortFloatDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortFloatInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ShortFloatDateTimeColumnTupleSource( + return new ShortFloatInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatReinterpretedInstantColumnTupleSource.java index 4e97202997b..04a87a876e9 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortFloatReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortFloatLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Float, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortFloatReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortFloatReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortFloatReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortFloatReinterpretedDateTimeColumnTupleSource( + public ShortFloatReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ShortFloatLongTuple createTupleFromValues(@NotNull final Object... return new ShortFloatLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Float)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortFloatLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortFloatLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortFloatReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortFloatReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortFloatReinterpretedDateTimeColumnTupleSource( + return new ShortFloatReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantBooleanColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantBooleanColumnTupleSource.java index 498fad2292c..4a242cf0194 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantBooleanColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and Boolean. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class ShortInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDateTimeBooleanColumnTupleSource( + public ShortInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ShortLongByteTuple createPreviousTuple(final long rowKey) { public final ShortLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongByteTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -75,7 +75,7 @@ public final ShortLongByteTuple createTupleFromValues(@NotNull final Object... v public final ShortLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongByteTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), BooleanUtils.booleanAsByte(chunk3.get(ii)))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeBooleanColumnTupleSource( + return new ShortInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantByteColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantByteColumnTupleSource.java index 4101759c526..42a4c88dc1f 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantByteColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class ShortInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeByteColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantByteColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDateTimeByteColumnTupleSource( + public ShortInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ShortLongByteTuple createPreviousTuple(final long rowKey) { public final ShortLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongByteTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -75,7 +75,7 @@ public final ShortLongByteTuple createTupleFromValues(@NotNull final Object... v public final ShortLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongByteTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeByteColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantByteColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeByteColumnTupleSource( + return new ShortInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantCharacterColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantCharacterColumnTupleSource.java index 715399c48fd..47046f666b8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantCharacterColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and Character. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class ShortInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeCharacterColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantCharacterColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDateTimeCharacterColumnTupleSource( + public ShortInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ShortLongCharTuple createPreviousTuple(final long rowKey) { public final ShortLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongCharTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -75,7 +75,7 @@ public final ShortLongCharTuple createTupleFromValues(@NotNull final Object... v public final ShortLongCharTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongCharTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongCharTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongCharTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongCharTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); CharChunk chunk3 = chunks[2].asCharChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongCharTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeCharacterColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantCharacterColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeCharacterColumnTupleSource( + return new ShortInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantColumnTupleSource.java similarity index 81% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantColumnTupleSource.java index c0b2f5feeaf..5eb2717667e 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantColumnTupleSource.java @@ -11,29 +11,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeColumnTupleSource}. **/ - public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ShortInstantColumnTupleSource}. **/ + public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; - public ShortDateTimeColumnTupleSource( + public ShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { super(columnSource1, columnSource2); this.columnSource1 = columnSource1; @@ -60,7 +60,7 @@ public final ShortLongTuple createPreviousTuple(final long rowKey) { public final ShortLongTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -68,7 +68,7 @@ public final ShortLongTuple createTupleFromValues(@NotNull final Object... value public final ShortLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final ShortLongTuple tup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final ShortLongTuple tuple, int eleme return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -103,7 +103,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongTuple tup return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -111,15 +111,15 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongTuple tup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)))); } destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements TwoColumnTupleSourceFactory { + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ShortInstantColumnTupleSource}. **/ + private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { } @@ -127,9 +127,9 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2 + @NotNull final ColumnSource columnSource2 ) { - return new ShortDateTimeColumnTupleSource( + return new ShortInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantDoubleColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantDoubleColumnTupleSource.java index 0ed642783a5..1ab1aa47da6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantDoubleColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and Double. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class ShortInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeDoubleColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantDoubleColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDateTimeDoubleColumnTupleSource( + public ShortInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ShortLongDoubleTuple createPreviousTuple(final long rowKey) { public final ShortLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongDoubleTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -75,7 +75,7 @@ public final ShortLongDoubleTuple createTupleFromValues(@NotNull final Object... public final ShortLongDoubleTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongDoubleTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongDoubleTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongDoubleTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongDoubleTup return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongDoubleTup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); DoubleChunk chunk3 = chunks[2].asDoubleChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongDoubleTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeDoubleColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantDoubleColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeDoubleColumnTupleSource( + return new ShortInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantFloatColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantFloatColumnTupleSource.java index c38138345d7..34c8c779bb2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantFloatColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and Float. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class ShortInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeFloatColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantFloatColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDateTimeFloatColumnTupleSource( + public ShortInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ShortLongFloatTuple createPreviousTuple(final long rowKey) { public final ShortLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongFloatTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -75,7 +75,7 @@ public final ShortLongFloatTuple createTupleFromValues(@NotNull final Object... public final ShortLongFloatTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongFloatTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongFloatTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongFloatTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongFloatTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongFloatTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); FloatChunk chunk3 = chunks[2].asFloatChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongFloatTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeFloatColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantFloatColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeFloatColumnTupleSource( + return new ShortInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantInstantColumnTupleSource.java similarity index 74% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantInstantColumnTupleSource.java index ab05308cae6..ac1f781fc01 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource2; + private final ColumnSource columnSource3; - public ShortDateTimeDateTimeColumnTupleSource( + public ShortInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -65,8 +65,8 @@ public final ShortLongLongTuple createPreviousTuple(final long rowKey) { public final ShortLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -74,8 +74,8 @@ public final ShortLongLongTuple createTupleFromValues(@NotNull final Object... v public final ShortLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final ShortLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final ShortLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -117,10 +117,10 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -129,16 +129,16 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeDateTimeColumnTupleSource( + return new ShortInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantIntegerColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantIntegerColumnTupleSource.java index c022c07b8f3..0578a7029e2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantIntegerColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and Integer. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class ShortInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeIntegerColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantIntegerColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDateTimeIntegerColumnTupleSource( + public ShortInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ShortLongIntTuple createPreviousTuple(final long rowKey) { public final ShortLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongIntTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -75,7 +75,7 @@ public final ShortLongIntTuple createTupleFromValues(@NotNull final Object... va public final ShortLongIntTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongIntTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongIntTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongIntTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongIntTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongIntTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); IntChunk chunk3 = chunks[2].asIntChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongIntTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeIntegerColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantIntegerColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeIntegerColumnTupleSource( + return new ShortInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantLongColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantLongColumnTupleSource.java index 8358e892c49..4cb1f0bbdcd 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantLongColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class ShortInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeLongColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantLongColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDateTimeLongColumnTupleSource( + public ShortInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,7 +66,7 @@ public final ShortLongLongTuple createPreviousTuple(final long rowKey) { public final ShortLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -75,7 +75,7 @@ public final ShortLongLongTuple createTupleFromValues(@NotNull final Object... v public final ShortLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeLongColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantLongColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeLongColumnTupleSource( + return new ShortInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantObjectColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantObjectColumnTupleSource.java index a08e4f98410..dabad9079f3 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantObjectColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and Object. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class ShortInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeObjectColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantObjectColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDateTimeObjectColumnTupleSource( + public ShortInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final ShortLongObjectTuple createPreviousTuple(final long rowKey) { public final ShortLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongObjectTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -74,7 +74,7 @@ public final ShortLongObjectTuple createTupleFromValues(@NotNull final Object... public final ShortLongObjectTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongObjectTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ShortLongObjectTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ShortLongObjectTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongObjectTup return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongObjectTup protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongObjectTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeObjectColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantObjectColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeObjectColumnTupleSource( + return new ShortInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantReinterpretedBooleanColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantReinterpretedBooleanColumnTupleSource.java index d8f0f2f6dba..37361b897b1 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantReinterpretedBooleanColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and Byte. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ShortInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeReinterpretedBooleanColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantReinterpretedBooleanColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDateTimeReinterpretedBooleanColumnTupleSource( + public ShortInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -67,7 +67,7 @@ public final ShortLongByteTuple createPreviousTuple(final long rowKey) { public final ShortLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongByteTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -76,7 +76,7 @@ public final ShortLongByteTuple createTupleFromValues(@NotNull final Object... v public final ShortLongByteTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongByteTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ShortLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ShortLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -119,7 +119,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongByteTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -131,7 +131,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongByteTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ByteChunk chunk3 = chunks[2].asByteChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongByteTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -139,8 +139,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeReinterpretedBooleanColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantReinterpretedBooleanColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,10 +148,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeReinterpretedBooleanColumnTupleSource( + return new ShortInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantReinterpretedInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantReinterpretedInstantColumnTupleSource.java index bf73b688c45..4e1ec3fce11 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantReinterpretedInstantColumnTupleSource.java @@ -12,30 +12,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and Long. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantReinterpretedInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDateTimeReinterpretedDateTimeColumnTupleSource( + public ShortInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -66,8 +66,8 @@ public final ShortLongLongTuple createPreviousTuple(final long rowKey) { public final ShortLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ShortLongLongTuple createTupleFromValues(@NotNull final Object... v public final ShortLongLongTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final ShortLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final ShortLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongLongTuple return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -130,7 +130,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongLongTuple protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); LongChunk chunk3 = chunks[2].asLongChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongLongTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -138,8 +138,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeReinterpretedDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantReinterpretedInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,10 +147,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeReinterpretedDateTimeColumnTupleSource( + return new ShortInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantShortColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantShortColumnTupleSource.java index 4cd1563ed28..7459d911321 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortInstantShortColumnTupleSource.java @@ -11,30 +11,30 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, DateTime, and Short. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Instant, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class ShortInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortDateTimeShortColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortInstantShortColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; - private final ColumnSource columnSource2; + private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortDateTimeShortColumnTupleSource( + public ShortInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); @@ -65,7 +65,7 @@ public final ShortLongShortTuple createPreviousTuple(final long rowKey) { public final ShortLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongShortTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -74,7 +74,7 @@ public final ShortLongShortTuple createTupleFromValues(@NotNull final Object... public final ShortLongShortTuple createTupleFromReinterpretedValues(@NotNull final Object... values) { return new ShortLongShortTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ShortLongShortTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ShortLongShortTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -117,7 +117,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongShortTupl return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -129,7 +129,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongShortTupl protected void convertChunks(@NotNull WritableChunk destination, int chunkSize, Chunk [] chunks) { WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); - ObjectChunk chunk2 = chunks[1].asObjectChunk(); + ObjectChunk chunk2 = chunks[1].asObjectChunk(); ShortChunk chunk3 = chunks[2].asShortChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongShortTuple(chunk1.get(ii), DateTimeUtils.epochNanos(chunk2.get(ii)), chunk3.get(ii))); @@ -137,8 +137,8 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortDateTimeShortColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortInstantShortColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -146,10 +146,10 @@ private Factory() { @Override public TupleSource create( @NotNull final ColumnSource columnSource1, - @NotNull final ColumnSource columnSource2, + @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortDateTimeShortColumnTupleSource( + return new ShortInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerInstantColumnTupleSource.java index 210e2c5ebc7..d6f564be5b2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Integer, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Integer, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortIntegerDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortIntegerInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortIntegerDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortIntegerInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ShortIntegerDateTimeColumnTupleSource( + public ShortIntegerInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ShortIntLongTuple createTupleFromValues(@NotNull final Object... va return new ShortIntLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ShortIntLongTuple createTupleFromReinterpretedValues(@NotNull final return new ShortIntLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortIntLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortIntLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortIntLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); IntChunk chunk2 = chunks[1].asIntChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortIntLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortIntegerDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortIntegerInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ShortIntegerDateTimeColumnTupleSource( + return new ShortIntegerInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerReinterpretedInstantColumnTupleSource.java index ad0f244dea9..c42e0b973e2 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortIntegerReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortIntLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Integer, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortIntegerReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortIntegerReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortIntegerReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortIntegerReinterpretedDateTimeColumnTupleSource( + public ShortIntegerReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ShortIntLongTuple createTupleFromValues(@NotNull final Object... va return new ShortIntLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Integer)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortIntLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortIntLongTuple tuple, int el return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortIntegerReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortIntegerReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortIntegerReinterpretedDateTimeColumnTupleSource( + return new ShortIntegerReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongInstantColumnTupleSource.java index 7adc92af06d..e2d39d9aa83 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortLongDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortLongInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortLongDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortLongInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ShortLongDateTimeColumnTupleSource( + public ShortLongInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -67,7 +67,7 @@ public final ShortLongLongTuple createTupleFromValues(@NotNull final Object... v return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ShortLongLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortLongLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortLongDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortLongInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ShortLongDateTimeColumnTupleSource( + return new ShortLongInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongReinterpretedInstantColumnTupleSource.java index ed4376532ca..e46d2787089 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortLongReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortLongReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortLongReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortLongReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortLongReinterpretedDateTimeColumnTupleSource( + public ShortLongReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ShortLongLongTuple createTupleFromValues(@NotNull final Object... v return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ShortLongLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ShortLongLongTuple tuple, int e return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortLongReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortLongReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortLongReinterpretedDateTimeColumnTupleSource( + return new ShortLongReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectInstantColumnTupleSource.java index 80f4edd8e0b..4c1edb9b53b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Object, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Object, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortObjectDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortObjectInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortObjectDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortObjectInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ShortObjectDateTimeColumnTupleSource( + public ShortObjectInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final ShortObjectLongTuple createTupleFromValues(@NotNull final Object... return new ShortObjectLongTuple( TypeUtils.unbox((Short)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ShortObjectLongTuple createTupleFromReinterpretedValues(@NotNull fi return new ShortObjectLongTuple( TypeUtils.unbox((Short)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ShortObjectLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ShortObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortObjectLongTup return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); ObjectChunk chunk2 = chunks[1].asObjectChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortObjectLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortObjectDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortObjectInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ShortObjectDateTimeColumnTupleSource( + return new ShortObjectInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectReinterpretedInstantColumnTupleSource.java index 5c286196b9d..ac4932ea123 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortObjectReinterpretedInstantColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortObjectLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Object, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortObjectReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortObjectReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortObjectReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortObjectReinterpretedDateTimeColumnTupleSource( + public ShortObjectReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ShortObjectLongTuple createTupleFromValues(@NotNull final Object... return new ShortObjectLongTuple( TypeUtils.unbox((Short)values[0]), values[1], - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -92,7 +92,7 @@ public final void exportElement(@NotNull final ShortObjectLongTup return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -107,7 +107,7 @@ public final Object exportElement(@NotNull final ShortObjectLongTuple tuple, int return tuple.getSecondElement(); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortObjectReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortObjectReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortObjectReinterpretedDateTimeColumnTupleSource( + return new ShortObjectReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanInstantColumnTupleSource.java similarity index 82% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanInstantColumnTupleSource.java index d09d194ea02..d5f91de4a58 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanInstantColumnTupleSource.java @@ -12,32 +12,32 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Byte, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Byte, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedBooleanDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedBooleanInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedBooleanDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedBooleanInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ShortReinterpretedBooleanDateTimeColumnTupleSource( + public ShortReinterpretedBooleanInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -68,7 +68,7 @@ public final ShortByteLongTuple createTupleFromValues(@NotNull final Object... v return new ShortByteLongTuple( TypeUtils.unbox((Short)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -77,7 +77,7 @@ public final ShortByteLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ShortByteLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Byte)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ShortByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ShortByteLongTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -122,7 +122,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortByteLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -132,15 +132,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); ByteChunk chunk2 = chunks[1].asByteChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortByteLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedBooleanDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedBooleanInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -149,9 +149,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedBooleanDateTimeColumnTupleSource( + return new ShortReinterpretedBooleanInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanReinterpretedInstantColumnTupleSource.java index e2d9f732cdb..e225c270949 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedBooleanReinterpretedInstantColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortByteLongTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Byte, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedBooleanReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedBooleanReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + public ShortReinterpretedBooleanReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -68,7 +68,7 @@ public final ShortByteLongTuple createTupleFromValues(@NotNull final Object... v return new ShortByteLongTuple( TypeUtils.unbox((Short)values[0]), BooleanUtils.booleanAsByte((Boolean)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -93,7 +93,7 @@ public final void exportElement(@NotNull final ShortByteLongTuple return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -108,7 +108,7 @@ public final Object exportElement(@NotNull final ShortByteLongTuple tuple, int e return BooleanUtils.byteAsBoolean(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedBooleanReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedBooleanReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedBooleanReinterpretedDateTimeColumnTupleSource( + return new ShortReinterpretedBooleanReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantBooleanColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantBooleanColumnTupleSource.java index d341955584b..348c7069d8b 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Boolean. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeBooleanColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeBooleanColumnTupleSource( + public ShortReinterpretedInstantBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ShortLongByteTuple createPreviousTuple(final long rowKey) { public final ShortLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongByteTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ShortLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ShortLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeBooleanColumnTupleSource( + return new ShortReinterpretedInstantBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeByteColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantByteColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeByteColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantByteColumnTupleSource.java index 3ad14faf20e..0e85aa8bbf5 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeByteColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantByteColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongByteTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeByteColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantByteColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantByteColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeByteColumnTupleSource( + public ShortReinterpretedInstantByteColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ShortLongByteTuple createPreviousTuple(final long rowKey) { public final ShortLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongByteTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Byte)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeByteColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantByteColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeByteColumnTupleSource( + return new ShortReinterpretedInstantByteColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeCharacterColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantCharacterColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeCharacterColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantCharacterColumnTupleSource.java index 8f4c88746c0..92aac8d96be 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeCharacterColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantCharacterColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongCharTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Character. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeCharacterColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantCharacterColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantCharacterColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeCharacterColumnTupleSource( + public ShortReinterpretedInstantCharacterColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ShortLongCharTuple createPreviousTuple(final long rowKey) { public final ShortLongCharTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongCharTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Character)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongCharTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongCharTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeCharacterColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantCharacterColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeCharacterColumnTupleSource( + return new ShortReinterpretedInstantCharacterColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantColumnTupleSource.java index f08c344e6a8..d9c5cfd69a6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantColumnTupleSource.java @@ -11,27 +11,27 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.TwoColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantColumnTupleSource}. **/ public static final TwoColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - public ShortReinterpretedDateTimeColumnTupleSource( + public ShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { @@ -60,7 +60,7 @@ public final ShortLongTuple createPreviousTuple(final long rowKey) { public final ShortLongTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]) + DateTimeUtils.epochNanos((Instant)values[1]) ); } @@ -80,7 +80,7 @@ public final void exportElement(@NotNull final ShortLongTuple tup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -92,7 +92,7 @@ public final Object exportElement(@NotNull final ShortLongTuple tuple, int eleme return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } throw new IllegalArgumentException("Bad elementIndex for 2 element tuple: " + elementIndex); } @@ -118,7 +118,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destination.setSize(chunkSize); } - /** {@link TwoColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link TwoColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements TwoColumnTupleSourceFactory { private Factory() { @@ -129,7 +129,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2 ) { - return new ShortReinterpretedDateTimeColumnTupleSource( + return new ShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2 ); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeDoubleColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantDoubleColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeDoubleColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantDoubleColumnTupleSource.java index a4010ce922c..613bcc05589 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeDoubleColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantDoubleColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongDoubleTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Double. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeDoubleColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantDoubleColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantDoubleColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeDoubleColumnTupleSource( + public ShortReinterpretedInstantDoubleColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ShortLongDoubleTuple createPreviousTuple(final long rowKey) { public final ShortLongDoubleTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongDoubleTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Double)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongDoubleTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongDoubleTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeDoubleColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantDoubleColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeDoubleColumnTupleSource( + return new ShortReinterpretedInstantDoubleColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeFloatColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantFloatColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeFloatColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantFloatColumnTupleSource.java index b9159b3d593..6a919cfb974 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeFloatColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantFloatColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongFloatTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Float. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeFloatColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantFloatColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantFloatColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeFloatColumnTupleSource( + public ShortReinterpretedInstantFloatColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ShortLongFloatTuple createPreviousTuple(final long rowKey) { public final ShortLongFloatTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongFloatTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Float)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongFloatTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongFloatTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeFloatColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantFloatColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeFloatColumnTupleSource( + return new ShortReinterpretedInstantFloatColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantInstantColumnTupleSource.java similarity index 79% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantInstantColumnTupleSource.java index 3ba8348f1db..e7dac4019aa 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantInstantColumnTupleSource.java @@ -12,31 +12,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeDateTimeColumnTupleSource( + public ShortReinterpretedInstantInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,8 +66,8 @@ public final ShortLongLongTuple createPreviousTuple(final long rowKey) { public final ShortLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -76,7 +76,7 @@ public final ShortLongLongTuple createTupleFromReinterpretedValues(@NotNull fina return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Long)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -88,11 +88,11 @@ public final void exportElement(@NotNull final ShortLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -104,10 +104,10 @@ public final Object exportElement(@NotNull final ShortLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -121,7 +121,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortLongLongTuple return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -131,15 +131,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); LongChunk chunk2 = chunks[1].asLongChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortLongLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -148,9 +148,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeDateTimeColumnTupleSource( + return new ShortReinterpretedInstantInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeIntegerColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantIntegerColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeIntegerColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantIntegerColumnTupleSource.java index f7bd255e36b..678d3850df6 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeIntegerColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantIntegerColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongIntTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Integer. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeIntegerColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantIntegerColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantIntegerColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeIntegerColumnTupleSource( + public ShortReinterpretedInstantIntegerColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ShortLongIntTuple createPreviousTuple(final long rowKey) { public final ShortLongIntTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongIntTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Integer)values[2]) ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongIntTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongIntTuple tuple, int el return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeIntegerColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantIntegerColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeIntegerColumnTupleSource( + return new ShortReinterpretedInstantIntegerColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeLongColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantLongColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeLongColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantLongColumnTupleSource.java index 0b524098866..537b8566879 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeLongColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantLongColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeLongColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantLongColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantLongColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeLongColumnTupleSource( + public ShortReinterpretedInstantLongColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final ShortLongLongTuple createPreviousTuple(final long rowKey) { public final ShortLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Long)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ShortLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ShortLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeLongColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantLongColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeLongColumnTupleSource( + return new ShortReinterpretedInstantLongColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeObjectColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantObjectColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeObjectColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantObjectColumnTupleSource.java index ba5c1ff4336..977dbbfaa89 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeObjectColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantObjectColumnTupleSource.java @@ -12,28 +12,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongObjectTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Object. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeObjectColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantObjectColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantObjectColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeObjectColumnTupleSource( + public ShortReinterpretedInstantObjectColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ShortLongObjectTuple createPreviousTuple(final long rowKey) { public final ShortLongObjectTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongObjectTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), values[2] ); } @@ -88,7 +88,7 @@ public final void exportElement(@NotNull final ShortLongObjectTup return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -104,7 +104,7 @@ public final Object exportElement(@NotNull final ShortLongObjectTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return tuple.getThirdElement(); @@ -138,7 +138,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeObjectColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantObjectColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -150,7 +150,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeObjectColumnTupleSource( + return new ShortReinterpretedInstantObjectColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantReinterpretedBooleanColumnTupleSource.java similarity index 89% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantReinterpretedBooleanColumnTupleSource.java index 71ac9f5fb9c..9540d249240 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeReinterpretedBooleanColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantReinterpretedBooleanColumnTupleSource.java @@ -12,29 +12,29 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongByteTuple; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Byte. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantReinterpretedBooleanColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + public ShortReinterpretedInstantReinterpretedBooleanColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -67,7 +67,7 @@ public final ShortLongByteTuple createPreviousTuple(final long rowKey) { public final ShortLongByteTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongByteTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), BooleanUtils.booleanAsByte((Boolean)values[2]) ); } @@ -89,7 +89,7 @@ public final void exportElement(@NotNull final ShortLongByteTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -105,7 +105,7 @@ public final Object exportElement(@NotNull final ShortLongByteTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return BooleanUtils.byteAsBoolean(tuple.getThirdElement()); @@ -139,7 +139,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeReinterpretedBooleanColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantReinterpretedBooleanColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -151,7 +151,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeReinterpretedBooleanColumnTupleSource( + return new ShortReinterpretedInstantReinterpretedBooleanColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantReinterpretedInstantColumnTupleSource.java similarity index 86% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantReinterpretedInstantColumnTupleSource.java index 773d29895a6..9230f1646ef 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + public ShortReinterpretedInstantReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,8 +65,8 @@ public final ShortLongLongTuple createPreviousTuple(final long rowKey) { public final ShortLongLongTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongLongTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[1]), + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -87,11 +87,11 @@ public final void exportElement(@NotNull final ShortLongLongTuple return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -103,10 +103,10 @@ public final Object exportElement(@NotNull final ShortLongLongTuple tuple, int e return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeReinterpretedDateTimeColumnTupleSource( + return new ShortReinterpretedInstantReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeShortColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantShortColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeShortColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantShortColumnTupleSource.java index 99dcf50cd97..0f30382c9c7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedDateTimeShortColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortReinterpretedInstantShortColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortLongShortTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Long, and Short. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortReinterpretedDateTimeShortColumnTupleSource extends AbstractTupleSource { +public class ShortReinterpretedInstantShortColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortReinterpretedInstantShortColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortReinterpretedDateTimeShortColumnTupleSource( + public ShortReinterpretedInstantShortColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -65,7 +65,7 @@ public final ShortLongShortTuple createPreviousTuple(final long rowKey) { public final ShortLongShortTuple createTupleFromValues(@NotNull final Object... values) { return new ShortLongShortTuple( TypeUtils.unbox((Short)values[0]), - DateTimeUtils.epochNanos((DateTime)values[1]), + DateTimeUtils.epochNanos((Instant)values[1]), TypeUtils.unbox((Short)values[2]) ); } @@ -87,7 +87,7 @@ public final void exportElement(@NotNull final ShortLongShortTupl return; } if (elementIndex == 1) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getSecondElement())); return; } if (elementIndex == 2) { @@ -103,7 +103,7 @@ public final Object exportElement(@NotNull final ShortLongShortTuple tuple, int return TypeUtils.box(tuple.getFirstElement()); } if (elementIndex == 1) { - return DateTimeUtils.epochNanosToDateTime(tuple.getSecondElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getSecondElement()); } if (elementIndex == 2) { return TypeUtils.box(tuple.getThirdElement()); @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedDateTimeShortColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortReinterpretedInstantShortColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortReinterpretedDateTimeShortColumnTupleSource( + return new ShortReinterpretedInstantShortColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortInstantColumnTupleSource.java similarity index 83% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortInstantColumnTupleSource.java index 04bf04de82b..c9d16b193d7 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortInstantColumnTupleSource.java @@ -11,31 +11,31 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** - *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Short, and DateTime. + *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Short, and Instant. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortShortDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortShortInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortShortDateTimeColumnTupleSource}. **/ - public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortShortInstantColumnTupleSource}. **/ + public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; - private final ColumnSource columnSource3; + private final ColumnSource columnSource3; - public ShortShortDateTimeColumnTupleSource( + public ShortShortInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { super(columnSource1, columnSource2, columnSource3); this.columnSource1 = columnSource1; @@ -66,7 +66,7 @@ public final ShortShortLongTuple createTupleFromValues(@NotNull final Object... return new ShortShortLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -75,7 +75,7 @@ public final ShortShortLongTuple createTupleFromReinterpretedValues(@NotNull fin return new ShortShortLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ShortShortLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ShortShortLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -120,7 +120,7 @@ public final Object exportElementReinterpreted(@NotNull final ShortShortLongTupl return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -130,15 +130,15 @@ protected void convertChunks(@NotNull WritableChunk destination, WritableObjectChunk destinationObjectChunk = destination.asWritableObjectChunk(); ShortChunk chunk1 = chunks[0].asShortChunk(); ShortChunk chunk2 = chunks[1].asShortChunk(); - ObjectChunk chunk3 = chunks[2].asObjectChunk(); + ObjectChunk chunk3 = chunks[2].asObjectChunk(); for (int ii = 0; ii < chunkSize; ++ii) { destinationObjectChunk.set(ii, new ShortShortLongTuple(chunk1.get(ii), chunk2.get(ii), DateTimeUtils.epochNanos(chunk3.get(ii)))); } destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortShortDateTimeColumnTupleSource}. **/ - private static final class Factory implements ThreeColumnTupleSourceFactory { + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortShortInstantColumnTupleSource}. **/ + private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { } @@ -147,9 +147,9 @@ private Factory() { public TupleSource create( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, - @NotNull final ColumnSource columnSource3 + @NotNull final ColumnSource columnSource3 ) { - return new ShortShortDateTimeColumnTupleSource( + return new ShortShortInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortReinterpretedDateTimeColumnTupleSource.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortReinterpretedInstantColumnTupleSource.java similarity index 90% rename from engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortReinterpretedDateTimeColumnTupleSource.java rename to engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortReinterpretedInstantColumnTupleSource.java index 22da4737ceb..474df3c8eef 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortReinterpretedDateTimeColumnTupleSource.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/generated/ShortShortReinterpretedInstantColumnTupleSource.java @@ -11,28 +11,28 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.tuplesource.AbstractTupleSource; import io.deephaven.engine.table.impl.tuplesource.ThreeColumnTupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.generated.ShortShortLongTuple; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; /** *

    {@link TupleSource} that produces key column values from {@link ColumnSource} types Short, Short, and Long. *

    Generated by io.deephaven.replicators.TupleSourceCodeGenerator. */ @SuppressWarnings({"unused", "WeakerAccess"}) -public class ShortShortReinterpretedDateTimeColumnTupleSource extends AbstractTupleSource { +public class ShortShortReinterpretedInstantColumnTupleSource extends AbstractTupleSource { - /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} instance to create instances of {@link ShortShortReinterpretedInstantColumnTupleSource}. **/ public static final ThreeColumnTupleSourceFactory FACTORY = new Factory(); private final ColumnSource columnSource1; private final ColumnSource columnSource2; private final ColumnSource columnSource3; - public ShortShortReinterpretedDateTimeColumnTupleSource( + public ShortShortReinterpretedInstantColumnTupleSource( @NotNull final ColumnSource columnSource1, @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 @@ -66,7 +66,7 @@ public final ShortShortLongTuple createTupleFromValues(@NotNull final Object... return new ShortShortLongTuple( TypeUtils.unbox((Short)values[0]), TypeUtils.unbox((Short)values[1]), - DateTimeUtils.epochNanos((DateTime)values[2]) + DateTimeUtils.epochNanos((Instant)values[2]) ); } @@ -91,7 +91,7 @@ public final void exportElement(@NotNull final ShortShortLongTupl return; } if (elementIndex == 2) { - writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement())); + writableSource.set(destinationRowKey, (ELEMENT_TYPE) DateTimeUtils.epochNanosToInstant(tuple.getThirdElement())); return; } throw new IndexOutOfBoundsException("Invalid element index " + elementIndex + " for export"); @@ -106,7 +106,7 @@ public final Object exportElement(@NotNull final ShortShortLongTuple tuple, int return TypeUtils.box(tuple.getSecondElement()); } if (elementIndex == 2) { - return DateTimeUtils.epochNanosToDateTime(tuple.getThirdElement()); + return DateTimeUtils.epochNanosToInstant(tuple.getThirdElement()); } throw new IllegalArgumentException("Bad elementIndex for 3 element tuple: " + elementIndex); } @@ -137,7 +137,7 @@ protected void convertChunks(@NotNull WritableChunk destination, destinationObjectChunk.setSize(chunkSize); } - /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortShortReinterpretedDateTimeColumnTupleSource}. **/ + /** {@link ThreeColumnTupleSourceFactory} for instances of {@link ShortShortReinterpretedInstantColumnTupleSource}. **/ private static final class Factory implements ThreeColumnTupleSourceFactory { private Factory() { @@ -149,7 +149,7 @@ public TupleSource create( @NotNull final ColumnSource columnSource2, @NotNull final ColumnSource columnSource3 ) { - return new ShortShortReinterpretedDateTimeColumnTupleSource( + return new ShortShortReinterpretedInstantColumnTupleSource( columnSource1, columnSource2, columnSource3 From ce47f6bfef0f617878d037c9dc63c1b6dcbc5cde Mon Sep 17 00:00:00 2001 From: Ryan Caudy Date: Wed, 24 May 2023 15:23:11 -0400 Subject: [PATCH 04/11] Get rid of DateTimeArraySource and DateTimeSparseArraySource, and clean up classes that used them. --- .../java/io/deephaven/engine/table/Table.java | 1 + ...meSetResult.java => InstantSetResult.java} | 13 ++- .../ssmminmax/SsmChunkedMinMaxOperator.java | 8 +- ....java => InstantPercentileTypeHelper.java} | 11 +-- .../SsmChunkedPercentileOperator.java | 18 ++-- .../impl/sources/ArrayBackedColumnSource.java | 42 +++----- .../impl/sources/DateTimeArraySource.java | 39 -------- .../sources/DateTimeSparseArraySource.java | 36 ------- .../sources/NanosBasedTimeArraySource.java | 11 +-- .../NanosBasedTimeSparseArraySource.java | 11 +-- .../impl/sources/SparseArrayColumnSource.java | 7 +- .../RegionedColumnSourceDateTime.java | 95 ------------------- .../engine/table/impl/util/ColumnHolder.java | 33 +++---- .../impl/select/TestReinterpretedColumn.java | 68 ++++--------- .../util/TestTailInitializationFilter.java | 2 +- .../deephaven/engine/util/TestTableTools.java | 2 +- .../deephaven/engine/testutil/ColumnInfo.java | 2 +- .../main/java/io/deephaven/csv/CsvTools.java | 56 +++++------ 18 files changed, 108 insertions(+), 347 deletions(-) rename engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmminmax/{DateTimeSetResult.java => InstantSetResult.java} (78%) rename engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmpercentile/{DateTimePercentileTypeHelper.java => InstantPercentileTypeHelper.java} (92%) delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeArraySource.java delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeSparseArraySource.java delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceDateTime.java diff --git a/engine/api/src/main/java/io/deephaven/engine/table/Table.java b/engine/api/src/main/java/io/deephaven/engine/table/Table.java index 9071bdd7c7d..dadce5b3af8 100644 --- a/engine/api/src/main/java/io/deephaven/engine/table/Table.java +++ b/engine/api/src/main/java/io/deephaven/engine/table/Table.java @@ -359,6 +359,7 @@ public interface Table extends @ConcurrentMethod Table moveColumns(int index, boolean moveToEnd, String... columnsToMove); + // TODO-RWC: This needs a new immutable wrapping a pair and a target type /** * Produce a new table with the same columns as this table, but with a new column presenting the specified DateTime * column as a Long column (with each DateTime represented instead as the corresponding number of nanos since the diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmminmax/DateTimeSetResult.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmminmax/InstantSetResult.java similarity index 78% rename from engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmminmax/DateTimeSetResult.java rename to engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmminmax/InstantSetResult.java index c591001dccc..24d25cd5137 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmminmax/DateTimeSetResult.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmminmax/InstantSetResult.java @@ -4,19 +4,18 @@ package io.deephaven.engine.table.impl.by.ssmminmax; import io.deephaven.engine.table.WritableColumnSource; -import io.deephaven.util.QueryConstants; -import io.deephaven.engine.table.impl.sources.DateTimeArraySource; +import io.deephaven.engine.table.impl.sources.InstantArraySource; import io.deephaven.engine.table.impl.ssms.LongSegmentedSortedMultiset; import io.deephaven.engine.table.impl.ssms.SegmentedSortedMultiSet; +import io.deephaven.util.QueryConstants; - -public class DateTimeSetResult implements SsmChunkedMinMaxOperator.SetResult { +public class InstantSetResult implements SsmChunkedMinMaxOperator.SetResult { private final boolean minimum; - private final DateTimeArraySource resultColumn; + private final InstantArraySource resultColumn; - public DateTimeSetResult(boolean minimum, WritableColumnSource resultColumn) { + public InstantSetResult(boolean minimum, WritableColumnSource resultColumn) { this.minimum = minimum; - this.resultColumn = (DateTimeArraySource) resultColumn; + this.resultColumn = (InstantArraySource) resultColumn; } @Override diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmminmax/SsmChunkedMinMaxOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmminmax/SsmChunkedMinMaxOperator.java index 8f2778cf44f..12d637c1a7f 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmminmax/SsmChunkedMinMaxOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmminmax/SsmChunkedMinMaxOperator.java @@ -9,7 +9,6 @@ import io.deephaven.configuration.Configuration; import io.deephaven.engine.rowset.chunkattributes.RowKeys; import io.deephaven.engine.table.WritableColumnSource; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.by.IterativeChunkedAggregationOperator; import io.deephaven.engine.table.impl.sources.ArrayBackedColumnSource; import io.deephaven.engine.table.ColumnSource; @@ -18,6 +17,7 @@ import io.deephaven.engine.table.impl.ssms.SegmentedSortedMultiSet; import io.deephaven.engine.table.impl.util.compact.CompactKernel; +import java.time.Instant; import java.util.Collections; import java.util.Map; import java.util.function.Supplier; @@ -47,7 +47,7 @@ public SsmChunkedMinMaxOperator( // region resultColumn initialization this.resultColumn = ArrayBackedColumnSource.getMemoryColumnSource(0, type); // endregion resultColumn initialization - if (type == DateTime.class) { + if (type == Instant.class) { chunkType = ChunkType.Long; } else { chunkType = ChunkType.fromElementType(type); @@ -60,8 +60,8 @@ public SsmChunkedMinMaxOperator( private static SetResult makeSetResult(ChunkType chunkType, Class type, boolean minimum, WritableColumnSource resultColumn) { - if (type == DateTime.class) { - return new DateTimeSetResult(minimum, resultColumn); + if (type == Instant.class) { + return new InstantSetResult(minimum, resultColumn); } else if (type == Boolean.class) { return new BooleanSetResult(minimum, resultColumn); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmpercentile/DateTimePercentileTypeHelper.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmpercentile/InstantPercentileTypeHelper.java similarity index 92% rename from engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmpercentile/DateTimePercentileTypeHelper.java rename to engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmpercentile/InstantPercentileTypeHelper.java index 5fcf439ceeb..923b82c1286 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmpercentile/DateTimePercentileTypeHelper.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmpercentile/InstantPercentileTypeHelper.java @@ -6,8 +6,8 @@ import io.deephaven.chunk.attributes.ChunkLengths; import io.deephaven.chunk.attributes.Values; import io.deephaven.engine.table.WritableColumnSource; +import io.deephaven.engine.table.impl.sources.InstantArraySource; import io.deephaven.util.compare.LongComparisons; -import io.deephaven.engine.table.impl.sources.DateTimeArraySource; import io.deephaven.chunk.Chunk; import io.deephaven.chunk.IntChunk; import io.deephaven.chunk.LongChunk; @@ -16,15 +16,14 @@ import io.deephaven.util.QueryConstants; import org.apache.commons.lang3.mutable.MutableInt; - -public class DateTimePercentileTypeHelper implements SsmChunkedPercentileOperator.PercentileTypeHelper { +public class InstantPercentileTypeHelper implements SsmChunkedPercentileOperator.PercentileTypeHelper { private final double percentile; - private final DateTimeArraySource resultColumn; + private final InstantArraySource resultColumn; - DateTimePercentileTypeHelper(double percentile, WritableColumnSource resultColumn) { + InstantPercentileTypeHelper(double percentile, WritableColumnSource resultColumn) { this.percentile = percentile; // region resultColumn - this.resultColumn = (DateTimeArraySource) resultColumn; + this.resultColumn = (InstantArraySource) resultColumn; // endregion } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmpercentile/SsmChunkedPercentileOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmpercentile/SsmChunkedPercentileOperator.java index 1af2443f822..61847314a70 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmpercentile/SsmChunkedPercentileOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmpercentile/SsmChunkedPercentileOperator.java @@ -11,7 +11,6 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.rowset.chunkattributes.RowKeys; import io.deephaven.engine.table.WritableColumnSource; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.by.IterativeChunkedAggregationOperator; import io.deephaven.engine.table.impl.sources.*; import io.deephaven.chunk.*; @@ -20,6 +19,7 @@ import org.apache.commons.lang3.mutable.MutableInt; import org.jetbrains.annotations.NotNull; +import java.time.Instant; import java.util.Collections; import java.util.Map; import java.util.function.Supplier; @@ -46,16 +46,16 @@ public class SsmChunkedPercentileOperator implements IterativeChunkedAggregation public SsmChunkedPercentileOperator(Class type, double percentile, boolean averageEvenlyDivided, String name) { this.name = name; this.ssms = new ObjectArraySource<>(SegmentedSortedMultiSet.class); - final boolean isDateTime = type == DateTime.class; - if (isDateTime) { + final boolean isInstant = type == Instant.class; + if (isInstant) { chunkType = ChunkType.Long; } else { chunkType = ChunkType.fromElementType(type); } - if (isDateTime) { + if (isInstant) { internalResult = new LongArraySource(); // noinspection unchecked - externalResult = new BoxedColumnSource.OfDateTime(internalResult); + externalResult = new BoxedColumnSource.OfInstant(internalResult); averageEvenlyDivided = false; } else { if (averageEvenlyDivided) { @@ -138,12 +138,14 @@ private static PercentileTypeHelper makeTypeHelper(ChunkType chunkType, Class } @NotNull - private static PercentileTypeHelper makeObjectHelper(Class type, double percentile, + private static PercentileTypeHelper makeObjectHelper( + Class type, + double percentile, WritableColumnSource resultColumn) { if (type == Boolean.class) { return new BooleanPercentileTypeHelper(percentile, resultColumn); - } else if (type == DateTime.class) { - return new DateTimePercentileTypeHelper(percentile, resultColumn); + } else if (type == Instant.class) { + return new InstantPercentileTypeHelper(percentile, resultColumn); } else { return new ObjectPercentileTypeHelper(percentile, resultColumn); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ArrayBackedColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ArrayBackedColumnSource.java index f7e68e43fec..d48cb9c0c2d 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ArrayBackedColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ArrayBackedColumnSource.java @@ -7,7 +7,6 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.rowset.chunkattributes.RowKeys; import io.deephaven.util.type.ArrayTypeUtils; -import io.deephaven.time.DateTime; import io.deephaven.chunk.*; import io.deephaven.chunk.attributes.Values; import io.deephaven.engine.rowset.RowSequence; @@ -316,14 +315,14 @@ public static ArrayBackedColumnSource getMemoryColumnSource(@NotNull final } /** - * Produces an DateTimeArraySource with the given data. + * Produces an InstantArraySource with the given data. * * @param data an array containing the data to insert into the ColumnSource, represented as long nanoseconds since * the epoch * @return an in-memory column source with the requested data */ - public static WritableColumnSource getDateTimeMemoryColumnSource(LongChunk data) { - final WritableColumnSource result = new DateTimeArraySource(); + public static WritableColumnSource getInstantMemoryColumnSource(LongChunk data) { + final WritableColumnSource result = new InstantArraySource(); result.ensureCapacity(data.size()); for (int ii = 0; ii < data.size(); ++ii) { result.set(ii, data.get(ii)); @@ -332,14 +331,14 @@ public static WritableColumnSource getDateTimeMemoryColumnSource(LongC } /** - * Produces an DateTimeArraySource with the given data. + * Produces an InstantArraySource with the given data. * * @param data an array containing the data to insert into the ColumnSource, represented as long nanoseconds since * the epoch * @return an in-memory column source with the requested data */ - public static WritableColumnSource getDateTimeMemoryColumnSource(@NotNull final long[] data) { - final WritableColumnSource result = new DateTimeArraySource(); + public static WritableColumnSource getInstantMemoryColumnSource(@NotNull final long[] data) { + final WritableColumnSource result = new InstantArraySource(); result.ensureCapacity(data.length); final WritableColumnSource asLong = (WritableColumnSource) result.reinterpret(long.class); try (final FillFromContext context = asLong.makeFillFromContext(data.length); @@ -411,8 +410,6 @@ public static WritableColumnSource getMemoryColumnSource(final long size, result = new ShortArraySource(); } else if (dataType == boolean.class || dataType == Boolean.class) { result = new BooleanArraySource(); - } else if (dataType == DateTime.class) { - result = new DateTimeArraySource(); } else if (dataType == Instant.class) { result = new InstantArraySource(); } else { @@ -624,41 +621,30 @@ public void visit(GenericArray generic) { generic.componentType().walk(new Visitor() { @Override public void visit(StringType stringType) { - out = ArrayBackedColumnSource.getMemoryColumnSource(generic.cast(stringType).values(), String.class, - null); + out = ArrayBackedColumnSource.getMemoryColumnSource( + generic.cast(stringType).values(), String.class, null); } @Override public void visit(InstantType instantType) { - DateTimeArraySource source = new DateTimeArraySource(); - source.ensureCapacity(generic.size()); - int ix = 0; - for (Instant value : generic.cast(instantType).values()) { - if (value == null) { - source.set(ix++, NULL_LONG); - } else { - long nanos = - Math.addExact(TimeUnit.SECONDS.toNanos(value.getEpochSecond()), value.getNano()); - source.set(ix++, nanos); - } - } - out = source; + out = ArrayBackedColumnSource.getMemoryColumnSource( + generic.cast(instantType).values(), Instant.class, null); } @Override public void visit(ArrayType arrayType) { // noinspection unchecked ArrayType tType = (ArrayType) arrayType; - out = ArrayBackedColumnSource.getMemoryColumnSource(generic.cast(tType).values(), tType.clazz(), - arrayType.componentType().clazz()); + out = ArrayBackedColumnSource.getMemoryColumnSource( + generic.cast(tType).values(), tType.clazz(), arrayType.componentType().clazz()); } @Override public void visit(CustomType customType) { // noinspection unchecked CustomType tType = (CustomType) customType; - out = ArrayBackedColumnSource.getMemoryColumnSource(generic.cast(tType).values(), tType.clazz(), - null); + out = ArrayBackedColumnSource.getMemoryColumnSource( + generic.cast(tType).values(), tType.clazz(), null); } }); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeArraySource.java deleted file mode 100644 index 69bd4427b22..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeArraySource.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.table.impl.sources; - -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.impl.MutableColumnSourceGetDefaults; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; -import org.jetbrains.annotations.NotNull; - -/** - * Array-backed {@link ColumnSource} for DateTimes. Allows reinterpretation to long and {@link java.time.Instant}. - */ -public class DateTimeArraySource extends NanosBasedTimeArraySource - implements MutableColumnSourceGetDefaults.ForLongAsDateTime, ConvertibleTimeSource { - public DateTimeArraySource() { - super(DateTime.class); - } - - public DateTimeArraySource(final @NotNull LongArraySource nanoSource) { - super(DateTime.class, nanoSource); - } - - @Override - protected DateTime makeValue(long nanos) { - return DateTimeUtils.epochNanosToDateTime(nanos); - } - - @Override - protected long toNanos(DateTime value) { - return DateTimeUtils.epochNanos(value); - } - - @Override - public ColumnSource toDateTime() { - return this; - } -} diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeSparseArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeSparseArraySource.java deleted file mode 100644 index 3dd3e611938..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeSparseArraySource.java +++ /dev/null @@ -1,36 +0,0 @@ -/** - * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.table.impl.sources; - -import io.deephaven.engine.table.impl.DefaultChunkSource; -import io.deephaven.engine.table.impl.MutableColumnSourceGetDefaults; -import io.deephaven.time.DateTime; -import io.deephaven.chunk.attributes.Values; -import io.deephaven.time.DateTimeUtils; -import org.jetbrains.annotations.NotNull; - -/** - * Array-backed ColumnSource for DateTimes. Allows reinterpret as long. - */ -public class DateTimeSparseArraySource extends NanosBasedTimeSparseArraySource - implements MutableColumnSourceGetDefaults.ForLongAsDateTime, DefaultChunkSource, ConvertibleTimeSource { - - public DateTimeSparseArraySource() { - super(DateTime.class); - } - - public DateTimeSparseArraySource(final @NotNull LongSparseArraySource nanoSource) { - super(DateTime.class, nanoSource); - } - - @Override - protected DateTime makeValue(long nanos) { - return DateTimeUtils.epochNanosToDateTime(nanos); - } - - @Override - protected long toNanos(DateTime value) { - return DateTimeUtils.epochNanos(value); - } -} diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeArraySource.java index 6852a3109a3..d360fac972f 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeArraySource.java @@ -16,7 +16,6 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.WritableSourceWithPrepareForParallelPopulation; import io.deephaven.engine.table.impl.util.ShiftData; -import io.deephaven.time.DateTime; import org.jetbrains.annotations.NotNull; import java.time.*; @@ -166,8 +165,7 @@ public void fillFromChunkUnordered( @Override public boolean allowsReinterpret( @NotNull final Class alternateDataType) { - return alternateDataType == long.class || alternateDataType == Instant.class - || alternateDataType == DateTime.class; + return alternateDataType == long.class || alternateDataType == Instant.class; } @SuppressWarnings("unchecked") @@ -176,8 +174,6 @@ protected ColumnSource doReinterpret( @NotNull Class alternateDataType) { if (alternateDataType == this.getType()) { return (ColumnSource) this; - } else if (alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == long.class || alternateDataType == Long.class) { return (ColumnSource) toEpochNano(); } else if (alternateDataType == Instant.class) { @@ -208,11 +204,6 @@ public ColumnSource toLocalTime(final @NotNull ZoneId zone) { return new LocalTimeWrapperSource(toZonedDateTime(zone), zone); } - @Override - public ColumnSource toDateTime() { - return new DateTimeArraySource(nanoSource); - } - @Override public ColumnSource toInstant() { return new InstantArraySource(nanoSource); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeSparseArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeSparseArraySource.java index 5c23f9890aa..318db017f3f 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeSparseArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/NanosBasedTimeSparseArraySource.java @@ -15,7 +15,6 @@ import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.WritableSourceWithPrepareForParallelPopulation; import io.deephaven.engine.table.impl.util.ShiftData; -import io.deephaven.time.DateTime; import org.jetbrains.annotations.NotNull; import java.time.Instant; @@ -180,8 +179,7 @@ public void setNull(RowSequence rowSequence) { @Override public boolean allowsReinterpret( @NotNull final Class alternateDataType) { - return alternateDataType == long.class || alternateDataType == Instant.class - || alternateDataType == DateTime.class; + return alternateDataType == long.class || alternateDataType == Instant.class; } @SuppressWarnings("unchecked") @@ -190,8 +188,6 @@ protected ColumnSource doReinterpret( @NotNull Class alternateDataType) { if (alternateDataType == this.getType()) { return (ColumnSource) this; - } else if (alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == long.class || alternateDataType == Long.class) { return (ColumnSource) toEpochNano(); } else if (alternateDataType == Instant.class) { @@ -222,11 +218,6 @@ public ColumnSource toLocalTime(final @NotNull ZoneId zone) { return new LocalTimeWrapperSource(toZonedDateTime(zone), zone); } - @Override - public ColumnSource toDateTime() { - return new DateTimeSparseArraySource(nanoSource); - } - @Override public ColumnSource toInstant() { return new InstantSparseArraySource(nanoSource); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/SparseArrayColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/SparseArrayColumnSource.java index 1bb133af8f5..42694b11e63 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/SparseArrayColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/SparseArrayColumnSource.java @@ -9,7 +9,6 @@ import io.deephaven.engine.table.WritableSourceWithPrepareForParallelPopulation; import io.deephaven.engine.table.impl.util.ShiftData; import io.deephaven.util.type.ArrayTypeUtils; -import io.deephaven.time.DateTime; import io.deephaven.engine.rowset.chunkattributes.RowKeys; import io.deephaven.chunk.attributes.Values; import io.deephaven.chunk.LongChunk; @@ -272,8 +271,8 @@ public static SparseArrayColumnSource getSparseMemoryColumnSource(long[] d return result; } - public static WritableColumnSource getDateTimeMemoryColumnSource(long[] data) { - final WritableColumnSource result = new DateTimeSparseArraySource(); + public static WritableColumnSource getInstantMemoryColumnSource(long[] data) { + final WritableColumnSource result = new InstantSparseArraySource(); result.ensureCapacity(data.length); long i = 0; for (long o : data) { @@ -323,8 +322,6 @@ public static WritableColumnSource getSparseMemoryColumnSource(long size, result = new ShortSparseArraySource(); } else if (type == boolean.class || type == Boolean.class) { result = new BooleanSparseArraySource(); - } else if (type == DateTime.class) { - result = new DateTimeSparseArraySource(); } else if (type == Instant.class) { result = new InstantSparseArraySource(); } else { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceDateTime.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceDateTime.java deleted file mode 100644 index 3bce9fea1f3..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/regioned/RegionedColumnSourceDateTime.java +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.table.impl.sources.regioned; - -import io.deephaven.chunk.attributes.Values; -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; -import io.deephaven.engine.table.impl.ColumnSourceGetDefaults; -import io.deephaven.chunk.*; -import io.deephaven.engine.rowset.RowSequence; -import org.jetbrains.annotations.NotNull; - -import java.time.Instant; -import java.time.LocalDate; -import java.time.LocalTime; -import java.time.ZoneId; -import java.time.ZonedDateTime; - -/** - * Regioned column source implementation for columns of {@link DateTime}s. - */ -final class RegionedColumnSourceDateTime - extends RegionedColumnSourceReferencing> - implements ColumnSourceGetDefaults.ForObject, ConvertibleTimeSource { - - public RegionedColumnSourceDateTime() { - this(new RegionedColumnSourceLong.AsValues()); - } - - public RegionedColumnSourceDateTime(@NotNull final RegionedColumnSourceLong inner) { - super(ColumnRegionLong.createNull(PARAMETERS.regionMask), DateTime.class, inner); - } - - @Override - public void convertRegion( - @NotNull final WritableChunk destination, - @NotNull final Chunk source, RowSequence rowSequence) { - final WritableObjectChunk objectChunk = destination.asWritableObjectChunk(); - final LongChunk longChunk = source.asLongChunk(); - - final int size = objectChunk.size(); - final int length = longChunk.size(); - - for (int i = 0; i < length; ++i) { - objectChunk.set(size + i, DateTimeUtils.epochNanosToDateTime(longChunk.get(i))); - } - objectChunk.setSize(size + length); - } - - @Override - public DateTime get(final long rowKey) { - return rowKey == RowSequence.NULL_ROW_KEY ? null - : DateTimeUtils.epochNanosToDateTime(getNativeSource().lookupRegion(rowKey).getLong(rowKey)); - } - - @Override - public boolean supportsTimeConversion() { - return true; - } - - @Override - public ColumnSource toInstant() { - return new RegionedColumnSourceInstant((RegionedColumnSourceLong) getNativeSource()); - } - - @Override - public ColumnSource toZonedDateTime(@NotNull final ZoneId zone) { - return new RegionedColumnSourceZonedDateTime(zone, (RegionedColumnSourceLong) getNativeSource()); - } - - @Override - public ColumnSource toLocalDate(@NotNull final ZoneId zone) { - return RegionedColumnSourceZonedDateTime.asLocalDate(zone, - (RegionedColumnSourceLong) getNativeSource()); - } - - @Override - public ColumnSource toLocalTime(@NotNull final ZoneId zone) { - return RegionedColumnSourceZonedDateTime.asLocalTime(zone, - (RegionedColumnSourceLong) getNativeSource()); - } - - @Override - public ColumnSource toDateTime() { - return this; - } - - @Override - public ColumnSource toEpochNano() { - return getNativeSource(); - } -} diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/ColumnHolder.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/ColumnHolder.java index 9530a33de45..f568a6bb5c6 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/ColumnHolder.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/ColumnHolder.java @@ -19,7 +19,6 @@ import io.deephaven.engine.table.ChunkSink; import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.vector.ObjectVector; -import io.deephaven.time.DateTime; import io.deephaven.api.util.NameValidator; import io.deephaven.engine.table.impl.sources.ArrayBackedColumnSource; import io.deephaven.engine.table.ColumnSource; @@ -151,7 +150,6 @@ private ColumnHolder(String name, boolean grouped, Class dataType, Class c throw new IllegalArgumentException("Data must be provided as an array"); } if (!arrayData.getClass().getComponentType().isAssignableFrom(dataType) - && !(dataType == DateTime.class && arrayData.getClass().getComponentType() == long.class) && !(dataType == Instant.class && arrayData.getClass().getComponentType() == long.class) && !(dataType == Boolean.class && arrayData.getClass().getComponentType() == byte.class)) { throw new IllegalArgumentException( @@ -194,32 +192,31 @@ public static ColumnHolder makeForChunk(String name, Class type, Class /** - * Create a column holder for a DateTime column where the values are represented as longs. Whatever process produces + * Create a column holder for an Instant column where the values are represented as longs. Whatever process produces * a table from this column holder should respect this and create the appropriate type of ColumnSource. Under normal - * conditions, this will be a DateTimeArraySource (see {@link #getColumnSource()}). + * conditions, this will be a InstantArraySource (see {@link #getColumnSource()}). * * @param name column name * @param grouped true if the column is grouped; false otherwise * @param data column data (long integers representing nanos since the epoch) - * @return a DateTime column holder implemented with longs for storage + * @return a Instant column holder implemented with longs for storage */ - public static ColumnHolder getDateTimeColumnHolder(String name, boolean grouped, long... data) { - return new ColumnHolder<>(name, grouped, DateTime.class, null, data); + public static ColumnHolder getInstantColumnHolder(String name, boolean grouped, long... data) { + return new ColumnHolder<>(name, grouped, Instant.class, null, data); } /** - * Create a column holder for a DateTime column where the values are represented as longs. Whatever process produces + * Create a column holder for an Instant column where the values are represented as longs. Whatever process produces * a table from this column holder should respect this and create the appropriate type of ColumnSource. Under normal - * conditions, this will be a DateTimeArraySource (see {@link #getColumnSource()}). + * conditions, this will be a InstantArraySource (see {@link #getColumnSource()}). * * @param name column name * @param grouped true if the column is grouped; false otherwise * @param chunkData column data (long integers representing nanos since the epoch) - * @return a DateTime column holder implemented with longs for storage + * @return a Instant column holder implemented with longs for storage */ - public static ColumnHolder getDateTimeColumnHolder(String name, boolean grouped, - Chunk chunkData) { - return new ColumnHolder<>(true, name, DateTime.class, null, grouped, chunkData); + public static ColumnHolder getInstantColumnHolder(String name, boolean grouped, Chunk chunkData) { + return new ColumnHolder<>(true, name, Instant.class, null, grouped, chunkData); } /** @@ -263,7 +260,7 @@ public String getName() { } /** - * Gets a column source for the data. Other than the special case of DateTime columns, this requires that the type + * Gets a column source for the data. Other than the special case of Instant columns, this requires that the type * specified match the component type of the actual data. * * @return column source constructed with data from this column holder @@ -272,8 +269,8 @@ public ColumnSource getColumnSource() { if (chunkData == null) { if (arrayData.getClass().getComponentType().equals(dataType)) { return ArrayBackedColumnSource.getMemoryColumnSourceUntyped(arrayData, dataType, componentType); - } else if (dataType.equals(DateTime.class) && arrayData.getClass().getComponentType().equals(long.class)) { - return ArrayBackedColumnSource.getDateTimeMemoryColumnSource((long[]) arrayData); + } else if (dataType.equals(Instant.class) && arrayData.getClass().getComponentType().equals(long.class)) { + return ArrayBackedColumnSource.getInstantMemoryColumnSource((long[]) arrayData); } else { throw new IllegalStateException("Unsupported column holder data & type: " + dataType.getName() + ", " + arrayData.getClass().getComponentType().getName()); @@ -282,8 +279,8 @@ public ColumnSource getColumnSource() { Assert.eqNull(arrayData, "arrayData"); - if (dataType.equals(DateTime.class) && chunkData.getChunkType() == ChunkType.Long) { - return ArrayBackedColumnSource.getDateTimeMemoryColumnSource(chunkData.asLongChunk()); + if (dataType.equals(Instant.class) && chunkData.getChunkType() == ChunkType.Long) { + return ArrayBackedColumnSource.getInstantMemoryColumnSource(chunkData.asLongChunk()); } final WritableColumnSource cs = ArrayBackedColumnSource.getMemoryColumnSource( diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestReinterpretedColumn.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestReinterpretedColumn.java index 7e90cf9fb1b..1cf32e0d504 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestReinterpretedColumn.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestReinterpretedColumn.java @@ -14,8 +14,6 @@ import io.deephaven.engine.table.TableDefinition; import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.table.impl.QueryTable; -import io.deephaven.engine.table.impl.sources.DateTimeArraySource; -import io.deephaven.engine.table.impl.sources.DateTimeSparseArraySource; import io.deephaven.engine.table.impl.sources.InstantArraySource; import io.deephaven.engine.table.impl.sources.InstantSparseArraySource; import io.deephaven.engine.table.impl.sources.LongArraySource; @@ -26,7 +24,6 @@ import io.deephaven.engine.table.impl.sources.ZonedDateTimeSparseArraySource; import io.deephaven.engine.table.impl.util.TableTimeConversions; import io.deephaven.engine.testutil.testcase.RefreshingTableTestCase; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import org.apache.commons.lang3.mutable.MutableInt; import org.junit.Test; @@ -44,10 +41,9 @@ public class TestReinterpretedColumn extends RefreshingTableTestCase { final int ROW_COUNT = 60; - private final long baseLongTime = DateTimeUtils.parseDateTime("2021-10-20T09:30:00.000 NY").getNanos(); - private final DateTime baseDateTime = DateTimeUtils.parseDateTime("2021-10-19T10:30:00.000 NY"); + private final long baseLongTime = DateTimeUtils.parseNanos("2021-10-20T09:30:00.000 NY"); private final ZonedDateTime baseZDT = ZonedDateTime.of(2021, 10, 18, 11, 30, 0, 0, ZoneId.of("America/New_York")); - private final Instant baseInstant = DateTimeUtils.parseDateTime("2021-10-17T12:30:00.000 NY").toInstant(); + private final Instant baseInstant = DateTimeUtils.parseInstant("2021-10-17T12:30:00.000 NY"); private QueryTable baseTable; private QueryTable sparseBaseTable; @@ -58,38 +54,38 @@ public class TestReinterpretedColumn extends RefreshingTableTestCase { public void setUp() throws Exception { super.setUp(); - baseTable = makeTable(new LongArraySource(), - new DateTimeArraySource(), + baseTable = makeTable( + new LongArraySource(), new InstantArraySource(), new ZonedDateTimeArraySource(ZoneId.of("America/New_York"))); - sparseBaseTable = makeTable(new LongSparseArraySource(), - new DateTimeSparseArraySource(), + sparseBaseTable = makeTable( + new LongSparseArraySource(), new InstantSparseArraySource(), new ZonedDateTimeSparseArraySource(ZoneId.of("America/New_York"))); - objectTable = makeObjectTable(new LongArraySource(), - new ObjectArraySource<>(DateTime.class), + objectTable = makeObjectTable( + new LongArraySource(), new ObjectArraySource<>(Instant.class), new ObjectArraySource<>(ZonedDateTime.class)); - sparseObjectTable = makeObjectTable(new LongSparseArraySource(), - new ObjectSparseArraySource<>(DateTime.class), + sparseObjectTable = makeObjectTable( + new LongSparseArraySource(), new ObjectSparseArraySource<>(Instant.class), new ObjectSparseArraySource<>(ZonedDateTime.class)); } - private QueryTable makeObjectTable(WritableColumnSource longSource, WritableColumnSource dtSource, - WritableColumnSource iSource, WritableColumnSource zdtSource) { + private QueryTable makeObjectTable( + WritableColumnSource longSource, + WritableColumnSource iSource, + WritableColumnSource zdtSource) { longSource.ensureCapacity(ROW_COUNT); - dtSource.ensureCapacity(ROW_COUNT); iSource.ensureCapacity(ROW_COUNT); zdtSource.ensureCapacity(ROW_COUNT); for (int ii = 0; ii < ROW_COUNT; ii++) { final long tOff = ii * 60 * 1_000_000_000L; longSource.set(ii, Long.valueOf(baseLongTime + tOff)); - dtSource.set(ii, DateTimeUtils.epochNanosToDateTime(baseDateTime.getNanos() + tOff)); iSource.set(ii, DateTimeUtils.epochNanosToInstant(DateTimeUtils.epochNanos(baseInstant) + tOff)); zdtSource.set(ii, DateTimeUtils.epochNanosToZonedDateTime(DateTimeUtils.epochNanos(baseZDT) + tOff, ZoneId.of("America/New_York"))); @@ -97,31 +93,29 @@ private QueryTable makeObjectTable(WritableColumnSource longSource, Writab final Map> cols = new LinkedHashMap<>(); cols.put("L", longSource); - cols.put("DT", dtSource); cols.put("I", iSource); cols.put("ZDT", zdtSource); return new QueryTable(RowSetFactory.flat(ROW_COUNT).toTracking(), cols); } - private QueryTable makeTable(WritableColumnSource longSource, WritableColumnSource dtSource, - WritableColumnSource iSource, WritableColumnSource zdtSource) { + private QueryTable makeTable( + WritableColumnSource longSource, + WritableColumnSource iSource, + WritableColumnSource zdtSource) { longSource.ensureCapacity(ROW_COUNT); - dtSource.ensureCapacity(ROW_COUNT); iSource.ensureCapacity(ROW_COUNT); zdtSource.ensureCapacity(ROW_COUNT); for (int ii = 0; ii < ROW_COUNT; ii++) { final long tOff = ii * 60 * 1_000_000_000L; longSource.set(ii, baseLongTime + tOff); - dtSource.set(ii, baseDateTime.getNanos() + tOff); iSource.set(ii, DateTimeUtils.epochNanos(baseInstant) + tOff); zdtSource.set(ii, DateTimeUtils.epochNanos(baseZDT) + tOff); } final Map> cols = new LinkedHashMap<>(); cols.put("L", longSource); - cols.put("DT", dtSource); cols.put("I", iSource); cols.put("ZDT", zdtSource); @@ -146,13 +140,11 @@ public void testReinterpretLong() { private void testReinterpretLong(final Table initial, boolean isSorted, boolean withRename) { final String lColName = withRename ? "R_L" : "L"; - final String dtColName = withRename ? "R_DT" : "DT"; final String iColName = withRename ? "R_I" : "I"; final String zdtColName = withRename ? "R_ZDT" : "ZDT"; // Make everything a long Table table = TableTimeConversions.asEpochNanos(initial, lColName + "=L"); - table = TableTimeConversions.asEpochNanos(table, dtColName + "=DT"); table = TableTimeConversions.asEpochNanos(table, iColName + "=I"); table = TableTimeConversions.asEpochNanos(table, zdtColName + "=ZDT"); @@ -161,7 +153,6 @@ private void testReinterpretLong(final Table initial, boolean isSorted, boolean if (!withRename) { assertEquals(initial.getColumnSource("L"), table.getColumnSource(lColName)); } - assertEquals(long.class, td.getColumn(dtColName).getDataType()); assertEquals(long.class, td.getColumn(iColName).getDataType()); assertEquals(long.class, td.getColumn(zdtColName).getDataType()); @@ -175,15 +166,12 @@ private void testReinterpretLong(final Table initial, boolean isSorted, boolean } else { assertEquals(baseLongTime + tOff, table.getColumnSource(lColName).getLong(key)); } - assertEquals(baseDateTime.getNanos() + tOff, table.getColumnSource(dtColName).getLong(key)); assertEquals(DateTimeUtils.epochNanos(baseInstant) + tOff, table.getColumnSource(iColName).getLong(key)); assertEquals(DateTimeUtils.epochNanos(baseZDT) + tOff, table.getColumnSource(zdtColName).getLong(key)); } // Repeat the same comparisons, but actuate fillChunk instead reinterpLongChunkCheck(table.getColumnSource(lColName), table.getRowSet(), isSorted, baseLongTime); - reinterpLongChunkCheck(table.getColumnSource(dtColName), table.getRowSet(), isSorted, - baseDateTime.getNanos()); reinterpLongChunkCheck(table.getColumnSource(iColName), table.getRowSet(), isSorted, DateTimeUtils.epochNanos(baseInstant)); reinterpLongChunkCheck(table.getColumnSource(zdtColName), table.getRowSet(), isSorted, @@ -235,19 +223,16 @@ private void doReinterpretTestBasic(final Table initial, Consumer extraCheck, boolean withRename) { final String lColName = withRename ? "R_L" : "L"; - final String dtColName = withRename ? "R_DT" : "DT"; final String iColName = withRename ? "R_I" : "I"; final String zdtColName = withRename ? "R_ZDT" : "ZDT"; // Make everything a DateTime Table table = reinterpreter.apply(initial, lColName + "=L"); - table = reinterpreter.apply(table, dtColName + "=DT"); table = reinterpreter.apply(table, iColName + "=I"); table = reinterpreter.apply(table, zdtColName + "=ZDT"); TableDefinition td = table.getDefinition(); assertEquals(expectedType, td.getColumn(lColName).getDataType()); - assertEquals(expectedType, td.getColumn(dtColName).getDataType()); assertEquals(expectedType, td.getColumn(iColName).getDataType()); assertEquals(expectedType, td.getColumn(zdtColName).getDataType()); @@ -262,9 +247,6 @@ private void doReinterpretTestBasic(final Table initial, assertEquals(baseLongTime + tOff, (long) toNanoFunc.apply((T) table.getColumnSource(lColName).get(key))); extraCheck.accept((T) table.getColumnSource(lColName).get(key)); - assertEquals(baseDateTime.getNanos() + tOff, - (long) toNanoFunc.apply((T) table.getColumnSource(dtColName).get(key))); - extraCheck.accept((T) table.getColumnSource(dtColName).get(key)); assertEquals(DateTimeUtils.epochNanos(baseInstant) + tOff, (long) toNanoFunc.apply((T) table.getColumnSource(iColName).get(key))); extraCheck.accept((T) table.getColumnSource(iColName).get(key)); @@ -276,8 +258,6 @@ private void doReinterpretTestBasic(final Table initial, // Repeat the same comparisons, but actuate fillChunk instead reinterpBasicChunkCheck(table.getColumnSource(lColName), table.getRowSet(), toNanoFunc, isSorted, baseLongTime, extraCheck); - reinterpBasicChunkCheck(table.getColumnSource(dtColName), table.getRowSet(), toNanoFunc, isSorted, - baseDateTime.getNanos(), extraCheck); reinterpBasicChunkCheck(table.getColumnSource(iColName), table.getRowSet(), toNanoFunc, isSorted, DateTimeUtils.epochNanos(baseInstant), extraCheck); reinterpBasicChunkCheck(table.getColumnSource(zdtColName), table.getRowSet(), toNanoFunc, isSorted, @@ -304,18 +284,6 @@ private void reinterpBasicChunkCheck(final ColumnSource cs, final RowSet } } - @Test - public void testReinterpretDBDT() { - doReinterpretTestBasic( - baseTable, DateTime.class, TableTimeConversions::asDateTime, "DT", DateTimeUtils::epochNanos); - doReinterpretTestBasic( - sparseBaseTable, DateTime.class, TableTimeConversions::asDateTime, "DT", DateTimeUtils::epochNanos); - doReinterpretTestBasic( - objectTable, DateTime.class, TableTimeConversions::asDateTime, "DT", DateTimeUtils::epochNanos); - doReinterpretTestBasic( - sparseObjectTable, DateTime.class, TableTimeConversions::asDateTime, "DT", DateTimeUtils::epochNanos); - } - @Test public void testReinterpretInstant() { doReinterpretTestBasic( diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTailInitializationFilter.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTailInitializationFilter.java index 9339e3a7300..91be6f8e02d 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTailInitializationFilter.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTailInitializationFilter.java @@ -34,7 +34,7 @@ public void testSimple() { final DateTime threshold2 = new DateTime(data[199] - DateTimeUtils.secondsToNanos(600)); final QueryTable input = TstUtils.testRefreshingTable(builder.build().toTracking(), - ColumnHolder.getDateTimeColumnHolder("Timestamp", false, data)); + ColumnHolder.getInstantColumnHolder("Timestamp", false, data)); final Table filtered = TailInitializationFilter.mostRecent(input, "Timestamp", "00:10:00"); TableTools.showWithRowSet(filtered); assertEquals(44, filtered.size()); diff --git a/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java b/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java index b23fa2525e0..71f0bd07a2e 100644 --- a/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java +++ b/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java @@ -327,7 +327,7 @@ public void testDateTimeColumnHolder() { .toArray(); final ColumnHolder dateTimeCol = col("DateTimeColumn", data); - final ColumnHolder dateTimeCol2 = ColumnHolder.getDateTimeColumnHolder("DateTimeColumn2", false, longData); + final ColumnHolder dateTimeCol2 = ColumnHolder.getInstantColumnHolder("DateTimeColumn2", false, longData); final Table table = TableTools.newTable(dateTimeCol, dateTimeCol2); diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/ColumnInfo.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/ColumnInfo.java index c1bbe67458f..5e00dc95b21 100644 --- a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/ColumnInfo.java +++ b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/ColumnInfo.java @@ -44,7 +44,7 @@ public ColumnHolder generateInitialColumn(RowSet rowSet, Random random) { if (dataType == Long.class && (type == DateTime.class || type == Instant.class)) { Require.eqFalse(immutable, "immutable"); Require.eqFalse(grouped, "grouped"); - return ColumnHolder.getDateTimeColumnHolder(name, false, initialData); + return ColumnHolder.getInstantColumnHolder(name, false, initialData); } if (immutable) { diff --git a/extensions/csv/src/main/java/io/deephaven/csv/CsvTools.java b/extensions/csv/src/main/java/io/deephaven/csv/CsvTools.java index e8033eb95b1..2a59fde981a 100644 --- a/extensions/csv/src/main/java/io/deephaven/csv/CsvTools.java +++ b/extensions/csv/src/main/java/io/deephaven/csv/CsvTools.java @@ -44,9 +44,9 @@ import io.deephaven.engine.table.impl.sources.BooleanArraySource; import io.deephaven.engine.table.impl.sources.ByteArraySource; import io.deephaven.engine.table.impl.sources.CharacterArraySource; -import io.deephaven.engine.table.impl.sources.DateTimeArraySource; import io.deephaven.engine.table.impl.sources.DoubleArraySource; import io.deephaven.engine.table.impl.sources.FloatArraySource; +import io.deephaven.engine.table.impl.sources.InstantArraySource; import io.deephaven.engine.table.impl.sources.IntegerArraySource; import io.deephaven.engine.table.impl.sources.LongArraySource; import io.deephaven.engine.table.impl.sources.ObjectArraySource; @@ -54,8 +54,7 @@ import io.deephaven.engine.util.PathUtil; import io.deephaven.engine.util.TableTools; import io.deephaven.io.streams.BzipFileOutputStream; -import io.deephaven.time.DateTime; -import io.deephaven.time.TimeZoneAliases; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.BooleanUtils; import io.deephaven.util.QueryConstants; import io.deephaven.util.annotations.ScriptApi; @@ -73,6 +72,7 @@ import java.net.URL; import java.nio.file.Path; import java.nio.file.Paths; +import java.time.Instant; import java.time.ZoneId; import java.util.Arrays; import java.util.Collection; @@ -455,7 +455,7 @@ public static void writeCsv(Table source, PrintStream out, boolean nullsAsEmpty, * @param source a Deephaven table object to be exported * @param destPath path to the CSV file to be written * @param compressed whether to zip the file being written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param columns a list of columns to include in the export * @throws IOException if the target file cannot be written */ @@ -472,7 +472,7 @@ public static void writeCsv(Table source, String destPath, boolean compressed, * @param source a Deephaven table object to be exported * @param destPath path to the CSV file to be written * @param compressed whether to zip the file being written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param nullsAsEmpty if nulls should be written as blank instead of '(null)' * @param columns a list of columns to include in the export * @throws IOException if the target file cannot be written @@ -490,7 +490,7 @@ public static void writeCsv(Table source, String destPath, boolean compressed, * @param source a Deephaven table object to be exported * @param destPath path to the CSV file to be written * @param compressed whether to zip the file being written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param nullsAsEmpty if nulls should be written as blank instead of '(null)' * @param separator the delimiter for the CSV * @param columns a list of columns to include in the export @@ -509,7 +509,7 @@ public static void writeCsv(Table source, String destPath, boolean compressed, * @param sources an array of Deephaven table objects to be exported * @param destPath path to the CSV file to be written * @param compressed whether to compress (bz2) the file being written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param tableSeparator a String (normally a single character) to be used as the table delimiter * @param columns a list of columns to include in the export * @throws IOException if the target file cannot be written @@ -527,7 +527,7 @@ public static void writeCsv(Table[] sources, String destPath, boolean compressed * @param sources an array of Deephaven table objects to be exported * @param destPath path to the CSV file to be written * @param compressed whether to compress (bz2) the file being written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param tableSeparator a String (normally a single character) to be used as the table delimiter * @param columns a list of columns to include in the export * @throws IOException if the target file cannot be written @@ -545,7 +545,7 @@ public static void writeCsv(Table[] sources, String destPath, boolean compressed * @param sources an array of Deephaven table objects to be exported * @param destPath path to the CSV file to be written * @param compressed whether to compress (bz2) the file being written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param tableSeparator a String (normally a single character) to be used as the table delimiter * @param fieldSeparator the delimiter for the CSV files * @param nullsAsEmpty if nulls should be written as blank instead of '(null)' @@ -581,7 +581,7 @@ public static void writeCsv(Table[] sources, String destPath, boolean compressed * @param source a Deephaven table object to be exported * @param destPath path to the CSV file to be written * @param compressed whether to zip the file being written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param progress a procedure that implements BiConsumer, and takes a progress Integer and a total size Integer to * update progress * @param columns a list of columns to include in the export @@ -599,7 +599,7 @@ public static void writeCsv(Table source, String destPath, boolean compressed, Z * @param source a Deephaven table object to be exported * @param destPath path to the CSV file to be written * @param compressed whether to zip the file being written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param progress a procedure that implements BiConsumer, and takes a progress Integer and a total size Integer to * update progress * @param nullsAsEmpty if nulls should be written as blank instead of '(null)' @@ -619,7 +619,7 @@ public static void writeCsv(Table source, String destPath, boolean compressed, Z * @param source a Deephaven table object to be exported * @param destPath path to the CSV file to be written * @param compressed whether to zip the file being written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param progress a procedure that implements BiConsumer, and takes a progress Integer and a total size Integer to * update progress * @param nullsAsEmpty if nulls should be written as blank instead of '(null)' @@ -642,7 +642,7 @@ public static void writeCsv(Table source, String destPath, boolean compressed, Z * * @param source a Deephaven table object to be exported * @param out Writer used to write the CSV - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param progress a procedure that implements BiConsumer, and takes a progress Integer and a total size Integer to * update progress * @param nullsAsEmpty if nulls should be written as blank instead of '(null)' @@ -661,7 +661,7 @@ public static void writeCsv(Table source, Writer out, ZoneId timeZone, * * @param source a Deephaven table object to be exported * @param out Writer used to write the CSV - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param progress a procedure that implements BiConsumer, and takes a progress Integer and a total size Integer to * update progress * @param nullsAsEmpty if nulls should be written as blank instead of '(null)' @@ -794,7 +794,7 @@ public static void writeToMultipleFiles(Table table, String path, String filenam * * @param source a Deephaven table object to be exported * @param out a Writer to which the header should be written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param colNames a list of columns to include in the export * @throws IOException if the target file cannot be written */ @@ -809,7 +809,7 @@ public static void writeCsvContents(Table source, Writer out, ZoneId timeZone, S * * @param source a Deephaven table object to be exported * @param out a Writer to which the header should be written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param nullsAsEmpty if nulls should be written as blank instead of '(null)' * @param colNames a list of columns to include in the export * @throws IOException if the target file cannot be written @@ -825,7 +825,7 @@ public static void writeCsvContents(Table source, Writer out, ZoneId timeZone, b * * @param source a Deephaven table object to be exported * @param out a Writer to which the header should be written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param progress a procedure that implements BiConsumer, and takes a progress Integer and a total size Integer to * update progress * @param colNames a list of columns to include in the export @@ -842,7 +842,7 @@ public static void writeCsvContents(Table source, Writer out, ZoneId timeZone, * * @param source a Deephaven table object to be exported * @param out a Writer to which the header should be written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param progress a procedure that implements BiConsumer, and takes a progress Integer and a total size Integer to * update progress * @param nullsAsEmpty if nulls should be written as blank instead of '(null)' @@ -861,7 +861,7 @@ public static void writeCsvContents(Table source, Writer out, ZoneId timeZone, * * @param source a Deephaven table object to be exported * @param out a Writer to which the header should be written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param progress a procedure that implements BiConsumer, and takes a progress Integer and a total size Integer to * update progress * @param nullsAsEmpty if nulls should be written as blank instead of '(null)' @@ -904,7 +904,7 @@ protected static String separatorCsvEscape(String str, String separator) { * Writes an array of Deephaven DataColumns out as a CSV file. * * @param out a Writer to which the header should be written - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param cols an array of Deephaven DataColumns to be written * @param size the size of the DataColumns * @param nullsAsEmpty if nulls should be written as blank instead of '(null)' @@ -935,8 +935,9 @@ private static void writeCsvContentsSeq( final Object o = cols[j].get(i); if (o instanceof String) { out.write("" + separatorCsvEscape((String) o, separatorStr)); - } else if (o instanceof DateTime) { - out.write(separatorCsvEscape(((DateTime) o).toString(timeZone), separatorStr)); + } else if (o instanceof Instant) { + //noinspection DataFlowIssue; non-null input ensures non-null output + out.write(separatorCsvEscape(DateTimeUtils.formatDateTime((Instant) o, timeZone), separatorStr)); } else { out.write(nullsAsEmpty ? separatorCsvEscape(o == null ? "" : o.toString(), separatorStr) @@ -1215,9 +1216,9 @@ protected void nullFlagsToValues(final String[] values, final boolean[] isNull, } } - private static final class MyDateTimeAsLongSink extends MySinkBase { - public MyDateTimeAsLongSink(int columnIndex) { - super(new DateTimeArraySource(), long.class, LongChunk::chunkWrap); + private static final class MyInstantAsLongSink extends MySinkBase { + public MyInstantAsLongSink(int columnIndex) { + super(new InstantArraySource(), long.class, LongChunk::chunkWrap); } @Override @@ -1241,8 +1242,7 @@ private static SinkFactory makeMySinkFactory() { MyBooleanAsByteSink::new, MyCharSink::new, QueryConstants.NULL_CHAR, MyStringSink::new, null, - MyDateTimeAsLongSink::new, QueryConstants.NULL_LONG, - MyDateTimeAsLongSink::new, QueryConstants.NULL_LONG); + MyInstantAsLongSink::new, QueryConstants.NULL_LONG, + MyInstantAsLongSink::new, QueryConstants.NULL_LONG); } - } From 3724b923fdcedb850ae02f4d7aa650cc2bddf069 Mon Sep 17 00:00:00 2001 From: Ryan Caudy Date: Wed, 24 May 2023 23:34:16 -0400 Subject: [PATCH 05/11] Massive migration away from DateTime (including deletion for DateTime and some related classes) --- .../benchmarking/BenchmarkTools.java | 15 +- ...rator.java => InstantColumnGenerator.java} | 22 +- .../clientsupport/gotorow/SeekRow.java | 11 +- .../plotdownsampling/RunChartDownsample.java | 12 +- .../plot/util/GenerateAxesPlotMethods.java | 2 +- .../PrimitiveArrayConversionUtility.java | 31 -- .../modelfarm/util/ModelFarmUtils.java | 7 +- .../modelfarm/util/TestModelFarmUtils.java | 16 +- .../numerics/movingaverages/ByEma.java | 9 +- .../numerics/movingaverages/ByEmaTest.java | 42 +-- .../src/main/java/io/deephaven/plot/Axes.java | 146 ++++---- .../main/java/io/deephaven/plot/AxesImpl.java | 292 ++++++++-------- .../main/java/io/deephaven/plot/Figure.java | 144 ++++---- .../java/io/deephaven/plot/FigureImpl.java | 146 ++++---- .../deephaven/plot/PlottingConvenience.java | 146 ++++---- .../plot/axisformatters/NanosAxisFormat.java | 10 +- .../AxisTransformBusinessCalendar.java | 26 +- ...ateTime.java => IndexableDataInstant.java} | 22 +- ... => IndexableNumericDataArrayInstant.java} | 18 +- .../plot/util/ArgumentValidations.java | 22 +- .../io/deephaven/plot/util/PlotUtils.java | 29 +- .../util/tables/ColumnHandlerFactory.java | 15 +- .../axisformatters/TestNanosAxisFormat.java | 33 +- .../TestAxisTransformBusinessCalendar.java | 123 ++++--- .../plot/datasets/data/TestIndexableData.java | 13 +- .../datasets/ohlc/TestOHLCDataSeries.java | 18 +- .../plot/example_plots/BusinessTime.java | 8 +- .../plot/example_plots/CatPlotBy.java | 2 +- .../plot/example_plots/OHLCChart.java | 13 +- .../plot/example_plots/OHLCPlotBy.java | 2 +- .../plot/example_plots/PlottingPQ.groovy | 2 +- .../plot/example_plots/PlottingPQ.py | 2 +- .../plot/example_plots/PrettyChart1.java | 131 +++---- .../plot/example_plots/SimpleCatError.java | 12 +- .../example_plots/SimpleTsDBDatePlot.java | 21 +- .../plot/example_plots/SimpleXYDateTime.java | 28 +- .../plot/example_plots/SimpleXYError.java | 16 +- .../plot/example_plots/SimpleXYTable.java | 4 +- .../example_plots/plotting_samples.groovy | 148 ++++---- .../plot/util/TestArgumentValidations.java | 10 +- .../util/tables/TestColumnHandlerFactory.java | 31 +- .../io/deephaven/util/type/TypeUtils.java | 2 +- debezium/scripts/demo.py | 2 +- debezium/scripts/sample_dt.py | 2 +- .../engine/table/ColumnDefinition.java | 6 +- .../java/io/deephaven/engine/table/Table.java | 8 +- .../engine/MatchFilterBenchmark.java | 8 +- .../engine/RangeFilterBenchmark.java | 20 +- .../engine/RegionedColumnSourceBenchmark.java | 2 +- ...=> SingleTableKeyedInstantOperations.java} | 14 +- .../deephaven/engine/context/QueryScope.java | 8 +- .../table/impl/AbstractColumnSource.java | 3 +- .../engine/table/impl/BucketingContext.java | 8 +- .../engine/table/impl/CodecLookup.java | 4 +- .../table/impl/ColumnSourceGetDefaults.java | 17 +- .../ImmutableColumnSourceGetDefaults.java | 10 +- .../impl/MutableColumnSourceGetDefaults.java | 13 - .../engine/table/impl/QueryTable.java | 18 +- .../engine/table/impl/TableAdapter.java | 8 +- .../engine/table/impl/TableCreatorImpl.java | 4 +- .../engine/table/impl/TableDefaults.java | 12 +- .../engine/table/impl/TimeTable.java | 111 +++--- .../impl/UnboxedDateTimeWritableSource.java | 38 --- .../impl/UnboxedLongBackedColumnSource.java | 3 +- .../engine/table/impl/UncoalescedTable.java | 10 +- .../table/impl/by/AggregationProcessor.java | 31 +- .../by/ChunkedOperatorAggregationHelper.java | 3 - .../impl/by/TDigestPercentileOperator.java | 8 +- .../SsmBackedColumnSource.java | 22 -- .../impl/PartitionedTableLocationKey.java | 2 +- .../impl/preview/ColumnPreviewManager.java | 2 +- .../table/impl/remote/ConstructSnapshot.java | 4 +- .../impl/remote/InitialSnapshotTable.java | 6 +- .../table/impl/replay/DataDrivenReplayer.java | 31 +- .../table/impl/replay/DateTimeClock.java | 36 -- .../table/impl/replay/FixedStepReplayer.java | 19 +- .../impl/replay/QueryReplayGroupedTable.java | 10 +- .../impl/replay/ReplayGroupedFullTable.java | 3 +- .../impl/replay/ReplayLastByGroupedTable.java | 9 +- .../engine/table/impl/replay/ReplayTable.java | 8 +- .../engine/table/impl/replay/Replayer.java | 40 +-- .../engine/table/impl/select/ClockFilter.java | 12 +- .../table/impl/select/ConditionFilter.java | 2 +- .../table/impl/select/DhFormulaColumn.java | 3 +- .../impl/select/DownsampledWhereFilter.java | 16 +- ...ngeFilter.java => InstantRangeFilter.java} | 57 ++-- .../engine/table/impl/select/MatchFilter.java | 8 +- .../impl/select/RangeConditionFilter.java | 14 +- .../impl/select/ReinterpretedColumn.java | 23 +- .../table/impl/select/SimulationClock.java | 29 +- .../table/impl/select/SortedClockFilter.java | 2 +- .../table/impl/select/TimeSeriesFilter.java | 11 +- .../impl/select/UnsortedClockFilter.java | 2 +- .../table/impl/select/WhereFilterFactory.java | 24 +- .../select/analyzers/SelectColumnLayer.java | 4 +- .../table/impl/sources/BoxedColumnSource.java | 3 +- .../impl/sources/ConvertibleTimeSource.java | 2 +- .../sources/DateTimeAsLongColumnSource.java | 22 -- .../impl/sources/InMemoryColumnSource.java | 15 +- .../sources/LongAsDateTimeColumnSource.java | 22 -- .../impl/sources/LongSparseArraySource.java | 2 +- .../impl/sources/RedirectedColumnSource.java | 10 - .../table/impl/sources/ReinterpretUtils.java | 58 +--- .../impl/sources/ShiftedColumnSource.java | 8 - .../UnboxedLongBackedColumnSource.java | 5 +- .../WritableLongAsDateTimeColumnSource.java | 87 ----- .../Immutable2DDateTimeArraySource.java | 41 --- .../ImmutableConstantDateTimeSource.java | 40 --- .../ImmutableDateTimeArraySource.java | 44 --- .../ImmutableLongAsDateTimeColumnSource.java | 15 - .../impl/sources/ring/RingColumnSource.java | 4 - .../ssms/LongSegmentedSortedMultiset.java | 4 +- .../updateby/UpdateByOperatorFactory.java | 6 +- .../table/impl/util/AsyncErrorLogger.java | 8 +- .../engine/table/impl/util/ColumnHolder.java | 8 +- .../table/impl/util/TableTimeConversions.java | 36 +- .../impl/util/TailInitializationFilter.java | 15 +- .../impl/util/freezeby/FreezeByOperator.java | 3 +- .../impl/QueryLibraryImportsDefaults.java | 2 - ...erationPerformanceLogLoggerMemoryImpl.java | 18 +- .../QueryPerformanceLogLoggerMemoryImpl.java | 18 +- .../ServerStateLogLoggerMemoryImpl.java | 10 +- .../UpdatePerformanceLogLoggerMemoryImpl.java | 19 +- .../engine/util/GroovyDeephavenSession.java | 1 - .../io/deephaven/engine/util/HtmlTable.java | 7 +- .../deephaven/engine/util/TableShowTools.java | 15 +- .../io/deephaven/engine/util/TableTools.java | 53 ++- .../io/deephaven/engine/util/WindowCheck.java | 10 +- .../engine/util/caching/C14nUtil.java | 4 +- .../stream/StreamToTableAdapter.java | 10 +- .../engine/table/impl/FuzzerTest.java | 13 +- .../engine/table/impl/QueryFactory.java | 10 +- .../table/impl/QueryTableAggregationTest.java | 30 +- .../engine/table/impl/QueryTableAjTest.java | 14 +- .../engine/table/impl/QueryTableJoinTest.java | 16 +- .../table/impl/QueryTableNaturalJoinTest.java | 40 +-- .../impl/QueryTableSelectUpdateTest.java | 8 +- .../engine/table/impl/QueryTableSortTest.java | 4 +- .../engine/table/impl/QueryTableTest.java | 99 +++--- .../engine/table/impl/QueryTableTreeTest.java | 64 +--- .../table/impl/QueryTableWhereTest.java | 18 +- .../engine/table/impl/SparseSelectTest.java | 13 +- .../engine/table/impl/TestAggBy.java | 22 +- .../impl/TestDownsampledWhereFilter.java | 10 +- .../table/impl/TestPartitioningColumns.java | 5 +- .../deephaven/engine/table/impl/TestSort.java | 12 +- .../table/impl/TestStreamTableTools.java | 19 +- .../impl/lang/TestQueryLanguageParser.java | 34 +- .../impl/select/FilterKernelArraySample.java | 55 +-- .../table/impl/select/FilterKernelSample.java | 53 +-- .../impl/select/FormulaKernelSample.java | 58 +--- .../table/impl/select/FormulaSample.java | 49 +-- .../table/impl/select/TestClockFilters.java | 10 +- .../table/impl/select/TestFormulaColumn.java | 8 +- .../impl/select/TestReinterpretedColumn.java | 2 +- .../impl/select/TestSimulationClock.java | 7 +- .../impl/select/WhereFilterFactoryTest.java | 43 ++- .../sources/ArrayBackedColumnSourceTest.java | 10 +- .../TestChunkColumnSource.java | 25 +- .../TestChunkedRegionedOperations.java | 6 +- .../impl/sources/ring/RingTableToolsTest.java | 17 +- .../engine/table/impl/updateby/TestDelta.java | 41 +-- .../table/impl/updateby/TestEmMinMax.java | 80 ++--- .../engine/table/impl/updateby/TestEma.java | 60 ++-- .../engine/table/impl/updateby/TestEms.java | 72 ++-- .../table/impl/updateby/TestRollingAvg.java | 32 +- .../table/impl/updateby/TestRollingCount.java | 32 +- .../table/impl/updateby/TestRollingGroup.java | 72 ++-- .../impl/updateby/TestRollingMinMax.java | 32 +- .../impl/updateby/TestRollingProduct.java | 32 +- .../table/impl/updateby/TestRollingStd.java | 32 +- .../table/impl/updateby/TestRollingSum.java | 100 +++--- .../table/impl/updateby/TestRollingWAvg.java | 60 ++-- .../impl/updateby/TestUpdateByGeneral.java | 14 +- .../impl/util/TestDynamicTableWriter.java | 28 +- .../engine/table/impl/util/TestFreezeBy.java | 8 +- .../util/TestTailInitializationFilter.java | 29 +- .../table/impl/util/TestTimeSeriesFilter.java | 9 +- .../util/TestCalendarMethodsFromTable.java | 6 +- .../deephaven/engine/util/TestTableTools.java | 25 +- .../deephaven/engine/util/TestTypeUtils.java | 14 +- .../engine/util/TestWindowCheck.java | 56 +-- .../deephaven/engine/util/TimeTableTest.java | 32 +- .../stream/TestStreamToTableAdapter.java | 20 +- .../engine/table/impl/fuzzertest.groovy | 2 +- .../deephaven/engine/testutil/ColumnInfo.java | 3 +- .../deephaven/engine/testutil/TstUtils.java | 19 +- .../generator/SortedDateTimeGenerator.java | 38 --- .../generator/SortedInstantGenerator.java | 40 +++ .../generator/UnsortedDateTimeGenerator.java | 40 --- .../UnsortedDateTimeLongGenerator.java | 45 --- .../generator/UnsortedInstantGenerator.java | 42 +++ .../UnsortedInstantLongGenerator.java | 46 +++ .../testutil/sources/DateTimeTestSource.java | 155 --------- .../sources/ImmutableDateTimeTestSource.java | 131 ------- .../sources/ImmutableInstantTestSource.java | 2 +- .../sources/UnboxedDateTimeTestSource.java | 39 --- .../main/java/io/deephaven/time/DateTime.java | 321 ------------------ .../io/deephaven/time/DateTimeFormatter.java | 16 +- .../time/calendar/AbstractCalendar.java | 1 - .../time/calendar/BusinessCalendar.java | 2 +- .../io/deephaven/time/calendar/Calendar.java | 8 +- .../io/deephaven/time/TestDateTimeUtils.java | 10 +- .../serialization/SerializationUtils.java | 11 +- .../serialization/TestSerializationUtils.java | 4 +- .../tuplesource/TupleSourceCreatorImpl.java | 4 +- .../sources/ArrowInstantColumnSource.java | 18 +- .../arrow/ArrowTimestampVectorTest.java | 19 +- .../barrage/BarragePerformanceLog.java | 10 +- .../BarrageSnapshotPerformanceLogger.java | 16 +- .../BarrageSubscriptionPerformanceLogger.java | 16 +- .../chunk/ChunkInputStreamGenerator.java | 20 -- .../barrage/table/BarrageTable.java | 9 +- .../extensions/barrage/util/BarrageUtil.java | 9 +- .../chunk/BarrageColumnRoundTripTest.java | 13 - .../io/deephaven/csv/DeephavenCsvTest.java | 15 +- .../java/io/deephaven/csv/TestCsvTools.java | 9 +- .../io/deephaven/jdbc/JdbcTypeMapper.java | 62 ++-- .../jdbc/JdbcToTableAdapterTest.java | 27 +- .../java/io/deephaven/kafka/KafkaTools.java | 8 +- .../ingest/GenericRecordChunkAdapter.java | 19 +- ...GenericRecordInstantArrayFieldCopier.java} | 7 +- .../kafka/ingest/JsonNodeChunkAdapter.java | 6 +- ...r.java => JsonNodeInstantFieldCopier.java} | 11 +- .../deephaven/kafka/ingest/JsonNodeUtil.java | 34 +- .../GenericRecordKeyOrValueSerializer.java | 19 +- .../kafka/ingest/TestAvroAdapter.java | 28 +- .../parquet/table/TableWriteBenchmark.java | 2 +- .../BrotliParquetTableReadWriteTest.java | 2 +- .../parquet/table/ParquetSchemaReader.java | 6 +- .../parquet/table/ParquetTableWriter.java | 8 +- .../io/deephaven/parquet/table/TypeInfos.java | 8 +- .../table/location/ParquetColumnLocation.java | 4 +- ...ToDateTimePage.java => ToInstantPage.java} | 46 +-- ...Int96.java => ToInstantPageFromInt96.java} | 32 +- .../table/ParquetTableReadWriteTest.java | 2 +- .../lang/completion/ChunkerCompleter.java | 4 +- .../lang/completion/CompletionRequest.java | 2 +- ...lumnExpressionCompletionHandlerTest.groovy | 5 +- .../figure/FigureWidgetTranslator.java | 5 +- py/server/tests/test_parquet.py | 2 +- .../ReplicateSegmentedSortedMultiset.java | 2 +- .../ReplicateSourcesAndChunks.java | 2 +- .../barrage/BarrageMessageProducer.java | 8 +- .../HierarchicalTableViewSubscription.java | 6 +- .../table/ops/TableServiceGrpcImpl.java | 9 +- .../server/table/ops/TimeTableGrpcImpl.java | 2 +- .../table/ops/filter/FilterFactory.java | 5 +- .../table/ops/filter/FilterPrinter.java | 2 +- .../validation/ColumnExpressionValidator.java | 8 +- .../barrage/BarrageMessageRoundTripTest.java | 18 +- .../server/session/SessionStateTest.java | 4 +- .../table/ExportTableUpdateListenerTest.java | 2 +- .../server/util/TestControlledScheduler.java | 39 ++- .../test/FlightMessageRoundTripTest.java | 4 +- .../client/api/barrage/WebBarrageUtils.java | 1 - .../web/client/api/parse/JsDataHandler.java | 2 +- .../subscription/SubscriptionTableData.java | 1 - .../web/client/api/widget/plot/JsFigure.java | 2 +- .../io/deephaven/web/client/fu/JsData.java | 1 - 260 files changed, 2516 insertions(+), 3941 deletions(-) rename BenchmarkSupport/src/main/java/io/deephaven/benchmarking/generator/{DateColumnGenerator.java => InstantColumnGenerator.java} (61%) rename Plot/src/main/java/io/deephaven/plot/datasets/data/{IndexableDataDateTime.java => IndexableDataInstant.java} (65%) rename Plot/src/main/java/io/deephaven/plot/datasets/data/{IndexableNumericDataArrayDateTime.java => IndexableNumericDataArrayInstant.java} (71%) rename engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/{SingleTableKeyedDateTimeOperations.java => SingleTableKeyedInstantOperations.java} (87%) delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/UnboxedDateTimeWritableSource.java delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/replay/DateTimeClock.java rename engine/table/src/main/java/io/deephaven/engine/table/impl/select/{DateTimeRangeFilter.java => InstantRangeFilter.java} (51%) delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeAsLongColumnSource.java delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongAsDateTimeColumnSource.java delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/sources/WritableLongAsDateTimeColumnSource.java delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DDateTimeArraySource.java delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantDateTimeSource.java delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableDateTimeArraySource.java delete mode 100644 engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableLongAsDateTimeColumnSource.java delete mode 100644 engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/SortedDateTimeGenerator.java create mode 100644 engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/SortedInstantGenerator.java delete mode 100644 engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedDateTimeGenerator.java delete mode 100644 engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedDateTimeLongGenerator.java create mode 100644 engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedInstantGenerator.java create mode 100644 engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedInstantLongGenerator.java delete mode 100644 engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/DateTimeTestSource.java delete mode 100644 engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/ImmutableDateTimeTestSource.java delete mode 100644 engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/UnboxedDateTimeTestSource.java delete mode 100644 engine/time/src/main/java/io/deephaven/time/DateTime.java rename extensions/kafka/src/main/java/io/deephaven/kafka/ingest/{GenericRecordDateTimeArrayFieldCopier.java => GenericRecordInstantArrayFieldCopier.java} (85%) rename extensions/kafka/src/main/java/io/deephaven/kafka/ingest/{JsonNodeDateTimeFieldCopier.java => JsonNodeInstantFieldCopier.java} (77%) rename extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/{ToDateTimePage.java => ToInstantPage.java} (61%) rename extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/{ToDateTimePageFromInt96.java => ToInstantPageFromInt96.java} (73%) diff --git a/BenchmarkSupport/src/main/java/io/deephaven/benchmarking/BenchmarkTools.java b/BenchmarkSupport/src/main/java/io/deephaven/benchmarking/BenchmarkTools.java index 7eb70c0e034..4e6638a5966 100644 --- a/BenchmarkSupport/src/main/java/io/deephaven/benchmarking/BenchmarkTools.java +++ b/BenchmarkSupport/src/main/java/io/deephaven/benchmarking/BenchmarkTools.java @@ -3,13 +3,11 @@ */ package io.deephaven.benchmarking; -import io.deephaven.configuration.Configuration; import io.deephaven.configuration.DataDir; import io.deephaven.engine.context.ExecutionContext; import io.deephaven.engine.table.ColumnDefinition; import io.deephaven.engine.table.Table; import io.deephaven.engine.table.TableDefinition; -import io.deephaven.time.DateTime; import io.deephaven.util.annotations.ScriptApi; import io.deephaven.benchmarking.generator.*; import io.deephaven.benchmarking.impl.PersistentBenchmarkTableBuilder; @@ -18,6 +16,7 @@ import org.openjdk.jmh.infra.BenchmarkParams; import java.nio.file.Path; +import java.time.Instant; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -147,24 +146,24 @@ public static ColumnGenerator charCol(String name, char min, char max /** * @param name The name of the column - * @return a {@link ColumnGenerator< DateTime >} for use with + * @return a {@link ColumnGenerator< Instant >} for use with * {@link BenchmarkTableBuilder#addColumn(ColumnGenerator)} */ @ScriptApi - public static ColumnGenerator dateCol(String name) { - return new DateColumnGenerator(name); + public static ColumnGenerator instantCol(String name) { + return new InstantColumnGenerator(name); } /** * @param name The name of the column * @param min the minimum value * @param max the maximum value - * @return a {@link ColumnGenerator< DateTime >} for use with + * @return a {@link ColumnGenerator< Instant >} for use with * {@link BenchmarkTableBuilder#addColumn(ColumnGenerator)} */ @ScriptApi - public static ColumnGenerator dateCol(String name, DateTime min, DateTime max) { - return new DateColumnGenerator(name, min, max); + public static ColumnGenerator instantCol(String name, Instant min, Instant max) { + return new InstantColumnGenerator(name, min, max); } /** diff --git a/BenchmarkSupport/src/main/java/io/deephaven/benchmarking/generator/DateColumnGenerator.java b/BenchmarkSupport/src/main/java/io/deephaven/benchmarking/generator/InstantColumnGenerator.java similarity index 61% rename from BenchmarkSupport/src/main/java/io/deephaven/benchmarking/generator/DateColumnGenerator.java rename to BenchmarkSupport/src/main/java/io/deephaven/benchmarking/generator/InstantColumnGenerator.java index 9086de9f5be..2420ffb7275 100644 --- a/BenchmarkSupport/src/main/java/io/deephaven/benchmarking/generator/DateColumnGenerator.java +++ b/BenchmarkSupport/src/main/java/io/deephaven/benchmarking/generator/InstantColumnGenerator.java @@ -4,32 +4,34 @@ package io.deephaven.benchmarking.generator; import io.deephaven.engine.table.ColumnDefinition; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.benchmarking.generator.random.ExtendedRandom; -public class DateColumnGenerator implements ColumnGenerator { +import java.time.Instant; + +public class InstantColumnGenerator implements ColumnGenerator { + private NumGenerator gen; - private final ColumnDefinition def; + private final ColumnDefinition def; private final long min; private final long max; - public DateColumnGenerator(String name) { + public InstantColumnGenerator(String name) { this(name, 0, Long.MAX_VALUE); } - public DateColumnGenerator(String name, DateTime min, DateTime max) { - this(name, min.getNanos(), max.getNanos()); + public InstantColumnGenerator(String name, Instant min, Instant max) { + this(name, DateTimeUtils.epochNanos(min), DateTimeUtils.epochNanos(max)); } - private DateColumnGenerator(String name, long min, long max) { + private InstantColumnGenerator(String name, long min, long max) { def = ColumnDefinition.ofTime(name); this.min = min; this.max = max; } @Override - public ColumnDefinition getDefinition() { + public ColumnDefinition getDefinition() { return def; } @@ -48,7 +50,7 @@ public void init(ExtendedRandom random) { gen = new NumGenerator(min, max, random); } - public DateTime get() { - return DateTimeUtils.epochNanosToDateTime(gen.getLong()); + public Instant get() { + return DateTimeUtils.epochNanosToInstant(gen.getLong()); } } diff --git a/ClientSupport/src/main/java/io/deephaven/clientsupport/gotorow/SeekRow.java b/ClientSupport/src/main/java/io/deephaven/clientsupport/gotorow/SeekRow.java index cec1eb81126..598ece5d9aa 100644 --- a/ClientSupport/src/main/java/io/deephaven/clientsupport/gotorow/SeekRow.java +++ b/ClientSupport/src/main/java/io/deephaven/clientsupport/gotorow/SeekRow.java @@ -1,5 +1,6 @@ package io.deephaven.clientsupport.gotorow; +import java.time.Instant; import java.util.function.Function; import gnu.trove.set.TLongSet; import gnu.trove.set.hash.TLongHashSet; @@ -12,7 +13,7 @@ import io.deephaven.engine.table.Table; import io.deephaven.internal.log.LoggerFactory; import io.deephaven.io.logger.Logger; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import java.util.Random; @@ -112,10 +113,10 @@ public Long apply(Table table) { log.info().append("Using numerical distance (").appendDouble(dl).append(", ").appendDouble(du) .append(")").endl(); return index.find(du < dl ? closestUpperRowYet : closestLowerRowYet); - } else if (DateTime.class.isAssignableFrom(columnType)) { - long nu = ((DateTime) closestUpperValueYet).getNanos(); - long nl = ((DateTime) closestLowerValueYet).getNanos(); - long ns = ((DateTime) seekValue).getNanos(); + } else if (Instant.class.isAssignableFrom(columnType)) { + long nu = DateTimeUtils.epochNanos(((Instant) closestUpperValueYet)); + long nl = DateTimeUtils.epochNanos(((Instant) closestLowerValueYet)); + long ns = DateTimeUtils.epochNanos(((Instant) seekValue)); long du = Math.abs(nu - ns); long dl = Math.abs(nl - ns); log.info().append("Using nano distance (").append(dl).append(", ").append(du).append(")").endl(); diff --git a/ClientSupport/src/main/java/io/deephaven/clientsupport/plotdownsampling/RunChartDownsample.java b/ClientSupport/src/main/java/io/deephaven/clientsupport/plotdownsampling/RunChartDownsample.java index 1ced6a9c3a7..f963fb74576 100644 --- a/ClientSupport/src/main/java/io/deephaven/clientsupport/plotdownsampling/RunChartDownsample.java +++ b/ClientSupport/src/main/java/io/deephaven/clientsupport/plotdownsampling/RunChartDownsample.java @@ -12,7 +12,6 @@ import io.deephaven.engine.rowset.chunkattributes.OrderedRowKeys; import io.deephaven.internal.log.LoggerFactory; import io.deephaven.function.Numeric; -import io.deephaven.time.DateTime; import io.deephaven.hash.KeyedLongObjectHash; import io.deephaven.hash.KeyedLongObjectHashMap; import io.deephaven.hash.KeyedLongObjectKey; @@ -30,6 +29,7 @@ import org.apache.commons.lang3.mutable.MutableObject; import org.jetbrains.annotations.Nullable; +import java.time.Instant; import java.util.Arrays; import java.util.Iterator; import java.util.List; @@ -275,7 +275,9 @@ public BucketState newValue(final Long key) { } }; - private DownsamplerListener(final QueryTable sourceTable, final QueryTable resultTable, + private DownsamplerListener( + final QueryTable sourceTable, + final QueryTable resultTable, final DownsampleKey key) { super("downsample listener", sourceTable, resultTable); this.sourceTable = sourceTable; @@ -284,14 +286,14 @@ private DownsamplerListener(final QueryTable sourceTable, final QueryTable resul this.key = key; final ColumnSource xSource = sourceTable.getColumnSource(key.xColumnName); - if (xSource.getType() == DateTime.class) { - this.xColumnSource = ReinterpretUtils.dateTimeToLongSource(xSource); + if (xSource.getType() == Instant.class) { + this.xColumnSource = ReinterpretUtils.instantToLongSource(xSource); } else if (xSource.allowsReinterpret(long.class)) { // noinspection unchecked this.xColumnSource = xSource.reinterpret(long.class); } else { throw new IllegalArgumentException( - "Cannot use non-DateTime, non-long x column " + key.xColumnName + " in downsample"); + "Cannot use non-Instant, non-long x column " + key.xColumnName + " in downsample"); } this.valueColumnSources = Arrays.stream(this.key.yColumnNames) diff --git a/Generators/src/main/java/io/deephaven/plot/util/GenerateAxesPlotMethods.java b/Generators/src/main/java/io/deephaven/plot/util/GenerateAxesPlotMethods.java index 5e0467fce00..4bc25a59ac5 100644 --- a/Generators/src/main/java/io/deephaven/plot/util/GenerateAxesPlotMethods.java +++ b/Generators/src/main/java/io/deephaven/plot/util/GenerateAxesPlotMethods.java @@ -184,7 +184,7 @@ public String getVariableType(int index) { @Override public String getIndexableDataCode(String variableName) { - return "new IndexableNumericDataArrayDateTime(" + variableName + ", " + PLOT_INFO_ID + ")"; + return "new IndexableNumericDataArrayInstant(" + variableName + ", " + PLOT_INFO_ID + ")"; } @Override diff --git a/Integrations/src/main/java/io/deephaven/integrations/common/PrimitiveArrayConversionUtility.java b/Integrations/src/main/java/io/deephaven/integrations/common/PrimitiveArrayConversionUtility.java index 5ac940c64df..2ad1466d7ba 100644 --- a/Integrations/src/main/java/io/deephaven/integrations/common/PrimitiveArrayConversionUtility.java +++ b/Integrations/src/main/java/io/deephaven/integrations/common/PrimitiveArrayConversionUtility.java @@ -3,7 +3,6 @@ */ package io.deephaven.integrations.common; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.BooleanUtils; @@ -45,36 +44,6 @@ public static Boolean[] translateArrayByteToBoolean(final byte[] array) { return out; } - /** - * Translates a DateTime array to a long array. The mapping will be performed according to - * {@link DateTimeUtils#epochNanos(DateTime)}. This is the (psuedo)inverse of `translateArrayLongToDateTime`. - * - * @param array - the DateTime array - * @return the corresponding long array - */ - public static long[] translateArrayDateTimeToLong(final DateTime[] array) { - final long[] out = new long[array.length]; - for (int ai = 0; ai < array.length; ai++) { - out[ai] = DateTimeUtils.epochNanos(array[ai]); - } - return out; - } - - /** - * Translates a long array to a DateTime array. The mapping will be performed according to - * {@link DateTimeUtils#epochNanosToDateTime(long)}. This is the (psuedo)inverse of `translateArrayLongToDateTime`. - * - * @param array - the long array - * @return the corresponding DateTime array - */ - public static DateTime[] translateArrayLongToDateTime(final long[] array) { - final DateTime[] out = new DateTime[array.length]; - for (int ai = 0; ai < array.length; ai++) { - out[ai] = DateTimeUtils.epochNanosToDateTime(array[ai]); - } - return out; - } - /** * Translates an Instant array to a long array. The mapping will be performed according to * {@link DateTimeUtils#epochNanos(Instant)}. This is the (psuedo)inverse of `translateArrayLongToInstant`. diff --git a/ModelFarm/src/main/java/io/deephaven/modelfarm/util/ModelFarmUtils.java b/ModelFarm/src/main/java/io/deephaven/modelfarm/util/ModelFarmUtils.java index c5b8420f310..1d19872ad23 100644 --- a/ModelFarm/src/main/java/io/deephaven/modelfarm/util/ModelFarmUtils.java +++ b/ModelFarm/src/main/java/io/deephaven/modelfarm/util/ModelFarmUtils.java @@ -6,7 +6,8 @@ import io.deephaven.base.verify.Require; import io.deephaven.engine.table.Table; import io.deephaven.vector.*; -import io.deephaven.time.DateTime; + +import java.time.Instant; /** * Utilities for building model farms. @@ -53,9 +54,9 @@ public static String[] arrayString(final Object o) { * @param o table cell value. * @return date time array. */ - public static DateTime[] arrayDateTime(final Object o) { + public static Instant[] arrayInstant(final Object o) { // noinspection unchecked - return o == null ? null : ((ObjectVector) o).toArray(); + return o == null ? null : ((ObjectVector) o).toArray(); } /** diff --git a/ModelFarm/src/test/java/io/deephaven/modelfarm/util/TestModelFarmUtils.java b/ModelFarm/src/test/java/io/deephaven/modelfarm/util/TestModelFarmUtils.java index f9bfd423016..840d3d8a0a1 100644 --- a/ModelFarm/src/test/java/io/deephaven/modelfarm/util/TestModelFarmUtils.java +++ b/ModelFarm/src/test/java/io/deephaven/modelfarm/util/TestModelFarmUtils.java @@ -10,11 +10,12 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.util.SafeCloseable; import io.deephaven.vector.*; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; import org.junit.After; import org.junit.Before; +import java.time.Instant; + public class TestModelFarmUtils extends BaseArrayTestCase { private SafeCloseable executionContext; @@ -63,13 +64,14 @@ public void testArrayString() { assertNull(ModelFarmUtils.arrayString(null)); } - public void testArrayDateTime() { - final DateTime[] target = {DateTimeUtils.parseDateTime("2018-01-11T01:01:01 NY"), - DateTimeUtils.parseDateTime("2018-02-11T01:01:01 NY"), - DateTimeUtils.parseDateTime("2018-03-11T01:01:01 NY")}; - final DateTime[] result = ModelFarmUtils.arrayDateTime(new ObjectVectorDirect<>(target)); + public void testArrayInstant() { + final Instant[] target = { + DateTimeUtils.parseInstant("2018-01-11T01:01:01 NY"), + DateTimeUtils.parseInstant("2018-02-11T01:01:01 NY"), + DateTimeUtils.parseInstant("2018-03-11T01:01:01 NY")}; + final Instant[] result = ModelFarmUtils.arrayInstant(new ObjectVectorDirect<>(target)); assertEquals(target, result); - assertNull(ModelFarmUtils.arrayDateTime(null)); + assertNull(ModelFarmUtils.arrayInstant(null)); } public void testArrayFloat() { diff --git a/Numerics/src/main/java/io/deephaven/numerics/movingaverages/ByEma.java b/Numerics/src/main/java/io/deephaven/numerics/movingaverages/ByEma.java index 82a2b1e2d26..49e50ec3c5d 100644 --- a/Numerics/src/main/java/io/deephaven/numerics/movingaverages/ByEma.java +++ b/Numerics/src/main/java/io/deephaven/numerics/movingaverages/ByEma.java @@ -5,9 +5,10 @@ import io.deephaven.base.verify.Require; import io.deephaven.function.Basic; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import java.io.Serializable; +import java.time.Instant; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -88,12 +89,12 @@ public synchronized double update(double value, Object... by) { return update(Long.MIN_VALUE, value, by); } - public synchronized double update(DateTime timestamp, double value) { + public synchronized double update(Instant timestamp, double value) { return update(timestamp, value, (Object) null); } - public synchronized double update(DateTime timestamp, double value, Object... by) { - return update(timestamp.getNanos(), value, by); + public synchronized double update(Instant timestamp, double value, Object... by) { + return update(DateTimeUtils.epochNanos(timestamp), value, by); } public synchronized double update(long timestampNanos, double value, Object... by) { diff --git a/Numerics/src/test/java/io/deephaven/numerics/movingaverages/ByEmaTest.java b/Numerics/src/test/java/io/deephaven/numerics/movingaverages/ByEmaTest.java index 2e6862bdca7..1984d0e61da 100644 --- a/Numerics/src/test/java/io/deephaven/numerics/movingaverages/ByEmaTest.java +++ b/Numerics/src/test/java/io/deephaven/numerics/movingaverages/ByEmaTest.java @@ -4,10 +4,12 @@ package io.deephaven.numerics.movingaverages; import io.deephaven.base.testing.RecordingMockObject; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import junit.framework.TestCase; +import java.time.Instant; + /** * Test ByEma. */ @@ -79,70 +81,70 @@ public void testEverything() { assertEquals(target.getActivityRecordAndReset(), emaActual.logger.getActivityRecordAndReset()); - DateTime ts0 = new DateTime(DAY * 1000000); + Instant ts0 = DateTimeUtils.epochNanosToInstant(DAY * 1000000); ByEma.Key k0 = new ByEma.Key("A", "B"); MA ma0 = new MA(target, k0); - ma0.processDoubleLocal(ts0.getNanos(), 1); + ma0.processDoubleLocal(DateTimeUtils.epochNanos(ts0), 1); ma0.getCurrent(); emaActual.update(ts0, 1, "A", "B"); assertEquals(target.getActivityRecordAndReset(), emaActual.logger.getActivityRecordAndReset()); - DateTime ts1 = new DateTime(2 * DAY * 1000000); - ma0.processDoubleLocal(ts1.getNanos(), 2); + Instant ts1 = DateTimeUtils.epochNanosToInstant(2 * DAY * 1000000); + ma0.processDoubleLocal(DateTimeUtils.epochNanos(ts1), 2); ma0.getCurrent(); emaActual.update(ts1, 2, "A", "B"); assertEquals(target.getActivityRecordAndReset(), emaActual.logger.getActivityRecordAndReset()); - DateTime ts2 = new DateTime(3 * DAY * 1000000); + Instant ts2 = DateTimeUtils.epochNanosToInstant(3 * DAY * 1000000); ByEma.Key k1 = new ByEma.Key("A", "C"); MA ma1 = new MA(target, k1); - ma1.processDoubleLocal(ts2.getNanos(), 3); + ma1.processDoubleLocal(DateTimeUtils.epochNanos(ts2), 3); ma1.getCurrent(); emaActual.update(ts2, 3, "A", "C"); assertEquals(target.getActivityRecordAndReset(), emaActual.logger.getActivityRecordAndReset()); - DateTime ts3 = new DateTime(4 * DAY * 1000000); - ma0.processDoubleLocal(ts3.getNanos(), 4); + Instant ts3 = DateTimeUtils.epochNanosToInstant(4 * DAY * 1000000); + ma0.processDoubleLocal(DateTimeUtils.epochNanos(ts3), 4); ma0.getCurrent(); emaActual.update(ts3, 4, "A", "B"); assertEquals(target.getActivityRecordAndReset(), emaActual.logger.getActivityRecordAndReset()); - DateTime ts4 = new DateTime(5 * DAY * 1000000); + Instant ts4 = DateTimeUtils.epochNanosToInstant(5 * DAY * 1000000); MA ma2 = new MA(target, k0); emaActual.update(ts4, NULL, "A", "B"); assertEquals(target.getActivityRecordAndReset(), emaActual.logger.getActivityRecordAndReset()); - DateTime ts5 = new DateTime(6 * DAY * 1000000); - ma1.processDoubleLocal(ts5.getNanos(), 6); + Instant ts5 = DateTimeUtils.epochNanosToInstant(6 * DAY * 1000000); + ma1.processDoubleLocal(DateTimeUtils.epochNanos(ts5), 6); ma1.getCurrent(); emaActual.update(ts5, 6, "A", "C"); assertEquals(target.getActivityRecordAndReset(), emaActual.logger.getActivityRecordAndReset()); - DateTime ts6 = new DateTime(5 * DAY * 1000000); - ma2.processDoubleLocal(ts6.getNanos(), 7); + Instant ts6 = DateTimeUtils.epochNanosToInstant(5 * DAY * 1000000); + ma2.processDoubleLocal(DateTimeUtils.epochNanos(ts6), 7); ma2.getCurrent(); emaActual.update(ts6, 7, "A", "B"); assertEquals(target.getActivityRecordAndReset(), emaActual.logger.getActivityRecordAndReset()); - DateTime ts7 = new DateTime(6 * DAY * 1000000); + Instant ts7 = DateTimeUtils.epochNanosToInstant(6 * DAY * 1000000); MA ma3 = new MA(target, k0); emaActual.update(ts7, NAN, "A", "B"); assertEquals(target.getActivityRecordAndReset(), emaActual.logger.getActivityRecordAndReset()); - DateTime ts8 = new DateTime(7 * DAY * 1000000); - ma3.processDoubleLocal(ts8.getNanos(), 8); + Instant ts8 = DateTimeUtils.epochNanosToInstant(7 * DAY * 1000000); + ma3.processDoubleLocal(DateTimeUtils.epochNanos(ts8), 8); ma3.getCurrent(); emaActual.update(ts8, 8, "A", "B"); assertEquals(target.getActivityRecordAndReset(), emaActual.logger.getActivityRecordAndReset()); - DateTime ts9 = new DateTime(8 * DAY * 1000000); - ma1.processDoubleLocal(ts9.getNanos(), 8); + Instant ts9 = DateTimeUtils.epochNanosToInstant(8 * DAY * 1000000); + ma1.processDoubleLocal(DateTimeUtils.epochNanos(ts9), 8); ma1.getCurrent(); emaActual.update(ts9, 8, "A", "C"); assertEquals(target.getActivityRecordAndReset(), emaActual.logger.getActivityRecordAndReset()); // test no time version - DateTime ts10 = new DateTime(9 * DAY * 1000000); + Instant ts10 = DateTimeUtils.epochNanosToInstant(9 * DAY * 1000000); ma1.processDoubleLocal(Long.MIN_VALUE, 9); ma1.getCurrent(); emaActual.update(9, "A", "C"); diff --git a/Plot/src/main/java/io/deephaven/plot/Axes.java b/Plot/src/main/java/io/deephaven/plot/Axes.java index 32389ab65c1..541b20c7303 100644 --- a/Plot/src/main/java/io/deephaven/plot/Axes.java +++ b/Plot/src/main/java/io/deephaven/plot/Axes.java @@ -17,13 +17,13 @@ import io.deephaven.plot.datasets.xyerrorbar.XYErrorBarDataSeries; import io.deephaven.plot.filters.SelectableDataSet; import io.deephaven.engine.table.Table; -import io.deephaven.time.DateTime; import io.deephaven.gui.color.Paint; import io.deephaven.time.calendar.BusinessCalendar; import groovy.lang.Closure; import org.jetbrains.annotations.Nullable; import java.io.Serializable; +import java.time.Instant; import java.util.Date; import java.util.List; import java.util.function.DoubleUnaryOperator; @@ -1404,7 +1404,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final Date[] x, final DateTime[] y); + XYDataSeries plot(final Comparable seriesName, final Date[] x, final Instant[] y); /** * Creates an XY plot. @@ -1486,7 +1486,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final DateTime[] x, final Date[] y); + XYDataSeries plot(final Comparable seriesName, final Instant[] x, final Date[] y); /** * Creates an XY plot. @@ -1496,7 +1496,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final DateTime[] x, final DateTime[] y); + XYDataSeries plot(final Comparable seriesName, final Instant[] x, final Instant[] y); /** * Creates an XY plot. @@ -1506,7 +1506,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final DateTime[] x, final short[] y); + XYDataSeries plot(final Comparable seriesName, final Instant[] x, final short[] y); /** * Creates an XY plot. @@ -1516,7 +1516,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final DateTime[] x, final int[] y); + XYDataSeries plot(final Comparable seriesName, final Instant[] x, final int[] y); /** * Creates an XY plot. @@ -1526,7 +1526,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final DateTime[] x, final long[] y); + XYDataSeries plot(final Comparable seriesName, final Instant[] x, final long[] y); /** * Creates an XY plot. @@ -1536,7 +1536,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final DateTime[] x, final float[] y); + XYDataSeries plot(final Comparable seriesName, final Instant[] x, final float[] y); /** * Creates an XY plot. @@ -1546,7 +1546,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final DateTime[] x, final double[] y); + XYDataSeries plot(final Comparable seriesName, final Instant[] x, final double[] y); /** * Creates an XY plot. @@ -1557,7 +1557,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final DateTime[] x, final T1[] y); + XYDataSeries plot(final Comparable seriesName, final Instant[] x, final T1[] y); /** * Creates an XY plot. @@ -1568,7 +1568,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final DateTime[] x, final List y); + XYDataSeries plot(final Comparable seriesName, final Instant[] x, final List y); /** * Creates an XY plot. @@ -1588,7 +1588,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final short[] x, final DateTime[] y); + XYDataSeries plot(final Comparable seriesName, final short[] x, final Instant[] y); /** * Creates an XY plot. @@ -1680,7 +1680,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final int[] x, final DateTime[] y); + XYDataSeries plot(final Comparable seriesName, final int[] x, final Instant[] y); /** * Creates an XY plot. @@ -1772,7 +1772,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final long[] x, final DateTime[] y); + XYDataSeries plot(final Comparable seriesName, final long[] x, final Instant[] y); /** * Creates an XY plot. @@ -1864,7 +1864,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final float[] x, final DateTime[] y); + XYDataSeries plot(final Comparable seriesName, final float[] x, final Instant[] y); /** * Creates an XY plot. @@ -1956,7 +1956,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final double[] x, final DateTime[] y); + XYDataSeries plot(final Comparable seriesName, final double[] x, final Instant[] y); /** * Creates an XY plot. @@ -2050,7 +2050,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final T0[] x, final DateTime[] y); + XYDataSeries plot(final Comparable seriesName, final T0[] x, final Instant[] y); /** * Creates an XY plot. @@ -2151,7 +2151,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created for plot */ - XYDataSeries plot(final Comparable seriesName, final List x, final DateTime[] y); + XYDataSeries plot(final Comparable seriesName, final List x, final Instant[] y); /** * Creates an XY plot. @@ -2256,7 +2256,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param close close data * @return dataset created by the plot */ - OHLCDataSeries ohlcPlot(final Comparable seriesName, final DateTime[] time, final short[] open, final short[] high, final short[] low, final short[] close); + OHLCDataSeries ohlcPlot(final Comparable seriesName, final Instant[] time, final short[] open, final short[] high, final short[] low, final short[] close); /** * Creates an open-high-low-close plot. @@ -2282,7 +2282,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param close close data * @return dataset created by the plot */ - OHLCDataSeries ohlcPlot(final Comparable seriesName, final DateTime[] time, final int[] open, final int[] high, final int[] low, final int[] close); + OHLCDataSeries ohlcPlot(final Comparable seriesName, final Instant[] time, final int[] open, final int[] high, final int[] low, final int[] close); /** * Creates an open-high-low-close plot. @@ -2308,7 +2308,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param close close data * @return dataset created by the plot */ - OHLCDataSeries ohlcPlot(final Comparable seriesName, final DateTime[] time, final long[] open, final long[] high, final long[] low, final long[] close); + OHLCDataSeries ohlcPlot(final Comparable seriesName, final Instant[] time, final long[] open, final long[] high, final long[] low, final long[] close); /** * Creates an open-high-low-close plot. @@ -2334,7 +2334,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param close close data * @return dataset created by the plot */ - OHLCDataSeries ohlcPlot(final Comparable seriesName, final DateTime[] time, final float[] open, final float[] high, final float[] low, final float[] close); + OHLCDataSeries ohlcPlot(final Comparable seriesName, final Instant[] time, final float[] open, final float[] high, final float[] low, final float[] close); /** * Creates an open-high-low-close plot. @@ -2360,7 +2360,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param close close data * @return dataset created by the plot */ - OHLCDataSeries ohlcPlot(final Comparable seriesName, final DateTime[] time, final double[] open, final double[] high, final double[] low, final double[] close); + OHLCDataSeries ohlcPlot(final Comparable seriesName, final Instant[] time, final double[] open, final double[] high, final double[] low, final double[] close); /** * Creates an open-high-low-close plot. @@ -2394,7 +2394,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param close data type * @return dataset created by the plot */ - OHLCDataSeries ohlcPlot(final Comparable seriesName, final DateTime[] time, final T1[] open, final T2[] high, final T3[] low, final T4[] close); + OHLCDataSeries ohlcPlot(final Comparable seriesName, final Instant[] time, final T1[] open, final T2[] high, final T3[] low, final T4[] close); /** * Creates an open-high-low-close plot. @@ -2428,7 +2428,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param close data type * @return dataset created by the plot */ - OHLCDataSeries ohlcPlot(final Comparable seriesName, final DateTime[] time, final List open, final List high, final List low, final List close); + OHLCDataSeries ohlcPlot(final Comparable seriesName, final Instant[] time, final List open, final List high, final List low, final List close); /** * Creates a histogram. @@ -2724,7 +2724,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -2946,7 +2946,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final short[] y, final short[] yLow, final short[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final short[] y, final short[] yLow, final short[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -2960,7 +2960,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final short[] x, final short[] xLow, final short[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final short[] x, final short[] xLow, final short[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -2974,7 +2974,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final int[] y, final int[] yLow, final int[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final int[] y, final int[] yLow, final int[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -2988,7 +2988,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final int[] x, final int[] xLow, final int[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final int[] x, final int[] xLow, final int[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -3002,7 +3002,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final long[] y, final long[] yLow, final long[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final long[] y, final long[] yLow, final long[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -3016,7 +3016,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final long[] x, final long[] xLow, final long[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final long[] x, final long[] xLow, final long[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -3030,7 +3030,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final float[] y, final float[] yLow, final float[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final float[] y, final float[] yLow, final float[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -3044,7 +3044,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final float[] x, final float[] xLow, final float[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final float[] x, final float[] xLow, final float[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -3058,7 +3058,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final double[] y, final double[] yLow, final double[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final double[] y, final double[] yLow, final double[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -3072,7 +3072,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final double[] x, final double[] xLow, final double[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final double[] x, final double[] xLow, final double[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -3089,7 +3089,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final T3[] y, final T4[] yLow, final T5[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final T3[] y, final T4[] yLow, final T5[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -3106,7 +3106,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final T0[] x, final T1[] xLow, final T2[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final T0[] x, final T1[] xLow, final T2[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -3123,7 +3123,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final List y, final List yLow, final List yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final List y, final List yLow, final List yHigh); /** * Creates an XY plot with error bars in both the x and y directions. @@ -3140,7 +3140,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final List x, final List xLow, final List xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarXY(final Comparable seriesName, final List x, final List xLow, final List xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in the x direction. @@ -3256,7 +3256,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final DateTime[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final Instant[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3444,7 +3444,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final short[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final short[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3456,7 +3456,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final short[] x, final short[] xLow, final short[] xHigh, final DateTime[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final short[] x, final short[] xLow, final short[] xHigh, final Instant[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3468,7 +3468,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final int[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final int[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3480,7 +3480,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final int[] x, final int[] xLow, final int[] xHigh, final DateTime[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final int[] x, final int[] xLow, final int[] xHigh, final Instant[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3492,7 +3492,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final long[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final long[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3504,7 +3504,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final long[] x, final long[] xLow, final long[] xHigh, final DateTime[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final long[] x, final long[] xLow, final long[] xHigh, final Instant[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3516,7 +3516,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final float[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final float[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3528,7 +3528,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final float[] x, final float[] xLow, final float[] xHigh, final DateTime[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final float[] x, final float[] xLow, final float[] xHigh, final Instant[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3540,7 +3540,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final double[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final double[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3552,7 +3552,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param y y-values * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final double[] x, final double[] xLow, final double[] xHigh, final DateTime[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final double[] x, final double[] xLow, final double[] xHigh, final Instant[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3565,7 +3565,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final T3[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final T3[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3580,7 +3580,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final T0[] x, final T1[] xLow, final T2[] xHigh, final DateTime[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final T0[] x, final T1[] xLow, final T2[] xHigh, final Instant[] y); /** * Creates an XY plot with error bars in the x direction. @@ -3593,7 +3593,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final List y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final List y); /** * Creates an XY plot with error bars in the x direction. @@ -3608,7 +3608,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarX(final Comparable seriesName, final List x, final List xLow, final List xHigh, final DateTime[] y); + XYErrorBarDataSeries errorBarX(final Comparable seriesName, final List x, final List xLow, final List xHigh, final Instant[] y); /** * Creates an XY plot with error bars in the y direction. @@ -3724,7 +3724,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final DateTime[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final Instant[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -3912,7 +3912,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final DateTime[] x, final short[] y, final short[] yLow, final short[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final Instant[] x, final short[] y, final short[] yLow, final short[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -3924,7 +3924,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final short[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final short[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -3936,7 +3936,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final DateTime[] x, final int[] y, final int[] yLow, final int[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final Instant[] x, final int[] y, final int[] yLow, final int[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -3948,7 +3948,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final int[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final int[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -3960,7 +3960,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final DateTime[] x, final long[] y, final long[] yLow, final long[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final Instant[] x, final long[] y, final long[] yLow, final long[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -3972,7 +3972,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final long[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final long[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -3984,7 +3984,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final DateTime[] x, final float[] y, final float[] yLow, final float[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final Instant[] x, final float[] y, final float[] yLow, final float[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -3996,7 +3996,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final float[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final float[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -4008,7 +4008,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final DateTime[] x, final double[] y, final double[] yLow, final double[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final Instant[] x, final double[] y, final double[] yLow, final double[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -4020,7 +4020,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param yHigh high value in y dimension * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final double[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final double[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -4035,7 +4035,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final DateTime[] x, final T1[] y, final T2[] yLow, final T3[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final Instant[] x, final T1[] y, final T2[] yLow, final T3[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -4048,7 +4048,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final T0[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final T0[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -4063,7 +4063,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final DateTime[] x, final List y, final List yLow, final List yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final Instant[] x, final List y, final List yLow, final List yHigh); /** * Creates an XY plot with error bars in the y direction. @@ -4076,7 +4076,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param data type * @return dataset created by the plot */ - XYErrorBarDataSeries errorBarY(final Comparable seriesName, final List x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + XYErrorBarDataSeries errorBarY(final Comparable seriesName, final List x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates a category error bar plot with whiskers in the y direction. @@ -4296,7 +4296,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param type of the categorical data * @return dataset created by the plot */ - CategoryDataSeries catErrorBar(final Comparable seriesName, final T0[] categories, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh); + CategoryDataSeries catErrorBar(final Comparable seriesName, final T0[] categories, final Instant[] y, final Instant[] yLow, final Instant[] yHigh); /** * Creates a plot with discrete axis. @@ -4320,7 +4320,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param type of the categorical data * @return dataset created for plot */ - CategoryDataSeries catPlot(final Comparable seriesName, final T0[] categories, final DateTime[] y); + CategoryDataSeries catPlot(final Comparable seriesName, final T0[] categories, final Instant[] y); /** * Creates a plot with discrete axis. @@ -4430,7 +4430,7 @@ CategoryDataSeries piePlot(final Comparable seriesName, final SelectableDataSet * @param type of the categorical data * @return dataset created for plot */ - CategoryDataSeries catPlot(final Comparable seriesName, final List categories, final DateTime[] y); + CategoryDataSeries catPlot(final Comparable seriesName, final List categories, final Instant[] y); /** * Creates a plot with discrete axis. diff --git a/Plot/src/main/java/io/deephaven/plot/AxesImpl.java b/Plot/src/main/java/io/deephaven/plot/AxesImpl.java index f3f6b1d1183..c01869e8b51 100644 --- a/Plot/src/main/java/io/deephaven/plot/AxesImpl.java +++ b/Plot/src/main/java/io/deephaven/plot/AxesImpl.java @@ -4,11 +4,9 @@ package io.deephaven.plot; import io.deephaven.api.ColumnName; -import io.deephaven.api.Selectable; import io.deephaven.api.agg.Aggregation; import io.deephaven.datastructures.util.CollectionUtil; import io.deephaven.engine.table.impl.MemoizedOperationKey; -import io.deephaven.engine.table.impl.select.SelectColumn; import io.deephaven.plot.axisformatters.AxisFormat; import io.deephaven.plot.axisformatters.NanosAxisFormat; import io.deephaven.plot.axistransformations.AxisTransform; @@ -43,7 +41,7 @@ import io.deephaven.plot.util.tables.*; import io.deephaven.engine.table.Table; import io.deephaven.engine.table.TableDefinition; -import io.deephaven.time.DateTime; +import java.time.Instant; import io.deephaven.gui.color.Color; import io.deephaven.gui.color.Paint; import io.deephaven.time.calendar.BusinessCalendar; @@ -1911,8 +1909,8 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return plot(seriesName, new IndexableNumericDataArrayDate(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), true, true); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final Date[] x, final DateTime[] y) { - return plot(seriesName, new IndexableNumericDataArrayDate(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true, true); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final Date[] x, final Instant[] y) { + return plot(seriesName, new IndexableNumericDataArrayDate(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true, true); } @Override public XYDataSeriesArray plot(final Comparable seriesName, final Date[] x, final short[] y) { @@ -1943,48 +1941,48 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return plot(seriesName, new IndexableNumericDataArrayDate(x, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(y, new PlotInfo(this, seriesName)), true, false); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final DateTime[] x, final Date[] y) { - return plot(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), true, true); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final Instant[] x, final Date[] y) { + return plot(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), true, true); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final DateTime[] x, final DateTime[] y) { - return plot(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true, true); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final Instant[] x, final Instant[] y) { + return plot(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true, true); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final DateTime[] x, final short[] y) { - return plot(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(y, new PlotInfo(this, seriesName)), true, false); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final Instant[] x, final short[] y) { + return plot(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(y, new PlotInfo(this, seriesName)), true, false); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final DateTime[] x, final int[] y) { - return plot(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(y, new PlotInfo(this, seriesName)), true, false); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final Instant[] x, final int[] y) { + return plot(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(y, new PlotInfo(this, seriesName)), true, false); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final DateTime[] x, final long[] y) { - return plot(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(y, new PlotInfo(this, seriesName)), true, false); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final Instant[] x, final long[] y) { + return plot(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(y, new PlotInfo(this, seriesName)), true, false); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final DateTime[] x, final float[] y) { - return plot(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(y, new PlotInfo(this, seriesName)), true, false); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final Instant[] x, final float[] y) { + return plot(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(y, new PlotInfo(this, seriesName)), true, false); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final DateTime[] x, final double[] y) { - return plot(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(y, new PlotInfo(this, seriesName)), true, false); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final Instant[] x, final double[] y) { + return plot(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(y, new PlotInfo(this, seriesName)), true, false); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final DateTime[] x, final T1[] y) { - return plot(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(y, new PlotInfo(this, seriesName)), true, false); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final Instant[] x, final T1[] y) { + return plot(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(y, new PlotInfo(this, seriesName)), true, false); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final DateTime[] x, final List y) { - return plot(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(y, new PlotInfo(this, seriesName)), true, false); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final Instant[] x, final List y) { + return plot(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(y, new PlotInfo(this, seriesName)), true, false); } @Override public XYDataSeriesArray plot(final Comparable seriesName, final short[] x, final Date[] y) { return plot(seriesName, new IndexableNumericDataArrayShort(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), false, true); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final short[] x, final DateTime[] y) { - return plot(seriesName, new IndexableNumericDataArrayShort(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), false, true); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final short[] x, final Instant[] y) { + return plot(seriesName, new IndexableNumericDataArrayShort(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), false, true); } @Override public XYDataSeriesArray plot(final Comparable seriesName, final short[] x, final short[] y) { @@ -2019,8 +2017,8 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return plot(seriesName, new IndexableNumericDataArrayInt(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), false, true); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final int[] x, final DateTime[] y) { - return plot(seriesName, new IndexableNumericDataArrayInt(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), false, true); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final int[] x, final Instant[] y) { + return plot(seriesName, new IndexableNumericDataArrayInt(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), false, true); } @Override public XYDataSeriesArray plot(final Comparable seriesName, final int[] x, final short[] y) { @@ -2055,8 +2053,8 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return plot(seriesName, new IndexableNumericDataArrayLong(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), false, true); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final long[] x, final DateTime[] y) { - return plot(seriesName, new IndexableNumericDataArrayLong(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), false, true); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final long[] x, final Instant[] y) { + return plot(seriesName, new IndexableNumericDataArrayLong(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), false, true); } @Override public XYDataSeriesArray plot(final Comparable seriesName, final long[] x, final short[] y) { @@ -2091,8 +2089,8 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return plot(seriesName, new IndexableNumericDataArrayFloat(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), false, true); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final float[] x, final DateTime[] y) { - return plot(seriesName, new IndexableNumericDataArrayFloat(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), false, true); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final float[] x, final Instant[] y) { + return plot(seriesName, new IndexableNumericDataArrayFloat(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), false, true); } @Override public XYDataSeriesArray plot(final Comparable seriesName, final float[] x, final short[] y) { @@ -2127,8 +2125,8 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return plot(seriesName, new IndexableNumericDataArrayDouble(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), false, true); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final double[] x, final DateTime[] y) { - return plot(seriesName, new IndexableNumericDataArrayDouble(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), false, true); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final double[] x, final Instant[] y) { + return plot(seriesName, new IndexableNumericDataArrayDouble(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), false, true); } @Override public XYDataSeriesArray plot(final Comparable seriesName, final double[] x, final short[] y) { @@ -2163,8 +2161,8 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return plot(seriesName, new IndexableNumericDataArrayNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), false, true); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final T0[] x, final DateTime[] y) { - return plot(seriesName, new IndexableNumericDataArrayNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), false, true); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final T0[] x, final Instant[] y) { + return plot(seriesName, new IndexableNumericDataArrayNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), false, true); } @Override public XYDataSeriesArray plot(final Comparable seriesName, final T0[] x, final short[] y) { @@ -2199,8 +2197,8 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return plot(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), false, true); } - @Override public XYDataSeriesArray plot(final Comparable seriesName, final List x, final DateTime[] y) { - return plot(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), false, true); + @Override public XYDataSeriesArray plot(final Comparable seriesName, final List x, final Instant[] y) { + return plot(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), false, true); } @Override public XYDataSeriesArray plot(final Comparable seriesName, final List x, final short[] y) { @@ -2235,56 +2233,56 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return ohlcPlot(seriesName, new IndexableNumericDataArrayDate(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(close, new PlotInfo(this, seriesName))); } - @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final DateTime[] time, final short[] open, final short[] high, final short[] low, final short[] close) { - return ohlcPlot(seriesName, new IndexableNumericDataArrayDateTime(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(close, new PlotInfo(this, seriesName))); + @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Instant[] time, final short[] open, final short[] high, final short[] low, final short[] close) { + return ohlcPlot(seriesName, new IndexableNumericDataArrayInstant(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(close, new PlotInfo(this, seriesName))); } @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Date[] time, final int[] open, final int[] high, final int[] low, final int[] close) { return ohlcPlot(seriesName, new IndexableNumericDataArrayDate(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(close, new PlotInfo(this, seriesName))); } - @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final DateTime[] time, final int[] open, final int[] high, final int[] low, final int[] close) { - return ohlcPlot(seriesName, new IndexableNumericDataArrayDateTime(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(close, new PlotInfo(this, seriesName))); + @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Instant[] time, final int[] open, final int[] high, final int[] low, final int[] close) { + return ohlcPlot(seriesName, new IndexableNumericDataArrayInstant(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(close, new PlotInfo(this, seriesName))); } @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Date[] time, final long[] open, final long[] high, final long[] low, final long[] close) { return ohlcPlot(seriesName, new IndexableNumericDataArrayDate(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(close, new PlotInfo(this, seriesName))); } - @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final DateTime[] time, final long[] open, final long[] high, final long[] low, final long[] close) { - return ohlcPlot(seriesName, new IndexableNumericDataArrayDateTime(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(close, new PlotInfo(this, seriesName))); + @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Instant[] time, final long[] open, final long[] high, final long[] low, final long[] close) { + return ohlcPlot(seriesName, new IndexableNumericDataArrayInstant(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(close, new PlotInfo(this, seriesName))); } @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Date[] time, final float[] open, final float[] high, final float[] low, final float[] close) { return ohlcPlot(seriesName, new IndexableNumericDataArrayDate(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(close, new PlotInfo(this, seriesName))); } - @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final DateTime[] time, final float[] open, final float[] high, final float[] low, final float[] close) { - return ohlcPlot(seriesName, new IndexableNumericDataArrayDateTime(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(close, new PlotInfo(this, seriesName))); + @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Instant[] time, final float[] open, final float[] high, final float[] low, final float[] close) { + return ohlcPlot(seriesName, new IndexableNumericDataArrayInstant(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(close, new PlotInfo(this, seriesName))); } @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Date[] time, final double[] open, final double[] high, final double[] low, final double[] close) { return ohlcPlot(seriesName, new IndexableNumericDataArrayDate(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(close, new PlotInfo(this, seriesName))); } - @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final DateTime[] time, final double[] open, final double[] high, final double[] low, final double[] close) { - return ohlcPlot(seriesName, new IndexableNumericDataArrayDateTime(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(close, new PlotInfo(this, seriesName))); + @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Instant[] time, final double[] open, final double[] high, final double[] low, final double[] close) { + return ohlcPlot(seriesName, new IndexableNumericDataArrayInstant(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(close, new PlotInfo(this, seriesName))); } @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Date[] time, final T1[] open, final T2[] high, final T3[] low, final T4[] close) { return ohlcPlot(seriesName, new IndexableNumericDataArrayDate(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(close, new PlotInfo(this, seriesName))); } - @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final DateTime[] time, final T1[] open, final T2[] high, final T3[] low, final T4[] close) { - return ohlcPlot(seriesName, new IndexableNumericDataArrayDateTime(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(close, new PlotInfo(this, seriesName))); + @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Instant[] time, final T1[] open, final T2[] high, final T3[] low, final T4[] close) { + return ohlcPlot(seriesName, new IndexableNumericDataArrayInstant(time, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(open, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(high, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(low, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(close, new PlotInfo(this, seriesName))); } @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Date[] time, final List open, final List high, final List low, final List close) { return ohlcPlot(seriesName, new IndexableNumericDataArrayDate(time, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(open, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(high, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(low, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(close, new PlotInfo(this, seriesName))); } - @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final DateTime[] time, final List open, final List high, final List low, final List close) { - return ohlcPlot(seriesName, new IndexableNumericDataArrayDateTime(time, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(open, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(high, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(low, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(close, new PlotInfo(this, seriesName))); + @Override public OHLCDataSeriesArray ohlcPlot(final Comparable seriesName, final Instant[] time, final List open, final List high, final List low, final List close) { + return ohlcPlot(seriesName, new IndexableNumericDataArrayInstant(time, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(open, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(high, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(low, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(close, new PlotInfo(this, seriesName))); } @Override public IntervalXYDataSeriesArray histPlot(final Comparable seriesName, final short[] x, final int nbins) { @@ -2375,8 +2373,8 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return errorBarXY(seriesName, new IndexableNumericDataArrayDate(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(yHigh, new PlotInfo(this, seriesName)), true, true, true, true); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), true, true, true, true); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), true, true, true, true); } @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final Date[] x, final Date[] xLow, final Date[] xHigh, final short[] y, final short[] yLow, final short[] yHigh) { @@ -2435,60 +2433,60 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return errorBarXY(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final short[] y, final short[] yLow, final short[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final short[] y, final short[] yLow, final short[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final short[] x, final short[] xLow, final short[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayShort(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final short[] x, final short[] xLow, final short[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayShort(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final int[] y, final int[] yLow, final int[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final int[] y, final int[] yLow, final int[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final int[] x, final int[] xLow, final int[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayInt(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final int[] x, final int[] xLow, final int[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayInt(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final long[] y, final long[] yLow, final long[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final long[] y, final long[] yLow, final long[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final long[] x, final long[] xLow, final long[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayLong(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final long[] x, final long[] xLow, final long[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayLong(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final float[] y, final float[] yLow, final float[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final float[] y, final float[] yLow, final float[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final float[] x, final float[] xLow, final float[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayFloat(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final float[] x, final float[] xLow, final float[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayFloat(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final double[] y, final double[] yLow, final double[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final double[] y, final double[] yLow, final double[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final double[] x, final double[] xLow, final double[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayDouble(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final double[] x, final double[] xLow, final double[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayDouble(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final T3[] y, final T4[] yLow, final T5[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final T3[] y, final T4[] yLow, final T5[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final T0[] x, final T1[] xLow, final T2[] xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final T0[] x, final T1[] xLow, final T2[] xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final List y, final List yLow, final List yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(y, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final List y, final List yLow, final List yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(y, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(yHigh, new PlotInfo(this, seriesName)), true, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final List x, final List xLow, final List xHigh, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarXY(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarXY(final Comparable seriesName, final List x, final List xLow, final List xHigh, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarXY(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), true, true, false, true); } @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final short[] x, final short[] xLow, final short[] xHigh, final short[] y) { @@ -2523,8 +2521,8 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return errorBarX(seriesName, new IndexableNumericDataArrayDate(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), true, false, true, true); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final DateTime[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true, false, true, true); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final Instant[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true, false, true, true); } @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final Date[] x, final Date[] xLow, final Date[] xHigh, final short[] y) { @@ -2583,60 +2581,60 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return errorBarX(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), true, false, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final short[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(y, new PlotInfo(this, seriesName)), true, false, true, false); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final short[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(y, new PlotInfo(this, seriesName)), true, false, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final short[] x, final short[] xLow, final short[] xHigh, final DateTime[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayShort(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true, false, false, true); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final short[] x, final short[] xLow, final short[] xHigh, final Instant[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayShort(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true, false, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final int[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(y, new PlotInfo(this, seriesName)), true, false, true, false); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final int[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(y, new PlotInfo(this, seriesName)), true, false, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final int[] x, final int[] xLow, final int[] xHigh, final DateTime[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayInt(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true, false, false, true); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final int[] x, final int[] xLow, final int[] xHigh, final Instant[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayInt(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true, false, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final long[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(y, new PlotInfo(this, seriesName)), true, false, true, false); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final long[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(y, new PlotInfo(this, seriesName)), true, false, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final long[] x, final long[] xLow, final long[] xHigh, final DateTime[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayLong(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true, false, false, true); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final long[] x, final long[] xLow, final long[] xHigh, final Instant[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayLong(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true, false, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final float[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(y, new PlotInfo(this, seriesName)), true, false, true, false); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final float[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(y, new PlotInfo(this, seriesName)), true, false, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final float[] x, final float[] xLow, final float[] xHigh, final DateTime[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayFloat(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true, false, false, true); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final float[] x, final float[] xLow, final float[] xHigh, final Instant[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayFloat(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true, false, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final double[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(y, new PlotInfo(this, seriesName)), true, false, true, false); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final double[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(y, new PlotInfo(this, seriesName)), true, false, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final double[] x, final double[] xLow, final double[] xHigh, final DateTime[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayDouble(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true, false, false, true); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final double[] x, final double[] xLow, final double[] xHigh, final Instant[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayDouble(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true, false, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final T3[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(y, new PlotInfo(this, seriesName)), true, false, true, false); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final T3[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(y, new PlotInfo(this, seriesName)), true, false, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final T0[] x, final T1[] xLow, final T2[] xHigh, final DateTime[] y) { - return errorBarX(seriesName, new IndexableNumericDataArrayNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true, false, false, true); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final T0[] x, final T1[] xLow, final T2[] xHigh, final Instant[] y) { + return errorBarX(seriesName, new IndexableNumericDataArrayNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true, false, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final DateTime[] x, final DateTime[] xLow, final DateTime[] xHigh, final List y) { - return errorBarX(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(y, new PlotInfo(this, seriesName)), true, false, true, false); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final Instant[] x, final Instant[] xLow, final Instant[] xHigh, final List y) { + return errorBarX(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(y, new PlotInfo(this, seriesName)), true, false, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final List x, final List xLow, final List xHigh, final DateTime[] y) { - return errorBarX(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true, false, false, true); + @Override public XYErrorBarDataSeriesArray errorBarX(final Comparable seriesName, final List x, final List xLow, final List xHigh, final Instant[] y) { + return errorBarX(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xLow, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(xHigh, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true, false, false, true); } @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final short[] x, final short[] y, final short[] yLow, final short[] yHigh) { @@ -2671,8 +2669,8 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return errorBarY(seriesName, new IndexableNumericDataArrayDate(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(yHigh, new PlotInfo(this, seriesName)), false, true, true, true); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final DateTime[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), false, true, true, true); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final Instant[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), false, true, true, true); } @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final Date[] x, final short[] y, final short[] yLow, final short[] yHigh) { @@ -2731,60 +2729,60 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return errorBarY(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final DateTime[] x, final short[] y, final short[] yLow, final short[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final Instant[] x, final short[] y, final short[] yLow, final short[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayShort(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final short[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayShort(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final short[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayShort(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final DateTime[] x, final int[] y, final int[] yLow, final int[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final Instant[] x, final int[] y, final int[] yLow, final int[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInt(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final int[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayInt(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final int[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayInt(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final DateTime[] x, final long[] y, final long[] yLow, final long[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final Instant[] x, final long[] y, final long[] yLow, final long[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayLong(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final long[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayLong(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final long[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayLong(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final DateTime[] x, final float[] y, final float[] yLow, final float[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final Instant[] x, final float[] y, final float[] yLow, final float[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayFloat(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final float[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayFloat(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final float[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayFloat(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final DateTime[] x, final double[] y, final double[] yLow, final double[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final Instant[] x, final double[] y, final double[] yLow, final double[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDouble(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final double[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayDouble(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final double[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayDouble(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final DateTime[] x, final T1[] y, final T2[] yLow, final T3[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final Instant[] x, final T1[] y, final T2[] yLow, final T3[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayNumber<>(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final T0[] x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final T0[] x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final DateTime[] x, final List y, final List yLow, final List yHigh) { - return errorBarY(seriesName, new IndexableNumericDataArrayDateTime(x, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(y, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final Instant[] x, final List y, final List yLow, final List yHigh) { + return errorBarY(seriesName, new IndexableNumericDataArrayInstant(x, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(y, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataListNumber<>(yHigh, new PlotInfo(this, seriesName)), false, true, true, false); } - @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final List x, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return errorBarY(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); + @Override public XYErrorBarDataSeriesArray errorBarY(final Comparable seriesName, final List x, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return errorBarY(seriesName, new IndexableNumericDataListNumber<>(x, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName)), false, true, false, true); } @Override public CategoryDataSeriesInternal catErrorBar(final Comparable seriesName, final T0[] categories, final short[] y, final short[] yLow, final short[] yHigh) { @@ -2847,16 +2845,16 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return catPlot(new CategoryErrorBarDataSeriesMap(this, dataSeries.nextId(), seriesName, new IndexableDataArray<>(categories, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(yHigh, new PlotInfo(this, seriesName))), null, null, true); } - @Override public CategoryDataSeriesInternal catErrorBar(final Comparable seriesName, final T0[] categories, final DateTime[] y, final DateTime[] yLow, final DateTime[] yHigh) { - return catPlot(new CategoryErrorBarDataSeriesMap(this, dataSeries.nextId(), seriesName, new IndexableDataArray<>(categories, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(yHigh, new PlotInfo(this, seriesName))), null, null, true); + @Override public CategoryDataSeriesInternal catErrorBar(final Comparable seriesName, final T0[] categories, final Instant[] y, final Instant[] yLow, final Instant[] yHigh) { + return catPlot(new CategoryErrorBarDataSeriesMap(this, dataSeries.nextId(), seriesName, new IndexableDataArray<>(categories, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yLow, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(yHigh, new PlotInfo(this, seriesName))), null, null, true); } @Override public CategoryDataSeriesInternal catPlot(final Comparable seriesName, final T0[] categories, final Date[] y) { return catPlot(seriesName, new IndexableDataArray<>(categories, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), true); } - @Override public CategoryDataSeriesInternal catPlot(final Comparable seriesName, final T0[] categories, final DateTime[] y) { - return catPlot(seriesName, new IndexableDataArray<>(categories, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true); + @Override public CategoryDataSeriesInternal catPlot(final Comparable seriesName, final T0[] categories, final Instant[] y) { + return catPlot(seriesName, new IndexableDataArray<>(categories, new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true); } @Override public CategoryDataSeriesInternal catPlot(final Comparable seriesName, final T0[] categories, final short[] y) { @@ -2891,8 +2889,8 @@ public CategoryDataSeries treemapPlot(Comparable seriesName, Table t, String ids return catPlot(seriesName, new IndexableDataArray<>(categories.toArray(new Comparable[categories.size()]), new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDate(y, new PlotInfo(this, seriesName)), true); } - @Override public CategoryDataSeriesInternal catPlot(final Comparable seriesName, final List categories, final DateTime[] y) { - return catPlot(seriesName, new IndexableDataArray<>(categories.toArray(new Comparable[categories.size()]), new PlotInfo(this, seriesName)), new IndexableNumericDataArrayDateTime(y, new PlotInfo(this, seriesName)), true); + @Override public CategoryDataSeriesInternal catPlot(final Comparable seriesName, final List categories, final Instant[] y) { + return catPlot(seriesName, new IndexableDataArray<>(categories.toArray(new Comparable[categories.size()]), new PlotInfo(this, seriesName)), new IndexableNumericDataArrayInstant(y, new PlotInfo(this, seriesName)), true); } @Override public CategoryDataSeriesInternal catPlot(final Comparable seriesName, final List categories, final short[] y) { diff --git a/Plot/src/main/java/io/deephaven/plot/Figure.java b/Plot/src/main/java/io/deephaven/plot/Figure.java index e57a7bd6a88..c7411e554bd 100644 --- a/Plot/src/main/java/io/deephaven/plot/Figure.java +++ b/Plot/src/main/java/io/deephaven/plot/Figure.java @@ -69,7 +69,7 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure catErrorBar( java.lang.Comparable seriesName, T0[] categories, long[] y, long[] yLow, long[] yHigh ); - @Override Figure catErrorBar( java.lang.Comparable seriesName, T0[] categories, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure catErrorBar( java.lang.Comparable seriesName, T0[] categories, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure catErrorBar( java.lang.Comparable seriesName, T0[] categories, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @@ -125,7 +125,7 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure catPlot( java.lang.Comparable seriesName, T0[] categories, long[] y ); - @Override Figure catPlot( java.lang.Comparable seriesName, T0[] categories, io.deephaven.time.DateTime[] y ); + @Override Figure catPlot( java.lang.Comparable seriesName, T0[] categories, java.time.Instant[] y ); @Override Figure catPlot( java.lang.Comparable seriesName, T0[] categories, java.util.Date[] y ); @@ -145,7 +145,7 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure catPlot( java.lang.Comparable seriesName, java.util.List categories, long[] y ); - @Override Figure catPlot( java.lang.Comparable seriesName, java.util.List categories, io.deephaven.time.DateTime[] y ); + @Override Figure catPlot( java.lang.Comparable seriesName, java.util.List categories, java.time.Instant[] y ); @Override Figure catPlot( java.lang.Comparable seriesName, java.util.List categories, java.util.Date[] y ); @@ -193,49 +193,49 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure errorBarX( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, T3[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, io.deephaven.time.DateTime[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, java.time.Instant[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, java.util.Date[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, double[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, io.deephaven.time.DateTime[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, java.time.Instant[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, java.util.Date[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, float[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, io.deephaven.time.DateTime[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, java.time.Instant[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, java.util.Date[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, int[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, io.deephaven.time.DateTime[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, java.time.Instant[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, java.util.Date[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, long[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, io.deephaven.time.DateTime[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, java.time.Instant[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, java.util.Date[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, T3[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, T3[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, double[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, double[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, float[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, float[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, int[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, int[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, long[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, long[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, io.deephaven.time.DateTime[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.time.Instant[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, short[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, short[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, java.util.List y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.util.List y ); @Override Figure errorBarX( java.lang.Comparable seriesName, java.util.Date[] x, java.util.Date[] xLow, java.util.Date[] xHigh, T3[] y ); @@ -253,13 +253,13 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure errorBarX( java.lang.Comparable seriesName, java.util.Date[] x, java.util.Date[] xLow, java.util.Date[] xHigh, java.util.List y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, io.deephaven.time.DateTime[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, java.time.Instant[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, java.util.Date[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, short[] y ); - @Override Figure errorBarX( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, io.deephaven.time.DateTime[] y ); + @Override Figure errorBarX( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, java.time.Instant[] y ); @Override Figure errorBarX( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, java.util.Date[] y ); @@ -275,49 +275,49 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure errorBarXY( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, T3[] y, T4[] yLow, T5[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, double[] y, double[] yLow, double[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, float[] y, float[] yLow, float[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, int[] y, int[] yLow, int[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, long[] y, long[] yLow, long[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, T3[] y, T4[] yLow, T5[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, T3[] y, T4[] yLow, T5[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, double[] y, double[] yLow, double[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, double[] y, double[] yLow, double[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, float[] y, float[] yLow, float[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, float[] y, float[] yLow, float[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, int[] y, int[] yLow, int[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, int[] y, int[] yLow, int[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, long[] y, long[] yLow, long[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, long[] y, long[] yLow, long[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, short[] y, short[] yLow, short[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, short[] y, short[] yLow, short[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, java.util.List y, java.util.List yLow, java.util.List yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.util.List y, java.util.List yLow, java.util.List yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, java.util.Date[] x, java.util.Date[] xLow, java.util.Date[] xHigh, T3[] y, T4[] yLow, T5[] yHigh ); @@ -335,13 +335,13 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure errorBarXY( java.lang.Comparable seriesName, java.util.Date[] x, java.util.Date[] xLow, java.util.Date[] xHigh, java.util.List y, java.util.List yLow, java.util.List yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, short[] y, short[] yLow, short[] yHigh ); - @Override Figure errorBarXY( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarXY( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarXY( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @@ -357,49 +357,49 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure errorBarY( java.lang.Comparable seriesName, T0[] x, T1[] y, T2[] yLow, T3[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, T0[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, T0[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, T0[] x, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, double[] x, double[] y, double[] yLow, double[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, double[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, double[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, double[] x, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, float[] x, float[] y, float[] yLow, float[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, float[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, float[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, float[] x, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, int[] x, int[] y, int[] yLow, int[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, int[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, int[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, int[] x, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, long[] x, long[] y, long[] yLow, long[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, long[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, long[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, long[] x, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, T1[] y, T2[] yLow, T3[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, T1[] y, T2[] yLow, T3[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, double[] y, double[] yLow, double[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, double[] y, double[] yLow, double[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, float[] y, float[] yLow, float[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, float[] y, float[] yLow, float[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, int[] y, int[] yLow, int[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, int[] y, int[] yLow, int[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, long[] y, long[] yLow, long[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, long[] y, long[] yLow, long[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, short[] y, short[] yLow, short[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, short[] y, short[] yLow, short[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, java.util.List y, java.util.List yLow, java.util.List yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, java.util.List y, java.util.List yLow, java.util.List yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, java.util.Date[] x, T1[] y, T2[] yLow, T3[] yHigh ); @@ -417,13 +417,13 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure errorBarY( java.lang.Comparable seriesName, java.util.Date[] x, java.util.List y, java.util.List yLow, java.util.List yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, short[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, short[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, short[] x, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, short[] x, short[] y, short[] yLow, short[] yHigh ); - @Override Figure errorBarY( java.lang.Comparable seriesName, java.util.List x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ); + @Override Figure errorBarY( java.lang.Comparable seriesName, java.util.List x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ); @Override Figure errorBarY( java.lang.Comparable seriesName, java.util.List x, java.util.Date[] y, java.util.Date[] yLow, java.util.Date[] yHigh ); @@ -535,19 +535,19 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure newChart( int rowNum, int colNum ); - @Override Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, T1[] open, T2[] high, T3[] low, T4[] close ); + @Override Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, T1[] open, T2[] high, T3[] low, T4[] close ); - @Override Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, double[] open, double[] high, double[] low, double[] close ); + @Override Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, double[] open, double[] high, double[] low, double[] close ); - @Override Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, float[] open, float[] high, float[] low, float[] close ); + @Override Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, float[] open, float[] high, float[] low, float[] close ); - @Override Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, int[] open, int[] high, int[] low, int[] close ); + @Override Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, int[] open, int[] high, int[] low, int[] close ); - @Override Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, long[] open, long[] high, long[] low, long[] close ); + @Override Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, long[] open, long[] high, long[] low, long[] close ); - @Override Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, short[] open, short[] high, short[] low, short[] close ); + @Override Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, short[] open, short[] high, short[] low, short[] close ); - @Override Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, java.util.List open, java.util.List high, java.util.List low, java.util.List close ); + @Override Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, java.util.List open, java.util.List high, java.util.List low, java.util.List close ); @Override Figure ohlcPlot( java.lang.Comparable seriesName, java.util.Date[] time, T1[] open, T2[] high, T3[] low, T4[] close ); @@ -621,7 +621,7 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure plot( java.lang.Comparable seriesName, T0[] x, long[] y ); - @Override Figure plot( java.lang.Comparable seriesName, T0[] x, io.deephaven.time.DateTime[] y ); + @Override Figure plot( java.lang.Comparable seriesName, T0[] x, java.time.Instant[] y ); @Override Figure plot( java.lang.Comparable seriesName, T0[] x, java.util.Date[] y ); @@ -639,7 +639,7 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure plot( java.lang.Comparable seriesName, double[] x, long[] y ); - @Override Figure plot( java.lang.Comparable seriesName, double[] x, io.deephaven.time.DateTime[] y ); + @Override Figure plot( java.lang.Comparable seriesName, double[] x, java.time.Instant[] y ); @Override Figure plot( java.lang.Comparable seriesName, double[] x, java.util.Date[] y ); @@ -657,7 +657,7 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure plot( java.lang.Comparable seriesName, float[] x, long[] y ); - @Override Figure plot( java.lang.Comparable seriesName, float[] x, io.deephaven.time.DateTime[] y ); + @Override Figure plot( java.lang.Comparable seriesName, float[] x, java.time.Instant[] y ); @Override Figure plot( java.lang.Comparable seriesName, float[] x, java.util.Date[] y ); @@ -675,7 +675,7 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure plot( java.lang.Comparable seriesName, int[] x, long[] y ); - @Override Figure plot( java.lang.Comparable seriesName, int[] x, io.deephaven.time.DateTime[] y ); + @Override Figure plot( java.lang.Comparable seriesName, int[] x, java.time.Instant[] y ); @Override Figure plot( java.lang.Comparable seriesName, int[] x, java.util.Date[] y ); @@ -693,7 +693,7 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure plot( java.lang.Comparable seriesName, long[] x, long[] y ); - @Override Figure plot( java.lang.Comparable seriesName, long[] x, io.deephaven.time.DateTime[] y ); + @Override Figure plot( java.lang.Comparable seriesName, long[] x, java.time.Instant[] y ); @Override Figure plot( java.lang.Comparable seriesName, long[] x, java.util.Date[] y ); @@ -701,23 +701,23 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure plot( java.lang.Comparable seriesName, long[] x, java.util.List y ); - @Override Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, T1[] y ); + @Override Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, T1[] y ); - @Override Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, double[] y ); + @Override Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, double[] y ); - @Override Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, float[] y ); + @Override Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, float[] y ); - @Override Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, int[] y ); + @Override Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, int[] y ); - @Override Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, long[] y ); + @Override Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, long[] y ); - @Override Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] y ); + @Override Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] y ); - @Override Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, java.util.Date[] y ); + @Override Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, java.util.Date[] y ); - @Override Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, short[] y ); + @Override Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, short[] y ); - @Override Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, java.util.List y ); + @Override Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, java.util.List y ); @Override Figure plot( java.lang.Comparable seriesName, java.util.Date[] x, T1[] y ); @@ -729,7 +729,7 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure plot( java.lang.Comparable seriesName, java.util.Date[] x, long[] y ); - @Override Figure plot( java.lang.Comparable seriesName, java.util.Date[] x, io.deephaven.time.DateTime[] y ); + @Override Figure plot( java.lang.Comparable seriesName, java.util.Date[] x, java.time.Instant[] y ); @Override Figure plot( java.lang.Comparable seriesName, java.util.Date[] x, java.util.Date[] y ); @@ -747,7 +747,7 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure plot( java.lang.Comparable seriesName, short[] x, long[] y ); - @Override Figure plot( java.lang.Comparable seriesName, short[] x, io.deephaven.time.DateTime[] y ); + @Override Figure plot( java.lang.Comparable seriesName, short[] x, java.time.Instant[] y ); @Override Figure plot( java.lang.Comparable seriesName, short[] x, java.util.Date[] y ); @@ -765,7 +765,7 @@ public interface Figure extends java.io.Serializable, io.deephaven.plot.BaseFigu @Override Figure plot( java.lang.Comparable seriesName, java.util.List x, long[] y ); - @Override Figure plot( java.lang.Comparable seriesName, java.util.List x, io.deephaven.time.DateTime[] y ); + @Override Figure plot( java.lang.Comparable seriesName, java.util.List x, java.time.Instant[] y ); @Override Figure plot( java.lang.Comparable seriesName, java.util.List x, java.util.Date[] y ); diff --git a/Plot/src/main/java/io/deephaven/plot/FigureImpl.java b/Plot/src/main/java/io/deephaven/plot/FigureImpl.java index 451116a3113..c16bf234305 100644 --- a/Plot/src/main/java/io/deephaven/plot/FigureImpl.java +++ b/Plot/src/main/java/io/deephaven/plot/FigureImpl.java @@ -36,7 +36,7 @@ import io.deephaven.plot.errors.PlotUnsupportedOperationException; import io.deephaven.plot.filters.SelectableDataSet; import io.deephaven.plot.util.PlotUtils; -import io.deephaven.time.DateTime; +import java.time.Instant; import io.deephaven.time.calendar.BusinessCalendar; import java.lang.Comparable; import java.lang.String; @@ -487,7 +487,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl catErrorBar( java.lang.Comparable seriesName, T0[] categories, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl catErrorBar( java.lang.Comparable seriesName, T0[] categories, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).catErrorBar( seriesName, categories, y, yLow, yHigh); return make(series); @@ -655,7 +655,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl catPlot( java.lang.Comparable seriesName, T0[] categories, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl catPlot( java.lang.Comparable seriesName, T0[] categories, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).catPlot( seriesName, categories, y); return make(series); @@ -715,7 +715,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl catPlot( java.lang.Comparable seriesName, java.util.List categories, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl catPlot( java.lang.Comparable seriesName, java.util.List categories, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).catPlot( seriesName, categories, y); return make(series); @@ -859,7 +859,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); @@ -877,7 +877,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); @@ -895,7 +895,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); @@ -913,7 +913,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); @@ -931,7 +931,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); @@ -943,49 +943,49 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, T3[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, T3[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, double[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, double[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, float[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, float[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, int[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, int[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, long[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, long[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, short[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, short[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, java.util.List y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.util.List y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); @@ -1039,7 +1039,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); @@ -1057,7 +1057,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl errorBarX( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarX( seriesName, x, xLow, xHigh, y); return make(series); @@ -1105,7 +1105,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); @@ -1123,7 +1123,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); @@ -1141,7 +1141,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); @@ -1159,7 +1159,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); @@ -1177,7 +1177,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); @@ -1189,49 +1189,49 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, T3[] y, T4[] yLow, T5[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, T3[] y, T4[] yLow, T5[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, double[] y, double[] yLow, double[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, double[] y, double[] yLow, double[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, float[] y, float[] yLow, float[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, float[] y, float[] yLow, float[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, int[] y, int[] yLow, int[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, int[] y, int[] yLow, int[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, long[] y, long[] yLow, long[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, long[] y, long[] yLow, long[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, short[] y, short[] yLow, short[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, short[] y, short[] yLow, short[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, java.util.List y, java.util.List yLow, java.util.List yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.util.List y, java.util.List yLow, java.util.List yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); @@ -1285,7 +1285,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); @@ -1303,7 +1303,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarXY( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh); return make(series); @@ -1351,7 +1351,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, T0[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, T0[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); @@ -1369,7 +1369,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, double[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, double[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); @@ -1387,7 +1387,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, float[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, float[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); @@ -1405,7 +1405,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, int[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, int[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); @@ -1423,7 +1423,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, long[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, long[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); @@ -1435,49 +1435,49 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, T1[] y, T2[] yLow, T3[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, T1[] y, T2[] yLow, T3[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, double[] y, double[] yLow, double[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, double[] y, double[] yLow, double[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, float[] y, float[] yLow, float[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, float[] y, float[] yLow, float[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, int[] y, int[] yLow, int[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, int[] y, int[] yLow, int[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, long[] y, long[] yLow, long[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, long[] y, long[] yLow, long[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, short[] y, short[] yLow, short[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, short[] y, short[] yLow, short[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, java.util.List y, java.util.List yLow, java.util.List yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, java.util.List y, java.util.List yLow, java.util.List yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); @@ -1531,7 +1531,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, short[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, short[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); @@ -1549,7 +1549,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, java.util.List x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + @Override public FigureImpl errorBarY( java.lang.Comparable seriesName, java.util.List x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).errorBarY( seriesName, x, y, yLow, yHigh); return make(series); @@ -1885,43 +1885,43 @@ private FigureImpl applyFunctionalProperties() { return make(chart); } - @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, T1[] open, T2[] high, T3[] low, T4[] close ) { + @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, T1[] open, T2[] high, T3[] low, T4[] close ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).ohlcPlot( seriesName, time, open, high, low, close); return make(series); } - @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, double[] open, double[] high, double[] low, double[] close ) { + @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, double[] open, double[] high, double[] low, double[] close ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).ohlcPlot( seriesName, time, open, high, low, close); return make(series); } - @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, float[] open, float[] high, float[] low, float[] close ) { + @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, float[] open, float[] high, float[] low, float[] close ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).ohlcPlot( seriesName, time, open, high, low, close); return make(series); } - @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, int[] open, int[] high, int[] low, int[] close ) { + @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, int[] open, int[] high, int[] low, int[] close ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).ohlcPlot( seriesName, time, open, high, low, close); return make(series); } - @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, long[] open, long[] high, long[] low, long[] close ) { + @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, long[] open, long[] high, long[] low, long[] close ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).ohlcPlot( seriesName, time, open, high, low, close); return make(series); } - @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, short[] open, short[] high, short[] low, short[] close ) { + @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, short[] open, short[] high, short[] low, short[] close ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).ohlcPlot( seriesName, time, open, high, low, close); return make(series); } - @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, java.util.List open, java.util.List high, java.util.List low, java.util.List close ) { + @Override public FigureImpl ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, java.util.List open, java.util.List high, java.util.List low, java.util.List close ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).ohlcPlot( seriesName, time, open, high, low, close); return make(series); @@ -2143,7 +2143,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, T0[] x, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, T0[] x, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); @@ -2197,7 +2197,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, double[] x, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, double[] x, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); @@ -2251,7 +2251,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, float[] x, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, float[] x, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); @@ -2305,7 +2305,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, int[] x, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, int[] x, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); @@ -2359,7 +2359,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, long[] x, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, long[] x, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); @@ -2383,55 +2383,55 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, T1[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, java.time.Instant[] x, T1[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, double[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, java.time.Instant[] x, double[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, float[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, java.time.Instant[] x, float[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, int[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, java.time.Instant[] x, int[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, long[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, java.time.Instant[] x, long[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, java.util.Date[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, java.time.Instant[] x, java.util.Date[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, short[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, java.time.Instant[] x, short[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, java.util.List y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, java.time.Instant[] x, java.util.List y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); @@ -2467,7 +2467,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, java.util.Date[] x, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, java.util.Date[] x, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); @@ -2521,7 +2521,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, short[] x, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, short[] x, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); @@ -2575,7 +2575,7 @@ private FigureImpl applyFunctionalProperties() { return make(series); } - @Override public FigureImpl plot( java.lang.Comparable seriesName, java.util.List x, io.deephaven.time.DateTime[] y ) { + @Override public FigureImpl plot( java.lang.Comparable seriesName, java.util.List x, java.time.Instant[] y ) { final BaseFigureImpl fc = this.figure.copy(); final DataSeriesInternal series = (DataSeriesInternal) axes(fc).plot( seriesName, x, y); return make(series); diff --git a/Plot/src/main/java/io/deephaven/plot/PlottingConvenience.java b/Plot/src/main/java/io/deephaven/plot/PlottingConvenience.java index 36a58b79e3a..dfec8e50dcd 100644 --- a/Plot/src/main/java/io/deephaven/plot/PlottingConvenience.java +++ b/Plot/src/main/java/io/deephaven/plot/PlottingConvenience.java @@ -28,7 +28,7 @@ import io.deephaven.plot.filters.SelectableDataSet; import io.deephaven.plot.filters.SelectableDataSetOneClick; import io.deephaven.plot.filters.Selectables; -import io.deephaven.time.DateTime; +import java.time.Instant; import java.lang.Comparable; import java.lang.String; import java.util.Date; @@ -463,7 +463,7 @@ public static io.deephaven.plot.Figure catErro /** * See {@link io.deephaven.plot.Figure#catErrorBar} **/ - public static io.deephaven.plot.Figure catErrorBar( java.lang.Comparable seriesName, T0[] categories, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure catErrorBar( java.lang.Comparable seriesName, T0[] categories, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().catErrorBar( seriesName, categories, y, yLow, yHigh ); } @@ -659,7 +659,7 @@ public static io.deephaven.plot.Figure catPlot /** * See {@link io.deephaven.plot.Figure#catPlot} **/ - public static io.deephaven.plot.Figure catPlot( java.lang.Comparable seriesName, T0[] categories, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure catPlot( java.lang.Comparable seriesName, T0[] categories, java.time.Instant[] y ) { return FigureFactory.figure().catPlot( seriesName, categories, y ); } @@ -729,7 +729,7 @@ public static io.deephaven.plot.Figure catPlot /** * See {@link io.deephaven.plot.Figure#catPlot} **/ - public static io.deephaven.plot.Figure catPlot( java.lang.Comparable seriesName, java.util.List categories, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure catPlot( java.lang.Comparable seriesName, java.util.List categories, java.time.Instant[] y ) { return FigureFactory.figure().catPlot( seriesName, categories, y ); } @@ -792,7 +792,7 @@ public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, java.time.Instant[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } @@ -813,7 +813,7 @@ public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesNa /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, java.time.Instant[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } @@ -834,7 +834,7 @@ public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesNa /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, java.time.Instant[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } @@ -855,7 +855,7 @@ public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesNa /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, java.time.Instant[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } @@ -876,7 +876,7 @@ public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesNa /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, java.time.Instant[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } @@ -890,56 +890,56 @@ public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesNa /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, T3[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, T3[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, double[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, double[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, float[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, float[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, int[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, int[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, long[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, long[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.time.Instant[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, short[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, short[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, java.util.List y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.util.List y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } @@ -1002,7 +1002,7 @@ public static io.deephaven.plot.Figure errorBarX( /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, short[] x, short[] xLow, short[] xHigh, java.time.Instant[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } @@ -1023,7 +1023,7 @@ public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesNa /** * See {@link io.deephaven.plot.Figure#errorBarX} **/ - public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure errorBarX( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, java.time.Instant[] y ) { return FigureFactory.figure().errorBarX( seriesName, x, xLow, xHigh, y ); } @@ -1079,7 +1079,7 @@ public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, T0[] x, T1[] xLow, T2[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } @@ -1100,7 +1100,7 @@ public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesN /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, double[] x, double[] xLow, double[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } @@ -1121,7 +1121,7 @@ public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesN /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, float[] x, float[] xLow, float[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } @@ -1142,7 +1142,7 @@ public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesN /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, int[] x, int[] xLow, int[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } @@ -1163,7 +1163,7 @@ public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesN /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, long[] x, long[] xLow, long[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } @@ -1177,56 +1177,56 @@ public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesN /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, T3[] y, T4[] yLow, T5[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, T3[] y, T4[] yLow, T5[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, double[] y, double[] yLow, double[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, double[] y, double[] yLow, double[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, float[] y, float[] yLow, float[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, float[] y, float[] yLow, float[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, int[] y, int[] yLow, int[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, int[] y, int[] yLow, int[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, long[] y, long[] yLow, long[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, long[] y, long[] yLow, long[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, short[] y, short[] yLow, short[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, short[] y, short[] yLow, short[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarXY} **/ - public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] xLow, io.deephaven.time.DateTime[] xHigh, java.util.List y, java.util.List yLow, java.util.List yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] xLow, java.time.Instant[] xHigh, java.util.List y, java.util.List yLow, java.util.List yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } @@ -1289,7 +1289,7 @@ public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarXY( java.lang.Comparable seriesName, java.util.List x, java.util.List xLow, java.util.List xHigh, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarXY( seriesName, x, xLow, xHigh, y, yLow, yHigh ); } @@ -1366,7 +1366,7 @@ public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, T0[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, T0[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } @@ -1387,7 +1387,7 @@ public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesNa /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, double[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, double[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } @@ -1408,7 +1408,7 @@ public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesNa /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, float[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, float[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } @@ -1429,7 +1429,7 @@ public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesNa /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, int[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, int[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } @@ -1450,7 +1450,7 @@ public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesNa /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, long[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, long[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } @@ -1464,56 +1464,56 @@ public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesNa /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, T1[] y, T2[] yLow, T3[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, T1[] y, T2[] yLow, T3[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, double[] y, double[] yLow, double[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, double[] y, double[] yLow, double[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, float[] y, float[] yLow, float[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, float[] y, float[] yLow, float[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, int[] y, int[] yLow, int[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, int[] y, int[] yLow, int[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, long[] y, long[] yLow, long[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, long[] y, long[] yLow, long[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, short[] y, short[] yLow, short[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, short[] y, short[] yLow, short[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } /** * See {@link io.deephaven.plot.Figure#errorBarY} **/ - public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, java.util.List y, java.util.List yLow, java.util.List yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, java.time.Instant[] x, java.util.List y, java.util.List yLow, java.util.List yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } @@ -1576,7 +1576,7 @@ public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, java.util.List x, io.deephaven.time.DateTime[] y, io.deephaven.time.DateTime[] yLow, io.deephaven.time.DateTime[] yHigh ) { + public static io.deephaven.plot.Figure errorBarY( java.lang.Comparable seriesName, java.util.List x, java.time.Instant[] y, java.time.Instant[] yLow, java.time.Instant[] yHigh ) { return FigureFactory.figure().errorBarY( seriesName, x, y, yLow, yHigh ); } @@ -1828,49 +1828,49 @@ public static io.deephaven.plot.Figure newChart( int rowNum, int colNum ) { /** * See {@link io.deephaven.plot.Figure#ohlcPlot} **/ - public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, T1[] open, T2[] high, T3[] low, T4[] close ) { + public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, T1[] open, T2[] high, T3[] low, T4[] close ) { return FigureFactory.figure().ohlcPlot( seriesName, time, open, high, low, close ); } /** * See {@link io.deephaven.plot.Figure#ohlcPlot} **/ - public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, double[] open, double[] high, double[] low, double[] close ) { + public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, double[] open, double[] high, double[] low, double[] close ) { return FigureFactory.figure().ohlcPlot( seriesName, time, open, high, low, close ); } /** * See {@link io.deephaven.plot.Figure#ohlcPlot} **/ - public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, float[] open, float[] high, float[] low, float[] close ) { + public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, float[] open, float[] high, float[] low, float[] close ) { return FigureFactory.figure().ohlcPlot( seriesName, time, open, high, low, close ); } /** * See {@link io.deephaven.plot.Figure#ohlcPlot} **/ - public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, int[] open, int[] high, int[] low, int[] close ) { + public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, int[] open, int[] high, int[] low, int[] close ) { return FigureFactory.figure().ohlcPlot( seriesName, time, open, high, low, close ); } /** * See {@link io.deephaven.plot.Figure#ohlcPlot} **/ - public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, long[] open, long[] high, long[] low, long[] close ) { + public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, long[] open, long[] high, long[] low, long[] close ) { return FigureFactory.figure().ohlcPlot( seriesName, time, open, high, low, close ); } /** * See {@link io.deephaven.plot.Figure#ohlcPlot} **/ - public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, short[] open, short[] high, short[] low, short[] close ) { + public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, short[] open, short[] high, short[] low, short[] close ) { return FigureFactory.figure().ohlcPlot( seriesName, time, open, high, low, close ); } /** * See {@link io.deephaven.plot.Figure#ohlcPlot} **/ - public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] time, java.util.List open, java.util.List high, java.util.List low, java.util.List close ) { + public static io.deephaven.plot.Figure ohlcPlot( java.lang.Comparable seriesName, java.time.Instant[] time, java.util.List open, java.util.List high, java.util.List low, java.util.List close ) { return FigureFactory.figure().ohlcPlot( seriesName, time, open, high, low, close ); } @@ -2129,7 +2129,7 @@ public static io.deephaven.plot.Figure plot( java. /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, T0[] x, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, T0[] x, java.time.Instant[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } @@ -2192,7 +2192,7 @@ public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, d /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, double[] x, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, double[] x, java.time.Instant[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } @@ -2255,7 +2255,7 @@ public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, f /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, float[] x, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, float[] x, java.time.Instant[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } @@ -2318,7 +2318,7 @@ public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, i /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, int[] x, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, int[] x, java.time.Instant[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } @@ -2381,7 +2381,7 @@ public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, l /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, long[] x, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, long[] x, java.time.Instant[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } @@ -2409,63 +2409,63 @@ public static io.deephaven.plot.Figure plot( java. /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, T1[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, T1[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, double[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, double[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, float[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, float[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, int[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, int[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, long[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, long[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, java.time.Instant[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, java.util.Date[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, java.util.Date[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, short[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, short[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, io.deephaven.time.DateTime[] x, java.util.List y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.time.Instant[] x, java.util.List y ) { return FigureFactory.figure().plot( seriesName, x, y ); } @@ -2507,7 +2507,7 @@ public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, j /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.util.Date[] x, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.util.Date[] x, java.time.Instant[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } @@ -2570,7 +2570,7 @@ public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, s /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, short[] x, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, short[] x, java.time.Instant[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } @@ -2633,7 +2633,7 @@ public static io.deephaven.plot.Figure plot( java. /** * See {@link io.deephaven.plot.Figure#plot} **/ - public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.util.List x, io.deephaven.time.DateTime[] y ) { + public static io.deephaven.plot.Figure plot( java.lang.Comparable seriesName, java.util.List x, java.time.Instant[] y ) { return FigureFactory.figure().plot( seriesName, x, y ); } diff --git a/Plot/src/main/java/io/deephaven/plot/axisformatters/NanosAxisFormat.java b/Plot/src/main/java/io/deephaven/plot/axisformatters/NanosAxisFormat.java index 3e9630bf64b..c615b206d58 100644 --- a/Plot/src/main/java/io/deephaven/plot/axisformatters/NanosAxisFormat.java +++ b/Plot/src/main/java/io/deephaven/plot/axisformatters/NanosAxisFormat.java @@ -3,8 +3,7 @@ */ package io.deephaven.plot.axisformatters; -import io.deephaven.time.DateTime; -import io.deephaven.time.TimeZoneAliases; +import io.deephaven.time.DateTimeUtils; import java.io.Serializable; import java.text.FieldPosition; @@ -15,7 +14,7 @@ /** * A formatter for converting nanoseconds into formatted strings. - * + *

    * For details on the supported patterns see the javadoc for * DateTimeFormatter */ @@ -64,7 +63,7 @@ public NumberFormat getNumberFormatter() { } /** - * Formatter for DateTime values. + * Formatter for date time values. */ public class NanosFormat extends NumberFormat { private static final long serialVersionUID = 6037426284760469353L; @@ -94,7 +93,8 @@ public StringBuffer format(final double number, final StringBuffer toAppendTo, f @Override public StringBuffer format(final long number, final StringBuffer toAppendTo, final FieldPosition pos) { - return toAppendTo.append(formatter.format(new DateTime(number).toInstant())); + //noinspection DataFlowIssue + return toAppendTo.append(formatter.format(DateTimeUtils.epochNanosToInstant(number))); } @Override diff --git a/Plot/src/main/java/io/deephaven/plot/axistransformations/AxisTransformBusinessCalendar.java b/Plot/src/main/java/io/deephaven/plot/axistransformations/AxisTransformBusinessCalendar.java index 8eb5122ae1a..5a635f78f0f 100644 --- a/Plot/src/main/java/io/deephaven/plot/axistransformations/AxisTransformBusinessCalendar.java +++ b/Plot/src/main/java/io/deephaven/plot/axistransformations/AxisTransformBusinessCalendar.java @@ -4,23 +4,23 @@ package io.deephaven.plot.axistransformations; import io.deephaven.base.verify.Require; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.time.calendar.BusinessCalendar; import io.deephaven.time.calendar.BusinessSchedule; import io.deephaven.time.calendar.BusinessPeriod; import java.io.Serializable; +import java.time.Instant; import java.util.ArrayList; import java.util.List; import java.util.function.Predicate; /** * AxisTransform into business time. Useful for plotting time series data with large gaps in non-business hours. - * + *

    * The forward transform takes a data value from standard epoch time and translates it into the cumulative business time * for the dataset. The inverse transform takes it back to standard epoch time. - * + *

    * Data values outside of business hours are not visible. */ public class AxisTransformBusinessCalendar implements AxisTransform, Serializable { @@ -64,13 +64,13 @@ private Nugget getNuggetByTime(final double timeNanos) { Nugget nMax = nuggets.size() == 0 ? null : nuggets.get(nuggets.size() - 1); if (nMin == null) { - final DateTime t = new DateTime((long) timeNanos); + final Instant t = DateTimeUtils.epochNanosToInstant((long) timeNanos); nMin = new Nugget(busCal.getBusinessSchedule(busCal.previousBusinessDay(t)), 0); nMax = nMin; nuggets.add(nMin); } - while (timeNanos < nMin.businessDay.getSOBD().getNanos()) { + while (timeNanos < DateTimeUtils.epochNanos(nMin.businessDay.getSOBD())) { final BusinessSchedule d = busCal.getBusinessSchedule(busCal.previousBusinessDay(nMin.businessDay.getSOBD())); final Nugget n = new Nugget(d, nMin.cumulativeBusinessTimeNanosAtStartOfDay - d.getLOBD()); @@ -80,7 +80,7 @@ private Nugget getNuggetByTime(final double timeNanos) { } // noinspection ConstantConditions nMax can't cause NPE (for now! Don't add nulls to nuggets!) - while (timeNanos > nMax.businessDay.getEOBD().getNanos()) { + while (timeNanos > DateTimeUtils.epochNanos(nMax.businessDay.getEOBD())) { final BusinessSchedule d = busCal.getBusinessSchedule(busCal.nextBusinessDay(nMax.businessDay.getEOBD())); final Nugget n = new Nugget(d, nMax.cumulativeBusinessTimeNanosAtStartOfDay + nMax.businessDay.getLOBD()); nuggets.add(n); @@ -88,7 +88,7 @@ private Nugget getNuggetByTime(final double timeNanos) { nMax = n; } - return findNugget(n -> timeNanos <= n.businessDay.getEOBD().getNanos()); + return findNugget(n -> timeNanos <= DateTimeUtils.epochNanos(n.businessDay.getEOBD())); } private Nugget getNuggetByValue(final double value) { @@ -155,7 +155,7 @@ private Nugget findNugget(final Predicate lessThanEqual) { @Override public boolean isVisible(final double timeNanos) { return !(Double.isInfinite(timeNanos) || Double.isNaN(timeNanos)) - && busCal.isBusinessTime(DateTimeUtils.epochNanosToDateTime((long) timeNanos)); + && busCal.isBusinessTime(DateTimeUtils.epochNanosToInstant((long) timeNanos)); } @@ -172,11 +172,11 @@ public double inverseTransform(final double value) { } double busDayNanos = value - n.cumulativeBusinessTimeNanosAtStartOfDay; - double timeNanos = n.businessDay.getSOBD().getNanos(); + double timeNanos = DateTimeUtils.epochNanos(n.businessDay.getSOBD()); for (BusinessPeriod period : n.businessDay.getBusinessPeriods()) { - final double start = period.getStartTime().getNanos(); - final double end = period.getEndTime().getNanos(); + final double start = DateTimeUtils.epochNanos(period.getStartTime()); + final double end = DateTimeUtils.epochNanos(period.getEndTime()); final double length = end - start; if (busDayNanos > 0 && length > 0) { @@ -204,8 +204,8 @@ public double transform(final double timeNanos) { double value = n.cumulativeBusinessTimeNanosAtStartOfDay; for (BusinessPeriod period : n.businessDay.getBusinessPeriods()) { - final double start = period.getStartTime().getNanos(); - final double end = period.getEndTime().getNanos(); + final double start = DateTimeUtils.epochNanos(period.getStartTime()); + final double end = DateTimeUtils.epochNanos(period.getEndTime()); if (timeNanos > start) { if (timeNanos < end) { diff --git a/Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableDataDateTime.java b/Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableDataInstant.java similarity index 65% rename from Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableDataDateTime.java rename to Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableDataInstant.java index 1fdf7092d1c..6803728d03a 100644 --- a/Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableDataDateTime.java +++ b/Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableDataInstant.java @@ -5,30 +5,32 @@ import io.deephaven.plot.errors.PlotInfo; import io.deephaven.plot.util.ArgumentValidations; -import io.deephaven.time.DateTime; import gnu.trove.map.hash.TLongObjectHashMap; +import io.deephaven.time.DateTimeUtils; + +import java.time.Instant; import static io.deephaven.util.QueryConstants.NULL_LONG; /** - * {@link IndexableData} dataset with {@link DateTime} values. + * {@link IndexableData} dataset with {@link Instant} values. * * Dataset values equal to {@link io.deephaven.util.QueryConstants#NULL_LONG} are treated as null. */ -public class IndexableDataDateTime extends IndexableData { +public class IndexableDataInstant extends IndexableData { private static final long serialVersionUID = 8122162323328323447L; private final long[] data; - private final TLongObjectHashMap dateTimeMap = new TLongObjectHashMap<>(); + private final TLongObjectHashMap instantMap = new TLongObjectHashMap<>(); /** - * Creates an IndexableDataDateTime instance. + * Creates an IndexableDataInstant instance. * * Values in {@code data} equal to {@link io.deephaven.util.QueryConstants#NULL_LONG} are treated as null. * * @param data data * @param plotInfo plot information */ - public IndexableDataDateTime(long[] data, final PlotInfo plotInfo) { + public IndexableDataInstant(long[] data, final PlotInfo plotInfo) { super(plotInfo); ArgumentValidations.assertNotNull(data, "data", getPlotInfo()); this.data = data; @@ -40,17 +42,17 @@ public int size() { } @Override - public DateTime get(int index) { + public Instant get(int index) { final long dataValue = data[index]; if (dataValue == NULL_LONG) { return null; } - DateTime cachedVal = dateTimeMap.get(dataValue); + Instant cachedVal = instantMap.get(dataValue); if (cachedVal == null) { - cachedVal = new DateTime(dataValue); - dateTimeMap.put(dataValue, cachedVal); + cachedVal = DateTimeUtils.epochNanosToInstant(dataValue); + instantMap.put(dataValue, cachedVal); } return cachedVal; diff --git a/Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableNumericDataArrayDateTime.java b/Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableNumericDataArrayInstant.java similarity index 71% rename from Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableNumericDataArrayDateTime.java rename to Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableNumericDataArrayInstant.java index 743d833be46..b66d3b2cfaf 100644 --- a/Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableNumericDataArrayDateTime.java +++ b/Plot/src/main/java/io/deephaven/plot/datasets/data/IndexableNumericDataArrayInstant.java @@ -5,26 +5,28 @@ import io.deephaven.plot.errors.PlotInfo; import io.deephaven.plot.util.ArgumentValidations; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; + +import java.time.Instant; /** - * {@link IndexableNumericData} dataset comprised of an array of {@link DateTime}s. + * {@link IndexableNumericData} dataset comprised of an array of {@link Instant instants}. * * Date values are accessed as nanoseconds from epoch. Data conversion to double means these values are accurate to * about 250 nanoseconds. */ -public class IndexableNumericDataArrayDateTime extends IndexableNumericData { +public class IndexableNumericDataArrayInstant extends IndexableNumericData { private static final long serialVersionUID = 2006200987348909028L; - private final DateTime[] data; + private final Instant[] data; /** - * Creates an IndexableNumericDataArrayDateTime instance. + * Creates an IndexableNumericDataArrayInstant instance. * * @throws io.deephaven.base.verify.RequirementFailure {@code data} must not be null * @param data data * @param plotInfo plot information */ - public IndexableNumericDataArrayDateTime(DateTime[] data, final PlotInfo plotInfo) { + public IndexableNumericDataArrayInstant(Instant[] data, final PlotInfo plotInfo) { super(plotInfo); ArgumentValidations.assertNotNull(data, "data", getPlotInfo()); this.data = data; @@ -41,9 +43,9 @@ public double get(final int i) { return Double.NaN; } double result = Double.NaN; - DateTime v = data[i]; + Instant v = data[i]; if (v != null) { - result = v.getNanos(); + result = DateTimeUtils.epochNanos(v); } return result; diff --git a/Plot/src/main/java/io/deephaven/plot/util/ArgumentValidations.java b/Plot/src/main/java/io/deephaven/plot/util/ArgumentValidations.java index ec311b81805..fedb9857370 100644 --- a/Plot/src/main/java/io/deephaven/plot/util/ArgumentValidations.java +++ b/Plot/src/main/java/io/deephaven/plot/util/ArgumentValidations.java @@ -9,14 +9,12 @@ import io.deephaven.plot.errors.*; import io.deephaven.plot.filters.SelectableDataSet; import io.deephaven.plot.util.tables.TableHandle; -import io.deephaven.engine.table.DataColumn; import io.deephaven.engine.table.Table; import io.deephaven.engine.table.TableDefinition; -import io.deephaven.qst.column.Column; -import io.deephaven.time.DateTime; import io.deephaven.util.type.TypeUtils; import org.apache.commons.lang3.ClassUtils; +import java.time.Instant; import java.util.*; /** @@ -348,15 +346,15 @@ public static Class getColumnType(final SelectableDataSet sds, final String colu } /** - * Whether the class is equal to Date.class or DateTime.class + * Whether the class is equal to Date.class or Instant.class * * @param c class * @param plotInfo source of the exception - * @return true if {@code c} equals Date.class or DateTime.class, false otherwise + * @return true if {@code c} equals Date.class or Instant.class, false otherwise */ public static boolean isTime(final Class c, final PlotInfo plotInfo) { assertNotNull(c, "c", plotInfo); - return c.equals(Date.class) || c.equals(DateTime.class); + return c == Date.class || c == Instant.class; } /** @@ -381,36 +379,36 @@ public static boolean isNumericOrTime(final Class c, final PlotInfo plotInfo) { } /** - * Whether the column's data type equals Date.class or DateTime.class + * Whether the column's data type equals Date.class or Instant.class * * @param t table * @param column column * @param plotInfo source of the exception - * @return true if the column's data type equals Date.class or DateTime.class, false otherwise + * @return true if the column's data type equals Date.class or Instant.class, false otherwise */ public static boolean isTime(final Table t, final String column, final PlotInfo plotInfo) { return isTime(getColumnType(t, column, plotInfo), plotInfo); } /** - * Whether the column's data type equals Date.class or DateTime.class + * Whether the column's data type equals Date.class or Instant.class * * @param t table * @param column column * @param plotInfo source of the exception - * @return true if the column's data type equals Date.class or DateTime.class, false otherwise + * @return true if the column's data type equals Date.class or Instant.class, false otherwise */ public static boolean isTime(final TableDefinition t, final String column, final PlotInfo plotInfo) { return isTime(getColumnType(t, column, plotInfo), plotInfo); } /** - * Whether the column's data type equals Date.class or DateTime.class + * Whether the column's data type equals Date.class or Instant.class * * @param sds selectable dataset * @param column column * @param plotInfo source of the exception - * @return true if the column's data type equals Date.class or DateTime.class, false otherwise + * @return true if the column's data type equals Date.class or Instant.class, false otherwise */ public static boolean isTime(final SelectableDataSet sds, final String column, final PlotInfo plotInfo) { return isTime(getColumnType(sds, column, plotInfo), plotInfo); diff --git a/Plot/src/main/java/io/deephaven/plot/util/PlotUtils.java b/Plot/src/main/java/io/deephaven/plot/util/PlotUtils.java index c5165e8f12a..5102990abdf 100644 --- a/Plot/src/main/java/io/deephaven/plot/util/PlotUtils.java +++ b/Plot/src/main/java/io/deephaven/plot/util/PlotUtils.java @@ -19,8 +19,8 @@ import io.deephaven.engine.table.Table; import io.deephaven.engine.table.TableDefinition; import io.deephaven.engine.context.QueryScope; -import io.deephaven.time.DateTime; import io.deephaven.gui.color.ColorPaletteArray; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.table.impl.BaseTable; @@ -32,6 +32,7 @@ import org.jetbrains.annotations.NotNull; import java.math.BigDecimal; +import java.time.Instant; import java.util.*; import java.util.function.Consumer; import java.util.function.Function; @@ -49,7 +50,7 @@ public class PlotUtils { private PlotUtils() {} - /** Instances of ColorPaletteArray have some state, so this is kept privat. */ + /** Instances of ColorPaletteArray have some state, so this is kept private. */ private static final ColorPaletteArray MATPLOT_COLORS = new ColorPaletteArray(ColorPaletteArray.Palette.MATPLOTLIB); private static final Random rng = new Random(); @@ -63,7 +64,7 @@ private PlotUtils() {} private static final byte[] EMPTY_BYTE_ARRAY = new byte[0]; private static final Number[] EMPTY_NUMBER_ARRAY = new Number[0]; private static final Date[] EMPTY_DATE_ARRAY = new Date[0]; - private static final DateTime[] EMPTY_DATETIME_ARRAY = new DateTime[0]; + private static final Instant[] EMPTY_INSTANT_ARRAY = new Instant[0]; private static int randVar() { return abs(rng.nextInt()); @@ -750,15 +751,15 @@ public static Function getNumberFromNumericOrTimeSource(final Tabl final ColumnSource columnSource = t.getColumnSource(numericCol); - if (columnSource.getType() == DateTime.class) { + if (columnSource.getType() == Instant.class) { return key -> { - final DateTime dateTime = (DateTime) columnSource.get(key); - return dateTime == null ? NULL_LONG : dateTime.getNanos(); + final Instant instant = (Instant) columnSource.get(key); + return instant == null ? NULL_LONG : DateTimeUtils.epochNanos(instant); }; } else if (columnSource.getType() == Date.class) { return key -> { - final Date dateTime = (Date) columnSource.get(key); - return dateTime == null ? NULL_LONG : dateTime.getTime() * 1000000; + final Date instant = (Date) columnSource.get(key); + return instant == null ? NULL_LONG : instant.getTime() * 1000000; }; } else { return key -> (Number) columnSource.get(key); @@ -878,9 +879,9 @@ public static IndexableData createIndexableData(final Object data, final Cla return new IndexableDataCharacter((char[]) data, plotInfo); } else if (c.equals(byte.class)) { return new IndexableDataByte((byte[]) data, plotInfo); - } else if (c.equals(DateTime.class)) { + } else if (c.equals(Instant.class)) { if (data instanceof long[]) { - return new IndexableDataDateTime((long[]) data, plotInfo); + return new IndexableDataInstant((long[]) data, plotInfo); } } @@ -927,8 +928,8 @@ public static IndexableNumericData createEmptyIndexableNumericDataArray(final Cl return new IndexableNumericDataArrayLong(EMPTY_LONG_ARRAY, plotInfo); } else if (dataType == short.class) { return new IndexableNumericDataArrayShort(EMPTY_SHORT_ARRAY, plotInfo); - } else if (dataType == DateTime.class) { - return new IndexableNumericDataArrayDateTime(EMPTY_DATETIME_ARRAY, plotInfo); + } else if (dataType == Instant.class) { + return new IndexableNumericDataArrayInstant(EMPTY_INSTANT_ARRAY, plotInfo); } else if (dataType == Date.class) { return new IndexableNumericDataArrayDate(EMPTY_DATE_ARRAY, plotInfo); } else if (Number.class.isAssignableFrom(dataType)) { @@ -950,11 +951,11 @@ public static IndexableNumericData createIndexableNumericDataArray(final Object return new IndexableNumericDataArrayLong((long[]) data, plotInfo); } else if (dataType == short.class) { return new IndexableNumericDataArrayShort((short[]) data, plotInfo); - } else if (dataType == DateTime.class) { + } else if (dataType == Instant.class) { if (data instanceof long[]) { return new IndexableNumericDataArrayLong((long[]) data, plotInfo); } else { - return new IndexableNumericDataArrayDateTime((DateTime[]) data, plotInfo); + return new IndexableNumericDataArrayInstant((Instant[]) data, plotInfo); } } else if (dataType == Date.class) { return new IndexableNumericDataArrayDate((Date[]) data, plotInfo); diff --git a/Plot/src/main/java/io/deephaven/plot/util/tables/ColumnHandlerFactory.java b/Plot/src/main/java/io/deephaven/plot/util/tables/ColumnHandlerFactory.java index 73e9437422c..fe6446aebe6 100644 --- a/Plot/src/main/java/io/deephaven/plot/util/tables/ColumnHandlerFactory.java +++ b/Plot/src/main/java/io/deephaven/plot/util/tables/ColumnHandlerFactory.java @@ -8,10 +8,11 @@ import io.deephaven.plot.util.ArgumentValidations; import io.deephaven.engine.table.DataColumn; import io.deephaven.engine.table.Table; -import io.deephaven.time.DateTime; import io.deephaven.gui.color.Paint; +import io.deephaven.time.DateTimeUtils; import java.io.Serializable; +import java.time.Instant; import java.util.Date; import static io.deephaven.util.QueryConstants.*; @@ -384,7 +385,7 @@ public double getDouble(int i) { } }; - } else if (type.equals(DateTime.class)) { + } else if (type.equals(Instant.class)) { return new ColumnHandlerHandle(tableHandle, columnName, type, plotInfo) { @Override public TypeClassification typeClassification() { @@ -393,8 +394,8 @@ public TypeClassification typeClassification() { @Override public double getDouble(int i) { - final DateTime value = (DateTime) getDataColumn().get(i); - return value == null ? Double.NaN : value.getNanos(); + final Instant value = (Instant) getDataColumn().get(i); + return value == null ? Double.NaN : DateTimeUtils.epochNanos(value); } }; @@ -601,7 +602,7 @@ public double getDouble(int i) { } }; - } else if (type.equals(DateTime.class)) { + } else if (type.equals(Instant.class)) { return new ColumnHandlerTable(table, columnName, type, plotInfo) { @Override public TypeClassification typeClassification() { @@ -610,8 +611,8 @@ public TypeClassification typeClassification() { @Override public double getDouble(int i) { - final DateTime value = (DateTime) getDataColumn().get(i); - return value == null ? Double.NaN : value.getNanos(); + final Instant value = (Instant) getDataColumn().get(i); + return value == null ? Double.NaN : DateTimeUtils.epochNanos(value); } }; diff --git a/Plot/src/test/java/io/deephaven/plot/axisformatters/TestNanosAxisFormat.java b/Plot/src/test/java/io/deephaven/plot/axisformatters/TestNanosAxisFormat.java index d9b9e03fc30..57f651daa62 100644 --- a/Plot/src/test/java/io/deephaven/plot/axisformatters/TestNanosAxisFormat.java +++ b/Plot/src/test/java/io/deephaven/plot/axisformatters/TestNanosAxisFormat.java @@ -4,12 +4,11 @@ package io.deephaven.plot.axisformatters; import io.deephaven.base.testing.BaseArrayTestCase; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; -import io.deephaven.time.TimeZoneAliases; import junit.framework.TestCase; import java.text.NumberFormat; +import java.time.Instant; import java.time.ZoneId; public class TestNanosAxisFormat extends BaseArrayTestCase { @@ -24,13 +23,13 @@ public void testFormat() { final NumberFormat nyNumberFormat = nyFormat.getNumberFormatter(); final NumberFormat tokyoNumberFormat = tokyoFormat.getNumberFormatter(); - final DateTime time = new DateTime(DateTimeUtils.YEAR); - final long lNanos = time.getNanos(); + final Instant time = DateTimeUtils.epochNanosToInstant(DateTimeUtils.YEAR); + final long lNanos = DateTimeUtils.epochNanos(time); final double dNanos = lNanos; - assertEquals(nyNumberFormat.format(lNanos), time.toDateString(ZoneId.systemDefault())); - assertEquals(nyNumberFormat.format(dNanos), time.toDateString(ZoneId.systemDefault())); - assertEquals(tokyoNumberFormat.format(lNanos), time.toDateString(TZ_JP)); - assertEquals(tokyoNumberFormat.format(dNanos), time.toDateString(TZ_JP)); + assertEquals(nyNumberFormat.format(lNanos), DateTimeUtils.formatDate(time, ZoneId.systemDefault())); + assertEquals(nyNumberFormat.format(dNanos), DateTimeUtils.formatDate(time, ZoneId.systemDefault())); + assertEquals(tokyoNumberFormat.format(lNanos), DateTimeUtils.formatDate(time, TZ_JP)); + assertEquals(tokyoNumberFormat.format(dNanos), DateTimeUtils.formatDate(time, TZ_JP)); try { nyNumberFormat.parse("TEST", null); @@ -41,25 +40,25 @@ public void testFormat() { } public void testFormatString() { - final DateTime time = DateTimeUtils.parseDateTime("2017-03-24T14:32:12.345678 MN"); + final Instant time = DateTimeUtils.parseInstant("2017-03-24T14:32:12.345678 MN"); final NanosAxisFormat formatMN = new NanosAxisFormat(TZ_MN); final NanosAxisFormat formatNY = new NanosAxisFormat(TZ_NY); - assertEquals("2017-03-24", formatMN.getNumberFormatter().format(time.getNanos())); - assertEquals("2017-03-24", formatNY.getNumberFormatter().format(time.getNanos())); + assertEquals("2017-03-24", formatMN.getNumberFormatter().format(DateTimeUtils.epochNanos(time))); + assertEquals("2017-03-24", formatNY.getNumberFormatter().format(DateTimeUtils.epochNanos(time))); formatMN.setPattern("yyyy-MM-dd'T'HH:mm"); formatNY.setPattern("yyyy-MM-dd'T'HH:mm"); - assertEquals("2017-03-24T14:32", formatMN.getNumberFormatter().format(time.getNanos())); - assertEquals("2017-03-24T15:32", formatNY.getNumberFormatter().format(time.getNanos())); + assertEquals("2017-03-24T14:32", formatMN.getNumberFormatter().format(DateTimeUtils.epochNanos(time))); + assertEquals("2017-03-24T15:32", formatNY.getNumberFormatter().format(DateTimeUtils.epochNanos(time))); formatMN.setPattern("HH:mm:ss.SSSS"); formatNY.setPattern("HH:mm:ss.SSSS"); - assertEquals("14:32:12.3456", formatMN.getNumberFormatter().format(time.getNanos())); - assertEquals("15:32:12.3456", formatNY.getNumberFormatter().format(time.getNanos())); + assertEquals("14:32:12.3456", formatMN.getNumberFormatter().format(DateTimeUtils.epochNanos(time))); + assertEquals("15:32:12.3456", formatNY.getNumberFormatter().format(DateTimeUtils.epochNanos(time))); try { formatMN.setPattern("junkpattern"); @@ -70,7 +69,7 @@ public void testFormatString() { formatNY.setPattern(null); formatMN.setPattern(null); - assertEquals("2017-03-24", formatMN.getNumberFormatter().format(time.getNanos())); - assertEquals("2017-03-24", formatNY.getNumberFormatter().format(time.getNanos())); + assertEquals("2017-03-24", formatMN.getNumberFormatter().format(DateTimeUtils.epochNanos(time))); + assertEquals("2017-03-24", formatNY.getNumberFormatter().format(DateTimeUtils.epochNanos(time))); } } diff --git a/Plot/src/test/java/io/deephaven/plot/axistransformations/TestAxisTransformBusinessCalendar.java b/Plot/src/test/java/io/deephaven/plot/axistransformations/TestAxisTransformBusinessCalendar.java index f94b4636db2..e257884f82b 100644 --- a/Plot/src/test/java/io/deephaven/plot/axistransformations/TestAxisTransformBusinessCalendar.java +++ b/Plot/src/test/java/io/deephaven/plot/axistransformations/TestAxisTransformBusinessCalendar.java @@ -4,10 +4,10 @@ package io.deephaven.plot.axistransformations; import io.deephaven.base.testing.BaseArrayTestCase; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.time.calendar.Calendars; +import java.time.Instant; import java.time.ZoneId; public class TestAxisTransformBusinessCalendar extends BaseArrayTestCase { @@ -16,68 +16,68 @@ public class TestAxisTransformBusinessCalendar extends BaseArrayTestCase { private final AxisTransformBusinessCalendar bt = new AxisTransformBusinessCalendar(Calendars.calendar("JPOSE")); - private final DateTime holiday = DateTimeUtils.parseDateTime("2017-01-03T10:00:00 JP"); - private final DateTime weekend = DateTimeUtils.parseDateTime("2017-01-02T10:00:00 JP"); + private final Instant holiday = DateTimeUtils.parseInstant("2017-01-03T10:00:00 JP"); + private final Instant weekend = DateTimeUtils.parseInstant("2017-01-02T10:00:00 JP"); - private final DateTime pre1 = DateTimeUtils.parseDateTime("2017-01-04T06:00:00 JP"); - private final DateTime bus11 = DateTimeUtils.parseDateTime("2017-01-04T10:00:00 JP"); - private final DateTime lunch1 = DateTimeUtils.parseDateTime("2017-01-04T12:00:00 JP"); - private final DateTime bus12 = DateTimeUtils.parseDateTime("2017-01-04T12:45:00 JP"); - private final DateTime close1 = DateTimeUtils.parseDateTime("2017-01-04T20:00:00 JP"); + private final Instant pre1 = DateTimeUtils.parseInstant("2017-01-04T06:00:00 JP"); + private final Instant bus11 = DateTimeUtils.parseInstant("2017-01-04T10:00:00 JP"); + private final Instant lunch1 = DateTimeUtils.parseInstant("2017-01-04T12:00:00 JP"); + private final Instant bus12 = DateTimeUtils.parseInstant("2017-01-04T12:45:00 JP"); + private final Instant close1 = DateTimeUtils.parseInstant("2017-01-04T20:00:00 JP"); - private final DateTime pre2 = DateTimeUtils.parseDateTime("2017-01-06T06:00:00 JP"); - private final DateTime bus21 = DateTimeUtils.parseDateTime("2017-01-06T10:00:00 JP"); - private final DateTime lunch2 = DateTimeUtils.parseDateTime("2017-01-06T12:00:00 JP"); - private final DateTime bus22 = DateTimeUtils.parseDateTime("2017-01-06T12:45:00 JP"); - private final DateTime close2 = DateTimeUtils.parseDateTime("2017-01-06T20:00:00 JP"); + private final Instant pre2 = DateTimeUtils.parseInstant("2017-01-06T06:00:00 JP"); + private final Instant bus21 = DateTimeUtils.parseInstant("2017-01-06T10:00:00 JP"); + private final Instant lunch2 = DateTimeUtils.parseInstant("2017-01-06T12:00:00 JP"); + private final Instant bus22 = DateTimeUtils.parseInstant("2017-01-06T12:45:00 JP"); + private final Instant close2 = DateTimeUtils.parseInstant("2017-01-06T20:00:00 JP"); - private final DateTime pre3 = DateTimeUtils.parseDateTime("2017-01-11T06:00:00 JP"); - private final DateTime bus31 = DateTimeUtils.parseDateTime("2017-01-11T10:00:00 JP"); - private final DateTime lunch3 = DateTimeUtils.parseDateTime("2017-01-11T12:00:00 JP"); - private final DateTime bus32 = DateTimeUtils.parseDateTime("2017-01-11T12:45:00 JP"); - private final DateTime close3 = DateTimeUtils.parseDateTime("2017-01-11T20:00:00 JP"); + private final Instant pre3 = DateTimeUtils.parseInstant("2017-01-11T06:00:00 JP"); + private final Instant bus31 = DateTimeUtils.parseInstant("2017-01-11T10:00:00 JP"); + private final Instant lunch3 = DateTimeUtils.parseInstant("2017-01-11T12:00:00 JP"); + private final Instant bus32 = DateTimeUtils.parseInstant("2017-01-11T12:45:00 JP"); + private final Instant close3 = DateTimeUtils.parseInstant("2017-01-11T20:00:00 JP"); public void testIsVisible() { - assertFalse(bt.isVisible((double) holiday.getNanos())); - assertFalse(bt.isVisible((double) weekend.getNanos())); - assertFalse(bt.isVisible((double) pre1.getNanos())); - assertTrue(bt.isVisible((double) bus11.getNanos())); - assertFalse(bt.isVisible((double) lunch1.getNanos())); - assertTrue(bt.isVisible((double) bus12.getNanos())); - assertFalse(bt.isVisible((double) close1.getNanos())); - - assertFalse(bt.isVisible((double) pre2.getNanos())); - assertTrue(bt.isVisible((double) bus21.getNanos())); - assertFalse(bt.isVisible((double) lunch2.getNanos())); - assertTrue(bt.isVisible((double) bus22.getNanos())); - assertFalse(bt.isVisible((double) close2.getNanos())); - - assertFalse(bt.isVisible((double) pre3.getNanos())); - assertTrue(bt.isVisible((double) bus31.getNanos())); - assertFalse(bt.isVisible((double) lunch3.getNanos())); - assertTrue(bt.isVisible((double) bus32.getNanos())); - assertFalse(bt.isVisible((double) close3.getNanos())); + assertFalse(bt.isVisible((double) DateTimeUtils.epochNanos(holiday))); + assertFalse(bt.isVisible((double) DateTimeUtils.epochNanos(weekend))); + assertFalse(bt.isVisible((double) DateTimeUtils.epochNanos(pre1))); + assertTrue(bt.isVisible((double) DateTimeUtils.epochNanos(bus11))); + assertFalse(bt.isVisible((double) DateTimeUtils.epochNanos(lunch1))); + assertTrue(bt.isVisible((double) DateTimeUtils.epochNanos(bus12))); + assertFalse(bt.isVisible((double) DateTimeUtils.epochNanos(close1))); + + assertFalse(bt.isVisible((double) DateTimeUtils.epochNanos(pre2))); + assertTrue(bt.isVisible((double) DateTimeUtils.epochNanos(bus21))); + assertFalse(bt.isVisible((double) DateTimeUtils.epochNanos(lunch2))); + assertTrue(bt.isVisible((double) DateTimeUtils.epochNanos(bus22))); + assertFalse(bt.isVisible((double) DateTimeUtils.epochNanos(close2))); + + assertFalse(bt.isVisible((double) DateTimeUtils.epochNanos(pre3))); + assertTrue(bt.isVisible((double) DateTimeUtils.epochNanos(bus31))); + assertFalse(bt.isVisible((double) DateTimeUtils.epochNanos(lunch3))); + assertTrue(bt.isVisible((double) DateTimeUtils.epochNanos(bus32))); + assertFalse(bt.isVisible((double) DateTimeUtils.epochNanos(close3))); } public void testTransform() { - testTransform(holiday, DateTimeUtils.parseDateTime("2017-01-04T09:00:00 JP")); - testTransform(weekend, DateTimeUtils.parseDateTime("2017-01-04T09:00:00 JP")); + testTransform(holiday, DateTimeUtils.parseInstant("2017-01-04T09:00:00 JP")); + testTransform(weekend, DateTimeUtils.parseInstant("2017-01-04T09:00:00 JP")); - testTransform(pre1, DateTimeUtils.parseDateTime("2017-01-04T09:00:00 JP")); - testTransform(pre2, DateTimeUtils.parseDateTime("2017-01-06T09:00:00 JP")); - testTransform(pre3, DateTimeUtils.parseDateTime("2017-01-11T09:00:00 JP")); + testTransform(pre1, DateTimeUtils.parseInstant("2017-01-04T09:00:00 JP")); + testTransform(pre2, DateTimeUtils.parseInstant("2017-01-06T09:00:00 JP")); + testTransform(pre3, DateTimeUtils.parseInstant("2017-01-11T09:00:00 JP")); - testTransform(lunch1, DateTimeUtils.parseDateTime("2017-01-04T11:30:00 JP")); - testTransform(lunch2, DateTimeUtils.parseDateTime("2017-01-06T11:30:00 JP")); - testTransform(lunch3, DateTimeUtils.parseDateTime("2017-01-11T11:30:00 JP")); + testTransform(lunch1, DateTimeUtils.parseInstant("2017-01-04T11:30:00 JP")); + testTransform(lunch2, DateTimeUtils.parseInstant("2017-01-06T11:30:00 JP")); + testTransform(lunch3, DateTimeUtils.parseInstant("2017-01-11T11:30:00 JP")); - testTransform(close1, DateTimeUtils.parseDateTime("2017-01-05T09:00:00 JP")); - testTransform(close2, DateTimeUtils.parseDateTime("2017-01-10T09:00:00 JP")); - testTransform(close3, DateTimeUtils.parseDateTime("2017-01-12T09:00:00 JP")); + testTransform(close1, DateTimeUtils.parseInstant("2017-01-05T09:00:00 JP")); + testTransform(close2, DateTimeUtils.parseInstant("2017-01-10T09:00:00 JP")); + testTransform(close3, DateTimeUtils.parseInstant("2017-01-12T09:00:00 JP")); - for (DateTime t : new DateTime[] {bus11, bus12, bus21, bus22, bus31, bus32}) { + for (Instant t : new Instant[] {bus11, bus12, bus21, bus22, bus31, bus32}) { testTransform(t, t); } @@ -86,36 +86,35 @@ public void testTransform() { // tests bugs where first day was transformed incorrectly public void testFirstTransformedDay() { AxisTransform transform = new AxisTransformBusinessCalendar(Calendars.calendar("USNYSE")); - double d = transform.transform(DateTimeUtils.parseDateTime("2018-02-02T09:30:01 NY").getNanos()); - double d2 = transform.transform(DateTimeUtils.parseDateTime("2018-02-02T14:30:01 NY").getNanos()); + double d = transform.transform(DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2018-02-02T09:30:01 NY"))); + double d2 = transform.transform(DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2018-02-02T14:30:01 NY"))); assertFalse(d == d2); // first day holiday transform = new AxisTransformBusinessCalendar(Calendars.calendar("USNYSE")); - transform.transform(DateTimeUtils.parseDateTime("2018-02-03T09:30:01 NY").getNanos()); + transform.transform(DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2018-02-03T09:30:01 NY"))); assertEquals(0.0 + 30 * DateTimeUtils.MINUTE, - transform.transform(DateTimeUtils.parseDateTime("2018-02-02T10:00:00 NY").getNanos())); + transform.transform(DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2018-02-02T10:00:00 NY")))); assertEquals(2.34E13 + 30 * DateTimeUtils.MINUTE, - transform.transform(DateTimeUtils.parseDateTime("2018-02-05T10:00:00 NY").getNanos())); + transform.transform(DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2018-02-05T10:00:00 NY")))); // first time outside business hours transform = new AxisTransformBusinessCalendar(Calendars.calendar("USNYSE")); - transform.transform(DateTimeUtils.parseDateTime("2018-02-02T09:29:00 NY").getNanos()); + transform.transform(DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2018-02-02T09:29:00 NY"))); assertEquals(2.34E13 + 30 * DateTimeUtils.MINUTE, - transform.transform(DateTimeUtils.parseDateTime("2018-02-02T10:00:00 NY").getNanos())); + transform.transform(DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2018-02-02T10:00:00 NY")))); // previous day was holiday transform = new AxisTransformBusinessCalendar(Calendars.calendar("USNYSE")); - transform.transform(DateTimeUtils.parseDateTime("2018-01-29T09:29:00 NY").getNanos()); + transform.transform(DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2018-01-29T09:29:00 NY"))); assertEquals(2 * 2.34E13 + 30 * DateTimeUtils.MINUTE, - transform.transform(DateTimeUtils.parseDateTime("2018-01-30T10:00:00 NY").getNanos())); + transform.transform(DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2018-01-30T10:00:00 NY")))); } - private void testTransform(final DateTime tIn, final DateTime tTarget) { - double v = bt.transform(tIn.getNanos()); + private void testTransform(final Instant tIn, final Instant tTarget) { + double v = bt.transform(DateTimeUtils.epochNanos(tIn)); double t2 = bt.inverseTransform(v); - assertEquals(tIn.toString(TZ_JP), (double) tTarget.getNanos(), t2); + assertEquals(DateTimeUtils.formatDateTime(tIn, TZ_JP), (double) DateTimeUtils.epochNanos(tTarget), t2); } - } diff --git a/Plot/src/test/java/io/deephaven/plot/datasets/data/TestIndexableData.java b/Plot/src/test/java/io/deephaven/plot/datasets/data/TestIndexableData.java index 95a95a8f37c..d8bf2ea1862 100644 --- a/Plot/src/test/java/io/deephaven/plot/datasets/data/TestIndexableData.java +++ b/Plot/src/test/java/io/deephaven/plot/datasets/data/TestIndexableData.java @@ -7,9 +7,10 @@ import io.deephaven.plot.BaseFigureImpl; import io.deephaven.plot.util.tables.*; import io.deephaven.engine.table.Table; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; +import io.deephaven.time.DateTimeUtils; +import java.time.Instant; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; @@ -28,7 +29,7 @@ public class TestIndexableData extends BaseArrayTestCase { private final Number[] numberArray = new Number[SIZE]; private final List numberList = new ArrayList<>(SIZE); private final Date[] dateArray = new Date[SIZE]; - private final DateTime[] dateTimesArray = new DateTime[SIZE]; + private final Instant[] instantsArray = new Instant[SIZE]; @Override public void setUp() throws Exception { @@ -41,7 +42,7 @@ public void setUp() throws Exception { numberArray[i] = null; numberList.add(i, null); dateArray[i] = null; - dateTimesArray[i] = null; + instantsArray[i] = null; for (i = 1; i < SIZE; i++) { shortArray[i] = i; @@ -52,7 +53,7 @@ public void setUp() throws Exception { numberArray[i] = i; numberList.add(i, (double) i); dateArray[i] = new Date(i, 1, 1); - dateTimesArray[i] = new DateTime(i); + instantsArray[i] = DateTimeUtils.epochNanosToInstant(i); } } @@ -65,8 +66,8 @@ public void testIndexableNumericData() { final IndexableNumericData numberData = new IndexableNumericDataArrayNumber<>(numberArray, null); final IndexableNumericData listData = new IndexableNumericDataListNumber<>(numberList, null); final IndexableNumericData dateData = new IndexableNumericDataArrayDate(dateArray, null); - final IndexableNumericData dateTimeData = new IndexableNumericDataArrayDateTime(dateTimesArray, null); - checkData(shortData, intData, doubleData, longData, floatData, numberData, listData, dateTimeData); + final IndexableNumericData instantData = new IndexableNumericDataArrayInstant(instantsArray, null); + checkData(shortData, intData, doubleData, longData, floatData, numberData, listData, instantData); checkDateData(dateData); } diff --git a/Plot/src/test/java/io/deephaven/plot/datasets/ohlc/TestOHLCDataSeries.java b/Plot/src/test/java/io/deephaven/plot/datasets/ohlc/TestOHLCDataSeries.java index 2ad775dc2c8..789df4ce7df 100644 --- a/Plot/src/test/java/io/deephaven/plot/datasets/ohlc/TestOHLCDataSeries.java +++ b/Plot/src/test/java/io/deephaven/plot/datasets/ohlc/TestOHLCDataSeries.java @@ -10,26 +10,30 @@ import io.deephaven.gui.color.Color; import io.deephaven.plot.BaseFigureImpl; import io.deephaven.plot.datasets.data.IndexableNumericData; -import io.deephaven.plot.datasets.data.IndexableNumericDataArrayDateTime; import io.deephaven.plot.datasets.data.IndexableNumericDataArrayDouble; +import io.deephaven.plot.datasets.data.IndexableNumericDataArrayInstant; import io.deephaven.plot.datasets.xy.TestAbstractXYDataSeries; import io.deephaven.plot.util.tables.SwappableTable; import io.deephaven.plot.util.tables.TableBackedPartitionedTableHandle; import io.deephaven.plot.util.tables.TableHandle; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.SafeCloseable; +import java.time.Instant; import java.util.ArrayList; public class TestOHLCDataSeries extends BaseArrayTestCase { - private final DateTime[] datesA = {new DateTime(DateTimeUtils.DAY), new DateTime(2 * DateTimeUtils.DAY), - new DateTime(3 * DateTimeUtils.DAY), new DateTime(4 * DateTimeUtils.DAY)}; + private final Instant[] datesA = { + DateTimeUtils.epochNanosToInstant(DateTimeUtils.DAY), + DateTimeUtils.epochNanosToInstant(2 * DateTimeUtils.DAY), + DateTimeUtils.epochNanosToInstant(3 * DateTimeUtils.DAY), + DateTimeUtils.epochNanosToInstant(4 * DateTimeUtils.DAY) + }; private final double[] openA = {1.0, 2.0, 1.5, 2.0}; private final double[] closeA = {1.8, 1.8, 1.7, 2.2}; private final double[] highA = {2.0, 2.0, 1.8, 2.5}; private final double[] lowA = {0.9, 1.5, 1.5, 1.8}; - private final IndexableNumericData dates = new IndexableNumericDataArrayDateTime(datesA, null); + private final IndexableNumericData dates = new IndexableNumericDataArrayInstant(datesA, null); private final IndexableNumericData open = new IndexableNumericDataArrayDouble(openA, null); private final IndexableNumericData close = new IndexableNumericDataArrayDouble(closeA, null); private final IndexableNumericData high = new IndexableNumericDataArrayDouble(highA, null); @@ -59,12 +63,12 @@ public void testOHLCDataSeriesArray() { checkOHLCDataSeriesArray(dataSeries2, datesA, closeA, highA, lowA, openA); } - private void checkOHLCDataSeriesArray(OHLCDataSeriesInternal dataSeries, DateTime[] time, double[] open, + private void checkOHLCDataSeriesArray(OHLCDataSeriesInternal dataSeries, Instant[] time, double[] open, double[] high, double[] low, double[] close) { assertEquals(dataSeries.size(), time.length); for (int i = 0; i < dataSeries.size(); i++) { - assertEquals(dataSeries.getX(i), (double) time[i].getNanos()); + assertEquals(dataSeries.getX(i), (double) DateTimeUtils.epochNanos(time[i])); assertEquals(dataSeries.getY(i), close[i]); assertEquals(dataSeries.getOpen(i), open[i]); assertEquals(dataSeries.getHigh(i), high[i]); diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/BusinessTime.java b/Plot/src/test/java/io/deephaven/plot/example_plots/BusinessTime.java index 27fc465aeea..3e8a5420042 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/BusinessTime.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/BusinessTime.java @@ -7,25 +7,25 @@ import io.deephaven.plot.Figure; import io.deephaven.plot.FigureFactory; import io.deephaven.plot.axistransformations.AxisTransformBusinessCalendar; -import io.deephaven.time.DateTime; import io.deephaven.time.calendar.Calendars; +import java.time.Instant; public class BusinessTime { public static void main(String[] args) { - DateTime[] x = new DateTime[500]; + Instant[] x = new Instant[500]; double[] y = new double[500]; long time = 1493305755000000000L; for (int i = 0; i < 250; i++) { time = time + DateTimeUtils.MINUTE; - x[i] = new DateTime(time); + x[i] = DateTimeUtils.epochNanosToInstant(time); y[i] = Math.sin(i); } time = 1493305755000000000L + DateTimeUtils.DAY; for (int i = 250; i < x.length; i++) { time = time + DateTimeUtils.MINUTE; - x[i] = new DateTime(time); + x[i] = DateTimeUtils.epochNanosToInstant(time); y[i] = Math.sin(i); } diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/CatPlotBy.java b/Plot/src/test/java/io/deephaven/plot/example_plots/CatPlotBy.java index f8c64ae02a7..c04347eea78 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/CatPlotBy.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/CatPlotBy.java @@ -20,7 +20,7 @@ public static void main(String[] args) { TableTools.col("Cats", cats), TableTools.doubleCol("Values", values)); - t = t.update("Timestamp = DateTime.now() + (HOUR * i)"); + t = t.update("Timestamp = DateTimeUtils.now() + (HOUR * i)"); Figure fig = FigureFactory.figure(); for (int i = 0; i < 1; i++) { fig = fig.newChart() diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/OHLCChart.java b/Plot/src/test/java/io/deephaven/plot/example_plots/OHLCChart.java index c20b48a4a82..ab5f852be96 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/OHLCChart.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/OHLCChart.java @@ -6,7 +6,8 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.plot.Figure; import io.deephaven.plot.FigureFactory; -import io.deephaven.time.DateTime; + +import java.time.Instant; public class OHLCChart { @@ -14,11 +15,11 @@ public static void main(String[] args) { final long time = 1491946585000000000L; - DateTime[] date = { - new DateTime(time + DateTimeUtils.DAY * 1), - new DateTime(time + DateTimeUtils.DAY * 2), - new DateTime(time + DateTimeUtils.DAY * 3), - new DateTime(time + DateTimeUtils.DAY * 4)}; + Instant[] date = { + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 1), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 2), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 3), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 4)}; final Number[] open = {3, 4, 3, 5}; final Number[] high = {5, 6, 5, 7}; final Number[] low = {2, 3, 1, 4}; diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/OHLCPlotBy.java b/Plot/src/test/java/io/deephaven/plot/example_plots/OHLCPlotBy.java index 34fd750a386..c1c88ec6d62 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/OHLCPlotBy.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/OHLCPlotBy.java @@ -28,7 +28,7 @@ public static void main(String[] args) { TableTools.doubleCol("Close", close)); QueryScope.addParam("time", time); - t = t.updateView("Time = new DateTime(time + (MINUTE * i))"); + t = t.updateView("Time = DateTimeUtils.epochNanosToInstant(time + (MINUTE * i))"); Figure fig = FigureFactory.figure(); Figure cht = fig.newChart(0) diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/PlottingPQ.groovy b/Plot/src/test/java/io/deephaven/plot/example_plots/PlottingPQ.groovy index 15edb0eab55..83c59c46a59 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/PlottingPQ.groovy +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/PlottingPQ.groovy @@ -59,7 +59,7 @@ t = newTable(col("USym", ["A", "B", "A", "B", "A", "B"] as String[]), doubleCol("Low", doubles), doubleCol("Close", doubles)) -t = t.updateView("Time = new DateTime(time + (MINUTE * i))") +t = t.updateView("Time = DateTimeUtils.epochNanosToInstant(time + (MINUTE * i))") ohlc = ohlcPlot("Test1", t, "Time", "Open", "High", "Low", "Close") diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/PlottingPQ.py b/Plot/src/test/java/io/deephaven/plot/example_plots/PlottingPQ.py index fd27a24c240..3227c50306f 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/PlottingPQ.py +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/PlottingPQ.py @@ -51,7 +51,7 @@ tt.doubleCol("Open", doubles), tt.doubleCol("High", doubles), tt.doubleCol("Low", doubles), tt.doubleCol("Close", doubles)) -t = t.updateView("Time = new DateTime(time + (MINUTE * i))") +t = t.updateView("Time = DateTimeUtils.epochNanosToInstant(time + (MINUTE * i))") ohlc = plt.ohlcPlot("Test1", t, "Time", "Open", "High", "Low", "Close") diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/PrettyChart1.java b/Plot/src/test/java/io/deephaven/plot/example_plots/PrettyChart1.java index 22e7a27c658..de0a288edd5 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/PrettyChart1.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/PrettyChart1.java @@ -5,9 +5,10 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.plot.*; -import io.deephaven.time.DateTime; import io.deephaven.gui.color.Color; +import java.time.Instant; + public class PrettyChart1 { @@ -18,70 +19,70 @@ public static void main(String[] args) { final Color lighterDarkBlue = new Color(darkBlue.getRed(), darkBlue.getGreen(), darkBlue.getBlue(), 100); final long time = 1491946585000000000L; - DateTime[] date1 = { - new DateTime(time + DateTimeUtils.DAY * 2), - new DateTime(time + DateTimeUtils.DAY * 4), - new DateTime(time + DateTimeUtils.DAY * 5), - new DateTime(time + DateTimeUtils.DAY * 8), - new DateTime(time + DateTimeUtils.DAY * 9), - new DateTime(time + DateTimeUtils.DAY * 11), - new DateTime(time + DateTimeUtils.DAY * 12), - new DateTime(time + DateTimeUtils.DAY * 13), - new DateTime(time + DateTimeUtils.DAY * 14), - new DateTime(time + DateTimeUtils.DAY * 15), - new DateTime(time + DateTimeUtils.DAY * 18), - new DateTime(time + DateTimeUtils.DAY * 19), - new DateTime(time + DateTimeUtils.DAY * 21), - new DateTime(time + DateTimeUtils.DAY * 22), - new DateTime(time + DateTimeUtils.DAY * 23), - new DateTime(time + DateTimeUtils.DAY * 24), - new DateTime(time + DateTimeUtils.DAY * 25), - new DateTime(time + DateTimeUtils.DAY * 28), - new DateTime(time + DateTimeUtils.DAY * 30), - new DateTime(time + DateTimeUtils.DAY * 31), - new DateTime(time + DateTimeUtils.DAY * 32), - new DateTime(time + DateTimeUtils.DAY * 33), - new DateTime(time + DateTimeUtils.DAY * 36), - new DateTime(time + DateTimeUtils.DAY * 38), - new DateTime(time + DateTimeUtils.DAY * 40), - new DateTime(time + DateTimeUtils.DAY * 43), - new DateTime(time + DateTimeUtils.DAY * 44), - new DateTime(time + DateTimeUtils.DAY * 46), - }; - - - DateTime[] date3 = { - new DateTime(time + DateTimeUtils.DAY), - new DateTime(time + DateTimeUtils.DAY * 3), - new DateTime(time + DateTimeUtils.DAY * 4), - new DateTime(time + DateTimeUtils.DAY * 6), - new DateTime(time + DateTimeUtils.DAY * 8), - new DateTime(time + DateTimeUtils.DAY * 10), - new DateTime(time + DateTimeUtils.DAY * 11), - new DateTime(time + DateTimeUtils.DAY * 13), - new DateTime(time + DateTimeUtils.DAY * 15), - new DateTime(time + DateTimeUtils.DAY * 17), - new DateTime(time + DateTimeUtils.DAY * 18), - new DateTime(time + DateTimeUtils.DAY * 19), - new DateTime(time + DateTimeUtils.DAY * 20), - new DateTime(time + DateTimeUtils.DAY * 21), - new DateTime(time + DateTimeUtils.DAY * 23), - new DateTime(time + DateTimeUtils.DAY * 24), - new DateTime(time + DateTimeUtils.DAY * 26), - new DateTime(time + DateTimeUtils.DAY * 27), - new DateTime(time + DateTimeUtils.DAY * 28), - new DateTime(time + DateTimeUtils.DAY * 30), - new DateTime(time + DateTimeUtils.DAY * 32), - new DateTime(time + DateTimeUtils.DAY * 33), - new DateTime(time + DateTimeUtils.DAY * 34), - new DateTime(time + DateTimeUtils.DAY * 36), - new DateTime(time + DateTimeUtils.DAY * 38), - new DateTime(time + DateTimeUtils.DAY * 40), - new DateTime(time + DateTimeUtils.DAY * 42), - new DateTime(time + DateTimeUtils.DAY * 43), - new DateTime(time + DateTimeUtils.DAY * 44), - new DateTime(time + DateTimeUtils.DAY * 46), - }; + Instant[] date1 = { + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 2), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 4), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 5), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 8), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 9), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 11), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 12), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 13), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 14), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 15), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 18), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 19), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 21), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 22), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 23), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 24), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 25), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 28), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 30), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 31), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 32), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 33), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 36), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 38), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 40), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 43), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 44), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 46), + }; + + + Instant[] date3 = { + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 3), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 4), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 6), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 8), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 10), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 11), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 13), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 15), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 17), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 18), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 19), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 20), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 21), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 23), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 24), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 26), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 27), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 28), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 30), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 32), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 33), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 34), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 36), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 38), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 40), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 42), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 43), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 44), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 46), + }; Number[] y1 = { 100, diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleCatError.java b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleCatError.java index bd5a0310b62..7f97be08f02 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleCatError.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleCatError.java @@ -6,8 +6,8 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.plot.Figure; import io.deephaven.plot.FigureFactory; -import io.deephaven.time.DateTime; +import java.time.Instant; /** * Sample catErrorBar plot. @@ -25,11 +25,11 @@ public static void main(String[] args) { final double[] yHigh = {5.9, 2.8, 5.9, 4.9}; final long time = 1491946585000000000L; - DateTime[] date = { - new DateTime(time + DateTimeUtils.DAY * 1), - new DateTime(time + DateTimeUtils.DAY * 2), - new DateTime(time + DateTimeUtils.DAY * 3), - new DateTime(time + DateTimeUtils.DAY * 4)}; + Instant[] date = { + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 1), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 2), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 3), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 4)}; final Number[] open = {3, 4, 3, 5}; final Number[] high = {5, 6, 5, 7}; diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleTsDBDatePlot.java b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleTsDBDatePlot.java index 1eb8c4522a1..4c191c2abf4 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleTsDBDatePlot.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleTsDBDatePlot.java @@ -6,24 +6,24 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.plot.Figure; import io.deephaven.plot.FigureFactory; -import io.deephaven.time.DateTime; +import java.time.Instant; public class SimpleTsDBDatePlot { public static void main(String[] args) { final long time = 1491946585000000000L; - final DateTime[] x1 = { - new DateTime(time), - new DateTime(time + DateTimeUtils.MINUTE), - new DateTime(time + 2 * DateTimeUtils.MINUTE), - new DateTime(time + 3 * DateTimeUtils.MINUTE) + final Instant[] x1 = { + DateTimeUtils.epochNanosToInstant(time), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.MINUTE), + DateTimeUtils.epochNanosToInstant(time + 2 * DateTimeUtils.MINUTE), + DateTimeUtils.epochNanosToInstant(time + 3 * DateTimeUtils.MINUTE) }; final Number[] y1 = {2, 3, 1, 9}; - final DateTime[] x2 = { - new DateTime(time + DateTimeUtils.MINUTE), - new DateTime(time + 3 * DateTimeUtils.MINUTE), - new DateTime(time + 4 * DateTimeUtils.MINUTE) + final Instant[] x2 = { + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.MINUTE), + DateTimeUtils.epochNanosToInstant(time + 3 * DateTimeUtils.MINUTE), + DateTimeUtils.epochNanosToInstant(time + 4 * DateTimeUtils.MINUTE) }; final Number[] y2 = {1.3, 3.2, 3.4}; @@ -39,5 +39,4 @@ public static void main(String[] args) { ExamplePlotUtils.display(axs); } - } diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYDateTime.java b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYDateTime.java index a55ec7e44ea..2f6827c74ff 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYDateTime.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYDateTime.java @@ -6,30 +6,32 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.plot.Figure; import io.deephaven.plot.PlotStyle; -import io.deephaven.time.DateTime; + +import java.time.Instant; import static io.deephaven.plot.PlottingConvenience.plot; /** - * XY plot with DateTime axis + * XY plot with date time axis */ public class SimpleXYDateTime { public static void main(String[] args) { - final long dateTime = DateTimeUtils.parseDateTime("2018-02-01T09:30:00 NY").getNanos(); - final DateTime[] dates = new DateTime[] {DateTimeUtils.epochNanosToDateTime(dateTime), - DateTimeUtils.epochNanosToDateTime(dateTime + DateTimeUtils.HOUR), - DateTimeUtils.epochNanosToDateTime(dateTime + 2 * DateTimeUtils.HOUR), - DateTimeUtils.epochNanosToDateTime(dateTime + 3 * DateTimeUtils.HOUR), - DateTimeUtils.epochNanosToDateTime(dateTime + 4 * DateTimeUtils.HOUR), - DateTimeUtils.epochNanosToDateTime(dateTime + 5 * DateTimeUtils.HOUR), - DateTimeUtils.epochNanosToDateTime(dateTime + 6 * DateTimeUtils.HOUR), - DateTimeUtils.epochNanosToDateTime(dateTime + 6 * DateTimeUtils.HOUR + 30 * DateTimeUtils.MINUTE), - }; + final long time = DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2018-02-01T09:30:00 NY")); + final Instant[] instants = new Instant[] { + DateTimeUtils.epochNanosToInstant(time), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.HOUR), + DateTimeUtils.epochNanosToInstant(time + 2 * DateTimeUtils.HOUR), + DateTimeUtils.epochNanosToInstant(time + 3 * DateTimeUtils.HOUR), + DateTimeUtils.epochNanosToInstant(time + 4 * DateTimeUtils.HOUR), + DateTimeUtils.epochNanosToInstant(time + 5 * DateTimeUtils.HOUR), + DateTimeUtils.epochNanosToInstant(time + 6 * DateTimeUtils.HOUR), + DateTimeUtils.epochNanosToInstant(time + 6 * DateTimeUtils.HOUR + 30 * DateTimeUtils.MINUTE), + }; final double[] data = new double[] {1, 2, 3, 4, 5, 6, 7, 8}; - Figure axs2 = plot("Test2", dates, data) + Figure axs2 = plot("Test2", instants, data) .xBusinessTime() .plotStyle(PlotStyle.SCATTER) .linesVisible(true) diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYError.java b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYError.java index b0a51971dca..5f85f6f55fc 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYError.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYError.java @@ -6,8 +6,8 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.plot.Figure; import io.deephaven.plot.FigureFactory; -import io.deephaven.time.DateTime; +import java.time.Instant; /** * Sample errorBar plot. @@ -25,11 +25,11 @@ public static void main(String[] args) { final double[] yHigh = {5.9, 2.8, 5.9, 4.9}; final long time = 1491946585000000000L; - DateTime[] date = { - new DateTime(time + DateTimeUtils.DAY * 1), - new DateTime(time + DateTimeUtils.DAY * 2), - new DateTime(time + DateTimeUtils.DAY * 3), - new DateTime(time + DateTimeUtils.DAY * 4)}; + Instant[] instants = { + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 1), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 2), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 3), + DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 4)}; final Number[] open = {3, 4, 3, 5}; final Number[] high = {5, 6, 5, 7}; @@ -40,9 +40,9 @@ public static void main(String[] args) { if (testOHLC) { fig = FigureFactory.figure() - .plot("S1", date, y1).plotStyle("Line") + .plot("S1", instants, y1).plotStyle("Line") .twin() - .ohlcPlot("S2", date, open, high, low, close).plotStyle("OHLC"); + .ohlcPlot("S2", instants, open, high, low, close).plotStyle("OHLC"); } else { fig = FigureFactory.figure() .errorBarXY("S1", x1, xLow, xHigh, y1, yLow, yHigh).plotStyle("bar").pointsVisible(true); diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYTable.java b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYTable.java index 862fe22b4b5..ae49e023d11 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYTable.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYTable.java @@ -15,9 +15,9 @@ public class SimpleXYTable { public static void main(String[] args) { - Table t = TableTools.emptyTable(10).updateView("Timestamp = new DateTime(i * HOUR)", "Open = i", + Table t = TableTools.emptyTable(10).updateView("Timestamp = DateTimeUtils.epochNanosToInstant(i * HOUR)", "Open = i", "High = i + 2", "Low = i - 2", "Close = i + 1", "By = i % 5"); - Table t2 = TableTools.emptyTable(5000).updateView("Timestamp = new DateTime(0) + (i * HOUR)", + Table t2 = TableTools.emptyTable(5000).updateView("Timestamp = DateTimeUtils.epochNanosToInstant(0) + (i * HOUR)", "Open = i + 100", "High = i + 2 + 100", "Low = i - 2 + 100", "Close = i + 1 + 100", "By = i % 5"); final Figure f = diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/plotting_samples.groovy b/Plot/src/test/java/io/deephaven/plot/example_plots/plotting_samples.groovy index 20907a01470..96739941172 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/plotting_samples.groovy +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/plotting_samples.groovy @@ -4,8 +4,10 @@ //auto imported -import io.deephaven.time.DateTime import io.deephaven.engine.util.TableTools +import io.deephaven.time.DateTimeUtils + +import java.time.Instant import static io.deephaven.plot.colors.ColorMaps.heatMap import static io.deephaven.plot.colors.ColorMaps.rangeMap @@ -18,10 +20,10 @@ import static io.deephaven.plot.colors.ColorMaps.rangeMap time = 1491946585000000000L //Sample plot OHLCChart -date = [new DateTime(time + DAY * 1), - new DateTime(time + DAY * 2), - new DateTime(time + DAY * 3), - new DateTime(time + DAY * 4)] as DateTime[] +date = [DateTimeUtils.epochNanosToInstant(time + DAY * 1), + DateTimeUtils.epochNanosToInstant(time + DAY * 2), + DateTimeUtils.epochNanosToInstant(time + DAY * 3), + DateTimeUtils.epochNanosToInstant(time + DAY * 4)] as Instant[] open = [3, 4, 3, 5]as Number[] high = [5, 6, 5, 7]as Number[] low = [2, 3, 1, 4]as Number[] @@ -43,64 +45,64 @@ darkBlue = java.awt.Color.decode("#1f77b4") lighterRed = colorRGB(red.getRed(), red.getGreen(), red.getBlue(), 50) lighterDarkBlue = colorRGB(darkBlue.getRed(), darkBlue.getGreen(), darkBlue.getBlue(), 100) date1 = [ - new DateTime(time + DAY * 2), - new DateTime(time + DAY * 4), - new DateTime(time + DAY * 5), - new DateTime(time + DAY * 8), - new DateTime(time + DAY * 9), - new DateTime(time + DAY * 11), - new DateTime(time + DAY * 12), - new DateTime(time + DAY * 13), - new DateTime(time + DAY * 14), - new DateTime(time + DAY * 15), - new DateTime(time + DAY * 18), - new DateTime(time + DAY * 19), - new DateTime(time + DAY * 21), - new DateTime(time + DAY * 22), - new DateTime(time + DAY * 23), - new DateTime(time + DAY * 24), - new DateTime(time + DAY * 25), - new DateTime(time + DAY * 28), - new DateTime(time + DAY * 30), - new DateTime(time + DAY * 31), - new DateTime(time + DAY * 32), - new DateTime(time + DAY * 33), - new DateTime(time + DAY * 36), - new DateTime(time + DAY * 38), - new DateTime(time + DAY * 40), - new DateTime(time + DAY * 43), - new DateTime(time + DAY * 44), - new DateTime(time + DAY * 46)] as DateTime[] -date3 = [new DateTime(time + DAY), - new DateTime(time + DAY * 3), - new DateTime(time + DAY * 4), - new DateTime(time + DAY * 6), - new DateTime(time + DAY * 8), - new DateTime(time + DAY * 10), - new DateTime(time + DAY * 11), - new DateTime(time + DAY * 13), - new DateTime(time + DAY * 15), - new DateTime(time + DAY * 17), - new DateTime(time + DAY * 18), - new DateTime(time + DAY * 19), - new DateTime(time + DAY * 20), - new DateTime(time + DAY * 21), - new DateTime(time + DAY * 23), - new DateTime(time + DAY * 24), - new DateTime(time + DAY * 26), - new DateTime(time + DAY * 27), - new DateTime(time + DAY * 28), - new DateTime(time + DAY * 30), - new DateTime(time + DAY * 32), - new DateTime(time + DAY * 33), - new DateTime(time + DAY * 34), - new DateTime(time + DAY * 36), - new DateTime(time + DAY * 38), - new DateTime(time + DAY * 40), - new DateTime(time + DAY * 42), - new DateTime(time + DAY * 43), - new DateTime(time + DAY * 44), - new DateTime(time + DAY * 46)] as DateTime[] + DateTimeUtils.epochNanosToInstant(time + DAY * 2), + DateTimeUtils.epochNanosToInstant(time + DAY * 4), + DateTimeUtils.epochNanosToInstant(time + DAY * 5), + DateTimeUtils.epochNanosToInstant(time + DAY * 8), + DateTimeUtils.epochNanosToInstant(time + DAY * 9), + DateTimeUtils.epochNanosToInstant(time + DAY * 11), + DateTimeUtils.epochNanosToInstant(time + DAY * 12), + DateTimeUtils.epochNanosToInstant(time + DAY * 13), + DateTimeUtils.epochNanosToInstant(time + DAY * 14), + DateTimeUtils.epochNanosToInstant(time + DAY * 15), + DateTimeUtils.epochNanosToInstant(time + DAY * 18), + DateTimeUtils.epochNanosToInstant(time + DAY * 19), + DateTimeUtils.epochNanosToInstant(time + DAY * 21), + DateTimeUtils.epochNanosToInstant(time + DAY * 22), + DateTimeUtils.epochNanosToInstant(time + DAY * 23), + DateTimeUtils.epochNanosToInstant(time + DAY * 24), + DateTimeUtils.epochNanosToInstant(time + DAY * 25), + DateTimeUtils.epochNanosToInstant(time + DAY * 28), + DateTimeUtils.epochNanosToInstant(time + DAY * 30), + DateTimeUtils.epochNanosToInstant(time + DAY * 31), + DateTimeUtils.epochNanosToInstant(time + DAY * 32), + DateTimeUtils.epochNanosToInstant(time + DAY * 33), + DateTimeUtils.epochNanosToInstant(time + DAY * 36), + DateTimeUtils.epochNanosToInstant(time + DAY * 38), + DateTimeUtils.epochNanosToInstant(time + DAY * 40), + DateTimeUtils.epochNanosToInstant(time + DAY * 43), + DateTimeUtils.epochNanosToInstant(time + DAY * 44), + DateTimeUtils.epochNanosToInstant(time + DAY * 46)] as Instant[] +date3 = [DateTimeUtils.epochNanosToInstant(time + DAY), + DateTimeUtils.epochNanosToInstant(time + DAY * 3), + DateTimeUtils.epochNanosToInstant(time + DAY * 4), + DateTimeUtils.epochNanosToInstant(time + DAY * 6), + DateTimeUtils.epochNanosToInstant(time + DAY * 8), + DateTimeUtils.epochNanosToInstant(time + DAY * 10), + DateTimeUtils.epochNanosToInstant(time + DAY * 11), + DateTimeUtils.epochNanosToInstant(time + DAY * 13), + DateTimeUtils.epochNanosToInstant(time + DAY * 15), + DateTimeUtils.epochNanosToInstant(time + DAY * 17), + DateTimeUtils.epochNanosToInstant(time + DAY * 18), + DateTimeUtils.epochNanosToInstant(time + DAY * 19), + DateTimeUtils.epochNanosToInstant(time + DAY * 20), + DateTimeUtils.epochNanosToInstant(time + DAY * 21), + DateTimeUtils.epochNanosToInstant(time + DAY * 23), + DateTimeUtils.epochNanosToInstant(time + DAY * 24), + DateTimeUtils.epochNanosToInstant(time + DAY * 26), + DateTimeUtils.epochNanosToInstant(time + DAY * 27), + DateTimeUtils.epochNanosToInstant(time + DAY * 28), + DateTimeUtils.epochNanosToInstant(time + DAY * 30), + DateTimeUtils.epochNanosToInstant(time + DAY * 32), + DateTimeUtils.epochNanosToInstant(time + DAY * 33), + DateTimeUtils.epochNanosToInstant(time + DAY * 34), + DateTimeUtils.epochNanosToInstant(time + DAY * 36), + DateTimeUtils.epochNanosToInstant(time + DAY * 38), + DateTimeUtils.epochNanosToInstant(time + DAY * 40), + DateTimeUtils.epochNanosToInstant(time + DAY * 42), + DateTimeUtils.epochNanosToInstant(time + DAY * 43), + DateTimeUtils.epochNanosToInstant(time + DAY * 44), + DateTimeUtils.epochNanosToInstant(time + DAY * 46)] as Instant[] y1 = [100, 102, 98, @@ -236,14 +238,14 @@ SimpleHistoTableChart = figure().figureTitle("Histogram").histPlot("Histogram", //////////////////////////////////////////////////////////////////////////////////////////////////// //Sample Time Series Plot -x1 = [new DateTime(time), - new DateTime(time + MINUTE), - new DateTime(time + 2 * MINUTE), - new DateTime(time + 3 * MINUTE)] as DateTime[] +x1 = [DateTimeUtils.epochNanosToInstant(time), + DateTimeUtils.epochNanosToInstant(time + MINUTE), + DateTimeUtils.epochNanosToInstant(time + 2 * MINUTE), + DateTimeUtils.epochNanosToInstant(time + 3 * MINUTE)] as Instant[] y1 = [2, 3, 1, 9] as Number[] -x2 = [new DateTime(time + MINUTE), - new DateTime(time + (3 * MINUTE)), - new DateTime(time + (4 * MINUTE))] as DateTime[] +x2 = [DateTimeUtils.epochNanosToInstant(time + MINUTE), + DateTimeUtils.epochNanosToInstant(time + (3 * MINUTE)), + DateTimeUtils.epochNanosToInstant(time + (4 * MINUTE))] as Instant[] y2 = [1.3, 3.2, 3.4] as Number[] SimpleTsDBDatePlotChart = figure().figureTitle("Time Series") .plot("S1", x1,y1) @@ -513,19 +515,19 @@ LivePlot2 = figure().updateInterval(500) //business transform -x = new DateTime[500] +x = new Instant[500] y = new double[500] now = 1493305755000000000L for(ii = 0; ii < 250; ii++) { now = now + MINUTE - x[ii] = new DateTime(now) + x[ii] = DateTimeUtils.epochNanosToInstant(now) y[ii] = Math.sin(ii); } now = 1493305755000000000L + DAY for(ii = 250; ii < x.length; ii++) { now = now + MINUTE - x[ii] = new DateTime(now) + x[ii] = DateTimeUtils.epochNanosToInstant(now) y[ii] = Math.sin(ii) } diff --git a/Plot/src/test/java/io/deephaven/plot/util/TestArgumentValidations.java b/Plot/src/test/java/io/deephaven/plot/util/TestArgumentValidations.java index 6a5f9dc96e9..aa0a63bce14 100644 --- a/Plot/src/test/java/io/deephaven/plot/util/TestArgumentValidations.java +++ b/Plot/src/test/java/io/deephaven/plot/util/TestArgumentValidations.java @@ -3,17 +3,17 @@ */ package io.deephaven.plot.util; - import io.deephaven.base.testing.BaseArrayTestCase; -import io.deephaven.time.DateTime; import io.deephaven.gui.color.Color; import io.deephaven.plot.datasets.data.IndexableNumericData; import io.deephaven.plot.datasets.data.IndexableNumericDataArrayInt; import io.deephaven.plot.util.tables.TableHandle; import io.deephaven.engine.table.Table; import io.deephaven.engine.util.TableTools; +import io.deephaven.time.DateTimeUtils; import junit.framework.TestCase; +import java.time.Instant; import java.util.Date; public class TestArgumentValidations extends BaseArrayTestCase { @@ -29,7 +29,7 @@ public void testArgumentValidations() { final int[] ints = {1}; final IndexableNumericData intData = new IndexableNumericDataArrayInt(ints, null); final IndexableNumericData intData2 = new IndexableNumericDataArrayInt(new int[] {2, 3}, null); - final DateTime[] dates = {new DateTime(1)}; + final Instant[] dates = {DateTimeUtils.epochNanosToInstant(1)}; final Color[] colors = {new Color(1)}; final Table table = TableTools.newTable( TableTools.col(stringColumn, NON_NULL), @@ -98,12 +98,12 @@ public void testArgumentValidations() { assertTrue(e.getMessage().contains(INVALID)); } - assertTrue(ArgumentValidations.isTime(DateTime.class, null)); + assertTrue(ArgumentValidations.isTime(Instant.class, null)); assertTrue(ArgumentValidations.isTime(Date.class, null)); assertFalse(ArgumentValidations.isTime(int.class, null)); assertFalse(ArgumentValidations.isTime(Double.class, null)); - assertTrue(ArgumentValidations.isNumericOrTime(DateTime.class, null)); + assertTrue(ArgumentValidations.isNumericOrTime(Instant.class, null)); assertTrue(ArgumentValidations.isNumericOrTime(Date.class, null)); assertTrue(ArgumentValidations.isNumericOrTime(int.class, null)); assertTrue(ArgumentValidations.isNumericOrTime(Double.class, null)); diff --git a/Plot/src/test/java/io/deephaven/plot/util/tables/TestColumnHandlerFactory.java b/Plot/src/test/java/io/deephaven/plot/util/tables/TestColumnHandlerFactory.java index 838fbb6a7e0..c5c23d0fe00 100644 --- a/Plot/src/test/java/io/deephaven/plot/util/tables/TestColumnHandlerFactory.java +++ b/Plot/src/test/java/io/deephaven/plot/util/tables/TestColumnHandlerFactory.java @@ -5,13 +5,14 @@ import io.deephaven.base.testing.BaseArrayTestCase; import io.deephaven.plot.errors.PlotIllegalArgumentException; -import io.deephaven.time.DateTime; import io.deephaven.gui.color.Color; import io.deephaven.gui.color.Paint; import io.deephaven.engine.table.Table; import io.deephaven.engine.util.TableTools; +import io.deephaven.time.DateTimeUtils; import junit.framework.TestCase; +import java.time.Instant; import java.util.Date; import static io.deephaven.util.QueryConstants.*; @@ -29,8 +30,8 @@ public class TestColumnHandlerFactory extends BaseArrayTestCase { private final Float[] Floats = {null, 2f, 3f}; private final Double[] Doubles = {null, 2d, 3d}; private final Number[] Numbers = {null, 2, 3}; - private final Date[] Dates = {null, new Date(1), new Date(2)}; - private final DateTime[] DateTimes = {null, new DateTime(1), new DateTime(2)}; + private final Date[] dates = {null, new Date(1), new Date(2)}; + private final Instant[] instants = {null, DateTimeUtils.epochNanosToInstant(1), DateTimeUtils.epochNanosToInstant(2)}; private final Paint[] paints = {null, new Color(100, 0, 0), new Color(0, 100, 0)}; private final String[] strings = {"A", "B", "C"}; private final Table table = TableTools.newTable( @@ -45,14 +46,14 @@ public class TestColumnHandlerFactory extends BaseArrayTestCase { TableTools.col("Floats", Floats), TableTools.col("Doubles", Doubles), TableTools.col("Numbers", Numbers), - TableTools.col("Dates", Dates), - TableTools.col("DateTimes", DateTimes), + TableTools.col("Dates", dates), + TableTools.col("Instants", instants), TableTools.col("Paints", paints), TableTools.col("Strings", strings)).ungroup(); private final TableHandle tableHandle = new TableHandle(table, "ints", "floats", "longs", "doubles", "shorts", "Shorts", "Integers", "Longs", "Floats", "Doubles", - "Numbers", "Dates", "DateTimes", "Paints", "Strings"); + "Numbers", "Dates", "Instants", "Paints", "Strings"); public void testTypeClassification() { @@ -113,8 +114,8 @@ public void testNumericColumnHandlerHandle() { handler = ColumnHandlerFactory.newNumericHandler(tableHandle, "Dates", null); columnHandlerTest(ColumnHandlerFactory.TypeClassification.TIME, "Dates", Date.class, handler); - handler = ColumnHandlerFactory.newNumericHandler(tableHandle, "DateTimes", null); - columnHandlerTest(ColumnHandlerFactory.TypeClassification.TIME, "DateTimes", DateTime.class, handler); + handler = ColumnHandlerFactory.newNumericHandler(tableHandle, "Instants", null); + columnHandlerTest(ColumnHandlerFactory.TypeClassification.TIME, "Instants", Instant.class, handler); handler.getTableHandle(); handler = ColumnHandlerFactory.newNumericHandler(tableHandle, "Paints", null); @@ -193,8 +194,8 @@ public void testNumericColumnHandlerTable() { handler = ColumnHandlerFactory.newNumericHandler(table, "Dates", null); columnHandlerTest(ColumnHandlerFactory.TypeClassification.TIME, "Dates", Date.class, handler); - handler = ColumnHandlerFactory.newNumericHandler(table, "DateTimes", null); - columnHandlerTest(ColumnHandlerFactory.TypeClassification.TIME, "DateTimes", DateTime.class, handler); + handler = ColumnHandlerFactory.newNumericHandler(table, "Instants", null); + columnHandlerTest(ColumnHandlerFactory.TypeClassification.TIME, "Instants", Instant.class, handler); try { handler.getTableHandle(); @@ -390,11 +391,11 @@ private void columnHandlerTest(ColumnHandlerFactory.TypeClassification type, Str assertNull(handler.get(0)); for (int i = 1; i < doubles.length; i++) { if (clazz.equals(Date.class)) { - assertEquals(Dates[i].getTime(), ((Date) handler.get(i)).getTime()); - assertEquals((double) Dates[i].getTime() * 1000000, handler.getDouble(i)); - } else if (clazz.equals(DateTime.class)) { - assertEquals(DateTimes[i], handler.get(i)); - assertEquals((double) DateTimes[i].getNanos(), handler.getDouble(i)); + assertEquals(dates[i].getTime(), ((Date) handler.get(i)).getTime()); + assertEquals((double) dates[i].getTime() * 1000000, handler.getDouble(i)); + } else if (clazz.equals(Instant.class)) { + assertEquals(instants[i], handler.get(i)); + assertEquals((double) DateTimeUtils.epochNanos(instants[i]), handler.getDouble(i)); } else { assertEquals(doubles[i], handler.getDouble(i)); if (Number.class.isAssignableFrom(handler.get(i).getClass())) { diff --git a/Util/src/main/java/io/deephaven/util/type/TypeUtils.java b/Util/src/main/java/io/deephaven/util/type/TypeUtils.java index a67f5b9d1d8..fad8a04ffd9 100644 --- a/Util/src/main/java/io/deephaven/util/type/TypeUtils.java +++ b/Util/src/main/java/io/deephaven/util/type/TypeUtils.java @@ -514,7 +514,7 @@ public static boolean isCharacter(@NotNull final Class c) { } /** - * Whether the class is a DateTime, ZonedDateTime, or Instant. + * Whether the class is an {@link Instant}, a {@link ZonedDateTime}, or annotated as {@link IsDateTime}. * * @param type The class. * @return true if the type is a DateTime, {@link java.time.ZonedDateTime} or {@link Instant}. diff --git a/debezium/scripts/demo.py b/debezium/scripts/demo.py index dbe5a0ef069..9f2a6a23f62 100644 --- a/debezium/scripts/demo.py +++ b/debezium/scripts/demo.py @@ -190,4 +190,4 @@ def make_cdc_table(table_name:str): agg.count_('total'), agg.max_(['max_received_at = received_at']) ]) \ - .update(['dt_ms = (DateTime.now() - max_received_at)/1_000_000.0']) + .update(['dt_ms = (XYZTimeUtils.now() - max_received_at)/1_000_000.0']) diff --git a/debezium/scripts/sample_dt.py b/debezium/scripts/sample_dt.py index b05f3d28bbf..cb480cc870f 100644 --- a/debezium/scripts/sample_dt.py +++ b/debezium/scripts/sample_dt.py @@ -4,7 +4,7 @@ import sys def onUpdate(added_unused, modified_unused, deleted_unused): - timestamp = dt.datetime.now().astimezone().isoformat() + timestamp = dt.XYZTimeUtils.now().astimezone().isoformat() total = pageviews_summary.j_table.getColumn('total').get(0) max_received_at = pageviews_summary.j_table.getColumn('max_received_at').get(0) dt_ms = pageviews_summary.j_table.getColumn('dt_ms').get(0) diff --git a/engine/api/src/main/java/io/deephaven/engine/table/ColumnDefinition.java b/engine/api/src/main/java/io/deephaven/engine/table/ColumnDefinition.java index d511839a79f..9b22c1e7d8a 100644 --- a/engine/api/src/main/java/io/deephaven/engine/table/ColumnDefinition.java +++ b/engine/api/src/main/java/io/deephaven/engine/table/ColumnDefinition.java @@ -7,7 +7,6 @@ import io.deephaven.base.log.LogOutputAppendable; import io.deephaven.io.log.impl.LogOutputStringImpl; import io.deephaven.vector.*; -import io.deephaven.time.DateTime; import io.deephaven.qst.column.header.ColumnHeader; import io.deephaven.qst.type.ArrayType; import io.deephaven.qst.type.BooleanType; @@ -30,6 +29,7 @@ import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import java.time.Instant; import java.util.List; import java.util.Objects; @@ -95,8 +95,8 @@ public static ColumnDefinition ofString(@NotNull final String name) { return new ColumnDefinition<>(name, String.class); } - public static ColumnDefinition ofTime(@NotNull final String name) { - return new ColumnDefinition<>(name, DateTime.class); + public static ColumnDefinition ofTime(@NotNull final String name) { + return new ColumnDefinition<>(name, Instant.class); } public static ColumnDefinition of(String name, Type type) { diff --git a/engine/api/src/main/java/io/deephaven/engine/table/Table.java b/engine/api/src/main/java/io/deephaven/engine/table/Table.java index dadce5b3af8..685f1e8299e 100644 --- a/engine/api/src/main/java/io/deephaven/engine/table/Table.java +++ b/engine/api/src/main/java/io/deephaven/engine/table/Table.java @@ -372,15 +372,15 @@ public interface Table extends * @param nanosColumnName Name of nanos column * @return The new table, constructed as explained above. */ - @ConcurrentMethod - Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName); +// @ConcurrentMethod +// Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName); /** * @param columnName name of column to convert from DateTime to nanos * @return The result of dateTimeColumnAsNanos(columnName, columnName). */ - @ConcurrentMethod - Table dateTimeColumnAsNanos(String columnName); +// @ConcurrentMethod +// Table dateTimeColumnAsNanos(String columnName); // ----------------------------------------------------------------------------------------------------------------- // Slice Operations diff --git a/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/MatchFilterBenchmark.java b/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/MatchFilterBenchmark.java index a4ee3f4020d..b47b0737404 100644 --- a/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/MatchFilterBenchmark.java +++ b/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/MatchFilterBenchmark.java @@ -5,7 +5,6 @@ import io.deephaven.engine.table.Table; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.table.impl.select.*; import io.deephaven.benchmarking.*; @@ -15,6 +14,7 @@ import org.openjdk.jmh.runner.RunnerException; import java.io.IOException; +import java.time.Instant; import java.util.ArrayList; import java.util.List; import java.util.concurrent.TimeUnit; @@ -76,8 +76,8 @@ public void setupEnv(BenchmarkParams params) { builder.setSeed(0xDEADBEEF) .addColumn(BenchmarkTools.stringCol("PartCol", 4, 5, 7, 0xFEEDBEEF)); - final DateTime startTime = DateTimeUtils.parseDateTime("2019-01-01T12:00:00 NY"); - final DateTime endTime = DateTimeUtils.parseDateTime("2019-01-01T12:00:00.000001 NY"); + final Instant startTime = DateTimeUtils.parseInstant("2019-01-01T12:00:00 NY"); + final Instant endTime = DateTimeUtils.parseInstant("2019-01-01T12:00:00.000001 NY"); switch (filterCol) { case "L1": @@ -90,7 +90,7 @@ public void setupEnv(BenchmarkParams params) { builder.addColumn(BenchmarkTools.stringCol("Symbol", 1000, 1, 10, 0)); break; case "Timestamp": - builder.addColumn(BenchmarkTools.dateCol("Timestamp", startTime, endTime)); + builder.addColumn(BenchmarkTools.instantCol("Timestamp", startTime, endTime)); break; } diff --git a/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/RangeFilterBenchmark.java b/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/RangeFilterBenchmark.java index 60b52496c9b..c435bfe2f68 100644 --- a/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/RangeFilterBenchmark.java +++ b/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/RangeFilterBenchmark.java @@ -5,7 +5,6 @@ import io.deephaven.engine.table.Table; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.table.impl.select.*; import io.deephaven.benchmarking.*; @@ -14,6 +13,7 @@ import org.openjdk.jmh.infra.BenchmarkParams; import java.io.IOException; +import java.time.Instant; import java.util.concurrent.TimeUnit; import java.util.function.Function; @@ -71,8 +71,8 @@ public void setupEnv(BenchmarkParams params) { builder.setSeed(0xDEADBEEF) .addColumn(BenchmarkTools.stringCol("PartCol", 4, 5, 7, 0xFEEDBEEF)); - final DateTime startTime = DateTimeUtils.parseDateTime("2019-01-01T12:00:00 NY"); - final DateTime endTime = DateTimeUtils.parseDateTime("2019-12-31T12:00:00 NY"); + final Instant startTime = DateTimeUtils.parseInstant("2019-01-01T12:00:00 NY"); + final Instant endTime = DateTimeUtils.parseInstant("2019-12-31T12:00:00 NY"); switch (filterCol) { case "D1": @@ -88,12 +88,12 @@ public void setupEnv(BenchmarkParams params) { builder.addColumn(BenchmarkTools.numberCol("I1", int.class, -10_000_000, 10_000_000)); break; case "Timestamp": - builder.addColumn(BenchmarkTools.dateCol("Timestamp", startTime, endTime)); + builder.addColumn(BenchmarkTools.instantCol("Timestamp", startTime, endTime)); break; } if (filterCol.equals("Timestamp")) { - final DateTime lowerBound, upperBound; + final Instant lowerBound, upperBound; if (selectivity == 100) { upperBound = endTime; lowerBound = startTime; @@ -101,16 +101,16 @@ public void setupEnv(BenchmarkParams params) { lowerBound = DateTimeUtils.plus(endTime, 1000_000_000L); upperBound = DateTimeUtils.plus(lowerBound, 1000_000_00L); } else { - final long midpoint = (startTime.getNanos() + endTime.getNanos()) / 2; - final long range = (endTime.getNanos() - startTime.getNanos()); - lowerBound = DateTimeUtils.epochNanosToDateTime(midpoint - (long) (range * (selectivity / 100.0))); - upperBound = DateTimeUtils.epochNanosToDateTime(midpoint + (long) (range * (selectivity / 100.0))); + final long midpoint = (DateTimeUtils.epochNanos(startTime) + DateTimeUtils.epochNanos(endTime)) / 2; + final long range = (DateTimeUtils.epochNanos(endTime) - DateTimeUtils.epochNanos(startTime)); + lowerBound = DateTimeUtils.epochNanosToInstant(midpoint - (long) (range * (selectivity / 100.0))); + upperBound = DateTimeUtils.epochNanosToInstant(midpoint + (long) (range * (selectivity / 100.0))); } assert lowerBound != null; assert upperBound != null; - rangeFilter = new DateTimeRangeFilter(filterCol, lowerBound, upperBound); + rangeFilter = new InstantRangeFilter(filterCol, lowerBound, upperBound); } else { final double lowerBound, upperBound; if (selectivity == 100) { diff --git a/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/RegionedColumnSourceBenchmark.java b/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/RegionedColumnSourceBenchmark.java index c21052b4285..cdae947a7aa 100644 --- a/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/RegionedColumnSourceBenchmark.java +++ b/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/RegionedColumnSourceBenchmark.java @@ -135,7 +135,7 @@ public void setupEnv(BenchmarkParams params) { copier = Copier.Object; break; case "Timestamp": - builder.addColumn(BenchmarkTools.dateCol("Timestamp")); + builder.addColumn(BenchmarkTools.instantCol("Timestamp")); destination = ChunkType.Object.makeWritableChunk(chunkCapacity); copier = Copier.Object; break; diff --git a/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/SingleTableKeyedDateTimeOperations.java b/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/SingleTableKeyedInstantOperations.java similarity index 87% rename from engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/SingleTableKeyedDateTimeOperations.java rename to engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/SingleTableKeyedInstantOperations.java index 2e51e9f5a0d..668549a9101 100644 --- a/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/SingleTableKeyedDateTimeOperations.java +++ b/engine/benchmark/src/benchmark/java/io/deephaven/benchmark/engine/SingleTableKeyedInstantOperations.java @@ -24,7 +24,7 @@ @Measurement(iterations = 1, time = 1) @Timeout(time = 3) @Fork(1) -public class SingleTableKeyedDateTimeOperations { +public class SingleTableKeyedInstantOperations { private TableBenchmarkState state; BenchmarkTable bmTable; @@ -47,7 +47,7 @@ public class SingleTableKeyedDateTimeOperations { private Table inputTable; private String[] keyColumns; - String[] convertToDateTime; + String[] convertToInstant; @Setup(Level.Trial) public void setupEnv(BenchmarkParams params) { @@ -68,19 +68,19 @@ public void setupEnv(BenchmarkParams params) { keyColumns = new String[columnCount]; - convertToDateTime = new String[columnCount + 1]; + convertToInstant = new String[columnCount + 1]; for (int i = 0; i < keyColumns.length; i++) { keyColumns[i] = "InputColumn" + i; - convertToDateTime[i] = keyColumns[i] + " = new DateTime(" + keyColumns[i] + ")"; + convertToInstant[i] = keyColumns[i] + " = DateTimeUtils.epochNanosToInstant(" + keyColumns[i] + ")"; } - convertToDateTime[columnCount] = "Mock"; + convertToInstant[columnCount] = "Mock"; } @Setup(Level.Iteration) public void setupIteration() { state.init(); - inputTable = applySparsity(bmTable.getTable().select(convertToDateTime), tableSize, sparsity, 0); + inputTable = applySparsity(bmTable.getTable().select(convertToInstant), tableSize, sparsity, 0); } @@ -96,7 +96,7 @@ public Table lastBy() { } public static void main(String[] args) { - BenchUtil.run(SingleTableKeyedDateTimeOperations.class); + BenchUtil.run(SingleTableKeyedInstantOperations.class); } } diff --git a/engine/context/src/main/java/io/deephaven/engine/context/QueryScope.java b/engine/context/src/main/java/io/deephaven/engine/context/QueryScope.java index 841a3df3da4..e3e12f62ef2 100644 --- a/engine/context/src/main/java/io/deephaven/engine/context/QueryScope.java +++ b/engine/context/src/main/java/io/deephaven/engine/context/QueryScope.java @@ -3,7 +3,6 @@ */ package io.deephaven.engine.context; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.hash.KeyedObjectHashMap; import io.deephaven.hash.KeyedObjectKey; @@ -15,6 +14,7 @@ import java.lang.reflect.Field; import java.time.Duration; +import java.time.Instant; import java.time.Period; import java.util.*; @@ -92,9 +92,9 @@ private static Object applyValueConversions(final Object value) { && stringValue.charAt(stringValue.length() - 1) == '\'') { final String datetimeString = stringValue.substring(1, stringValue.length() - 1); - final DateTime dateTime = DateTimeUtils.parseDateTimeQuiet(datetimeString); - if (dateTime != null) { - return dateTime; + final Instant instant = DateTimeUtils.parseInstantQuiet(datetimeString); + if (instant != null) { + return instant; } final long localTime = DateTimeUtils.parseNanosQuiet(datetimeString); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/AbstractColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/AbstractColumnSource.java index 4c035e64946..43008b16fa9 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/AbstractColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/AbstractColumnSource.java @@ -15,7 +15,6 @@ import io.deephaven.engine.table.impl.chunkfilter.ChunkFilter; import io.deephaven.engine.table.impl.chunkfilter.ChunkMatchFilterFactory; import io.deephaven.engine.table.impl.sources.UnboxedLongBackedColumnSource; -import io.deephaven.time.DateTime; import io.deephaven.vector.*; import io.deephaven.hash.KeyedObjectHashSet; import io.deephaven.hash.KeyedObjectKey; @@ -286,7 +285,7 @@ public final ColumnSource reinterpret */ protected ColumnSource doReinterpret( @NotNull final Class alternateDataType) { - if (getType() == DateTime.class || getType() == Instant.class || getType() == ZonedDateTime.class) { + if (getType() == Instant.class || getType() == ZonedDateTime.class) { Assert.eq(alternateDataType, "alternateDataType", long.class); // noinspection unchecked return (ColumnSource) new UnboxedLongBackedColumnSource<>(this); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/BucketingContext.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/BucketingContext.java index fa868276e76..a1f10602062 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/BucketingContext.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/BucketingContext.java @@ -6,7 +6,6 @@ import io.deephaven.chunk.attributes.Values; import io.deephaven.engine.table.Table; import io.deephaven.engine.table.MatchPair; -import io.deephaven.time.DateTime; import io.deephaven.util.BooleanUtils; import io.deephaven.util.datastructures.LongSizedDataStructure; import io.deephaven.chunk.util.hashing.ToIntFunctor; @@ -19,6 +18,7 @@ import io.deephaven.util.SafeCloseable; import io.deephaven.util.type.TypeUtils; +import java.time.Instant; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; @@ -72,11 +72,11 @@ class BucketingContext implements SafeCloseable { "Mismatched join types, " + columnsToMatch[ii] + ": " + leftType + " != " + rightType); } - if (leftType == DateTime.class) { + if (leftType == Instant.class) { // noinspection unchecked - leftSources[ii] = ReinterpretUtils.dateTimeToLongSource((ColumnSource) leftSources[ii]); + leftSources[ii] = ReinterpretUtils.instantToLongSource((ColumnSource) leftSources[ii]); // noinspection unchecked - rightSources[ii] = ReinterpretUtils.dateTimeToLongSource((ColumnSource) rightSources[ii]); + rightSources[ii] = ReinterpretUtils.instantToLongSource((ColumnSource) rightSources[ii]); } else if (leftType == boolean.class || leftType == Boolean.class) { // noinspection unchecked leftSources[ii] = ReinterpretUtils.booleanToByteSource((ColumnSource) leftSources[ii]); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/CodecLookup.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/CodecLookup.java index b4c6c717d9c..85d6bb175fa 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/CodecLookup.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/CodecLookup.java @@ -7,7 +7,6 @@ import io.deephaven.vector.ObjectVector; import io.deephaven.vector.Vector; import io.deephaven.stringset.StringSet; -import io.deephaven.time.DateTime; import io.deephaven.util.codec.CodecCache; import io.deephaven.util.codec.ExternalizableCodec; import io.deephaven.util.codec.ObjectCodec; @@ -18,6 +17,7 @@ import java.io.Externalizable; import java.math.BigDecimal; import java.math.BigInteger; +import java.time.Instant; /** * Utility class to concentrate {@link ObjectCodec} lookups. @@ -71,7 +71,7 @@ public static boolean codecRequired(@NotNull final Class dataType, @Nullable private static boolean noCodecRequired(@NotNull final Class dataType) { return dataType == Boolean.class || - dataType == DateTime.class || + dataType == Instant.class || dataType == String.class || // A BigDecimal column maps to a logical type of decimal, with // appropriate precision and scale calculated from column data, diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/ColumnSourceGetDefaults.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/ColumnSourceGetDefaults.java index 2698d09b45e..8f2bbb2153c 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/ColumnSourceGetDefaults.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/ColumnSourceGetDefaults.java @@ -4,13 +4,11 @@ package io.deephaven.engine.table.impl; import io.deephaven.engine.table.ColumnSource; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.Nullable; import java.time.Instant; -import static io.deephaven.time.DateTimeUtils.epochNanosToDateTime; +import static io.deephaven.time.DateTimeUtils.epochNanosToInstant; import static io.deephaven.util.type.TypeUtils.box; /** @@ -392,17 +390,6 @@ default Long get(final long rowKey) { } } - /** - * Default interface for {@link DateTime} {@link ColumnSource} implementations. - */ - public interface ForLongAsDateTime extends LongBacked { - - @Override - default DateTime get(final long rowKey) { - return epochNanosToDateTime(getLong(rowKey)); - } - } - /** * Default interface for {@link Instant} {@link ColumnSource} implementations. */ @@ -410,7 +397,7 @@ public interface ForLongAsInstant extends LongBacked { @Nullable @Override default Instant get(long rowKey) { - return DateTimeUtils.epochNanosToInstant(getLong(rowKey)); + return epochNanosToInstant(getLong(rowKey)); } } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/ImmutableColumnSourceGetDefaults.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/ImmutableColumnSourceGetDefaults.java index 2b006e41056..97fe2f1a9b5 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/ImmutableColumnSourceGetDefaults.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/ImmutableColumnSourceGetDefaults.java @@ -4,7 +4,6 @@ package io.deephaven.engine.table.impl; import io.deephaven.engine.table.ColumnSource; -import io.deephaven.time.DateTime; import java.time.Instant; @@ -71,14 +70,7 @@ public interface ForLong extends ColumnSourceGetDefaults.ForLong, ImmutableColum } /** - * Default interface for immutable {@link DateTime} {@link ColumnSource} implementations. - */ - public interface ForLongAsDateTime - extends ColumnSourceGetDefaults.ForLongAsDateTime, ImmutableColumnSource { - } - - /** - * Default interface for immutable {@link DateTime} {@link ColumnSource} implementations. + * Default interface for immutable {@link Instant} {@link ColumnSource} implementations. */ public interface ForLongAsInstant extends ColumnSourceGetDefaults.ForLongAsInstant, ImmutableColumnSource { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/MutableColumnSourceGetDefaults.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/MutableColumnSourceGetDefaults.java index 372378d6b25..43b9e985909 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/MutableColumnSourceGetDefaults.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/MutableColumnSourceGetDefaults.java @@ -4,13 +4,11 @@ package io.deephaven.engine.table.impl; import io.deephaven.engine.table.ColumnSource; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.Nullable; import java.time.Instant; -import static io.deephaven.time.DateTimeUtils.epochNanosToDateTime; import static io.deephaven.util.type.TypeUtils.box; /** @@ -394,17 +392,6 @@ default Long getPrev(final long rowKey) { } } - /** - * Default interface for mutable {@link DateTime} {@link ColumnSource} implementations. - */ - public interface ForLongAsDateTime extends ColumnSourceGetDefaults.ForLongAsDateTime, LongBacked { - @Nullable - @Override - default DateTime getPrev(final long rowKey) { - return epochNanosToDateTime(getPrevLong(rowKey)); - } - } - /** * Default interface for mutable {@link Instant} {@link ColumnSource} implementations. */ diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/QueryTable.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/QueryTable.java index 361e887f405..25bf18e50a2 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/QueryTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/QueryTable.java @@ -57,7 +57,6 @@ import io.deephaven.vector.Vector; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.updategraph.NotificationQueue; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.perf.QueryPerformanceRecorder; import io.deephaven.engine.util.systemicmarking.SystemicObjectTracker; import io.deephaven.engine.liveness.Liveness; @@ -85,6 +84,7 @@ import java.lang.ref.WeakReference; import java.lang.reflect.Array; +import java.time.Instant; import java.util.*; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ConcurrentHashMap; @@ -864,11 +864,11 @@ public Table moveColumns(int index, boolean moveToEnd, String... columnsToMove) return viewOrUpdateView(Flavor.View, viewColumns); } - @Override - public Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName) { - return viewOrUpdateView(Flavor.UpdateView, - new ReinterpretedColumn<>(dateTimeColumnName, DateTime.class, nanosColumnName, long.class)); - } +// @Override +// public Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName) { +// return viewOrUpdateView(Flavor.UpdateView, +// new ReinterpretedColumn<>(dateTimeColumnName, DateTime.class, nanosColumnName, long.class)); +// } public static class FilteredTable extends QueryTable implements WhereFilter.RecomputeListener { private final QueryTable source; @@ -2368,13 +2368,13 @@ private static void throwColumnConflictMessage(Set left, Set rig * @return the transformed column source, or the original column source if there is not a relevant transformation */ static ColumnSource maybeTransformToPrimitive(final ColumnSource columnSource) { - if (DateTime.class.isAssignableFrom(columnSource.getType())) { + if (Instant.class.isAssignableFrom(columnSource.getType())) { if (columnSource.allowsReinterpret(long.class)) { return columnSource.reinterpret(long.class); } else { // noinspection unchecked - final ColumnSource columnSourceAsDateTime = (ColumnSource) columnSource; - return new DateTimeAsLongColumnSource(columnSourceAsDateTime); + final ColumnSource columnSourceAsInstant = (ColumnSource) columnSource; + return new InstantAsLongColumnSource(columnSourceAsInstant); } } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/TableAdapter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/TableAdapter.java index 60a2aa6b18e..6937e6bb504 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/TableAdapter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/TableAdapter.java @@ -223,10 +223,10 @@ default Table moveColumns(int index, boolean moveToEnd, String... columnsToMove) return throwUnsupported(); } - @Override - default Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName) { - return throwUnsupported(); - } +// @Override +// default Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName) { +// return throwUnsupported(); +// } @Override default Table slice(long firstPositionInclusive, long lastPositionExclusive) { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/TableCreatorImpl.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/TableCreatorImpl.java index b4b4903626b..c57d961f5a0 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/TableCreatorImpl.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/TableCreatorImpl.java @@ -10,7 +10,6 @@ import io.deephaven.engine.table.impl.util.AppendOnlyArrayBackedMutableTable; import io.deephaven.engine.table.impl.util.KeyedArrayBackedMutableTable; import io.deephaven.engine.util.TableTools; -import io.deephaven.time.DateTime; import io.deephaven.qst.TableCreator; import io.deephaven.qst.table.EmptyTable; import io.deephaven.qst.table.InMemoryAppendOnlyInputTable; @@ -25,6 +24,7 @@ import io.deephaven.qst.table.ClockSystem; import io.deephaven.qst.table.TimeTable; +import java.time.Instant; import java.util.Arrays; import java.util.Objects; import java.util.stream.Stream; @@ -64,7 +64,7 @@ public final Table of(EmptyTable emptyTable) { @Override public final Table of(TimeTable timeTable) { final io.deephaven.base.clock.Clock clock = ClockAdapter.of(timeTable.clock()); - final DateTime firstTime = timeTable.startTime().map(DateTime::of).orElse(null); + final Instant firstTime = timeTable.startTime().orElse(null); return TableTools.timeTable(clock, firstTime, timeTable.interval().toNanos()); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/TableDefaults.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/TableDefaults.java index c606cdb5556..f492b7de526 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/TableDefaults.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/TableDefaults.java @@ -307,12 +307,12 @@ default Table moveColumns(int index, String... columnsToMove) { return moveColumns(index, false, columnsToMove); } - @Override - @ConcurrentMethod - @FinalDefault - default Table dateTimeColumnAsNanos(String columnName) { - return dateTimeColumnAsNanos(columnName, columnName); - } +// @Override +// @ConcurrentMethod +// @FinalDefault +// default Table dateTimeColumnAsNanos(String columnName) { +// return dateTimeColumnAsNanos(columnName, columnName); +// } // ----------------------------------------------------------------------------------------------------------------- // Join Operations diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/TimeTable.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/TimeTable.java index 7fa107264fe..4bc2e509227 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/TimeTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/TimeTable.java @@ -24,19 +24,24 @@ import io.deephaven.engine.updategraph.UpdateSourceRegistrar; import io.deephaven.engine.util.TableTools; import io.deephaven.function.Numeric; -import io.deephaven.internal.log.LoggerFactory; -import io.deephaven.io.logger.Logger; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import java.time.Instant; import java.util.Collections; import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; +import static io.deephaven.time.DateTimeUtils.currentClock; +import static io.deephaven.time.DateTimeUtils.epochNanos; +import static io.deephaven.time.DateTimeUtils.epochNanosToInstant; +import static io.deephaven.time.DateTimeUtils.isBefore; +import static io.deephaven.time.DateTimeUtils.minus; +import static io.deephaven.time.DateTimeUtils.parseInstant; +import static io.deephaven.time.DateTimeUtils.parseNanos; +import static io.deephaven.time.DateTimeUtils.plus; import static io.deephaven.util.type.TypeUtils.box; /** @@ -47,12 +52,11 @@ * @implNote The constructor publishes {@code this} to the {@link UpdateGraphProcessor} and thus cannot be subclassed. */ public final class TimeTable extends QueryTable implements Runnable { - private static final Logger log = LoggerFactory.getLogger(TimeTable.class); public static class Builder { private UpdateSourceRegistrar registrar = UpdateGraphProcessor.DEFAULT; private Clock clock; - private DateTime startTime; + private Instant startTime; private long period; private boolean streamTable; @@ -66,13 +70,13 @@ public Builder clock(Clock clock) { return this; } - public Builder startTime(DateTime startTime) { + public Builder startTime(Instant startTime) { this.startTime = startTime; return this; } public Builder startTime(String startTime) { - this.startTime = DateTimeUtils.parseDateTime(startTime); + this.startTime = parseInstant(startTime); return this; } @@ -82,7 +86,7 @@ public Builder period(long period) { } public Builder period(String period) { - this.period = DateTimeUtils.parseNanos(period); + this.period = parseNanos(period); return this; } @@ -93,7 +97,7 @@ public Builder streamTable(boolean streamTable) { public QueryTable build() { return new TimeTable(registrar, - Objects.requireNonNullElse(clock, DateTimeUtils.currentClock()), + Objects.requireNonNullElse(clock, currentClock()), startTime, period, streamTable); } } @@ -104,18 +108,22 @@ public static Builder newBuilder() { private static final String TIMESTAMP = "Timestamp"; private long lastIndex = -1; - private final SyntheticDateTimeSource columnSource; + private final SyntheticInstantSource columnSource; private final Clock clock; private final PerformanceEntry entry; private final boolean isStreamTable; - public TimeTable(UpdateSourceRegistrar registrar, Clock clock, - @Nullable DateTime startTime, long period, boolean isStreamTable) { + public TimeTable( + UpdateSourceRegistrar registrar, + Clock clock, + @Nullable Instant startTime, + long period, + boolean isStreamTable) { super(RowSetFactory.empty().toTracking(), initColumn(startTime, period)); this.isStreamTable = isStreamTable; final String name = isStreamTable ? "TimeTableStream" : "TimeTable"; this.entry = UpdatePerformanceTracker.getInstance().getEntry(name + "(" + startTime + "," + period + ")"); - columnSource = (SyntheticDateTimeSource) getColumnSourceMap().get(TIMESTAMP); + columnSource = (SyntheticInstantSource) getColumnSourceMap().get(TIMESTAMP); this.clock = clock; if (isStreamTable) { setAttribute(Table.STREAM_TABLE_ATTRIBUTE, Boolean.TRUE); @@ -130,11 +138,11 @@ public TimeTable(UpdateSourceRegistrar registrar, Clock clock, registrar.addSource(this); } - private static Map> initColumn(DateTime firstTime, long period) { + private static Map> initColumn(Instant firstTime, long period) { if (period <= 0) { throw new IllegalArgumentException("Invalid time period: " + period + " nanoseconds"); } - return Collections.singletonMap(TIMESTAMP, new SyntheticDateTimeSource(firstTime, period)); + return Collections.singletonMap(TIMESTAMP, new SyntheticInstantSource(firstTime, period)); } @Override @@ -145,15 +153,15 @@ public void run() { private void refresh(final boolean notifyListeners) { entry.onUpdateStart(); try { - final DateTime dateTime = DateTime.of(clock); + final Instant now = clock.instantNanos(); long rangeStart = lastIndex + 1; if (columnSource.startTime == null) { lastIndex = 0; - columnSource.startTime = new DateTime( - Numeric.lowerBin(dateTime.getNanos(), columnSource.period)); - } else if (dateTime.compareTo(columnSource.startTime) >= 0) { + columnSource.startTime = epochNanosToInstant( + Numeric.lowerBin(epochNanos(now), columnSource.period)); + } else if (now.compareTo(columnSource.startTime) >= 0) { lastIndex = Math.max(lastIndex, - DateTimeUtils.minus(dateTime, columnSource.startTime) / columnSource.period); + minus(now, columnSource.startTime) / columnSource.period); } final boolean rowsAdded = rangeStart <= lastIndex; @@ -186,33 +194,33 @@ protected void destroy() { UpdateGraphProcessor.DEFAULT.removeSource(this); } - private static final class SyntheticDateTimeSource extends AbstractColumnSource implements - ImmutableColumnSourceGetDefaults.LongBacked, + private static final class SyntheticInstantSource extends AbstractColumnSource implements + ImmutableColumnSourceGetDefaults.LongBacked, FillUnordered { - private DateTime startTime; + private Instant startTime; private final long period; - private SyntheticDateTimeSource(DateTime startTime, long period) { - super(DateTime.class); + private SyntheticInstantSource(Instant startTime, long period) { + super(Instant.class); this.startTime = startTime; this.period = period; } - private DateTime computeDateTime(long rowKey) { - return DateTimeUtils.plus(startTime, period * rowKey); + private Instant computeInstant(long rowKey) { + return plus(startTime, period * rowKey); } @Override - public DateTime get(long rowKey) { + public Instant get(long rowKey) { if (rowKey < 0) { return null; } - return computeDateTime(rowKey); + return computeInstant(rowKey); } private long computeNanos(long rowKey) { - return startTime.getNanos() + period * rowKey; + return epochNanos(startTime) + period * rowKey; } @Override @@ -234,17 +242,16 @@ public WritableRowSet match(boolean invertMatch, boolean usePrev, boolean caseIn final RowSetBuilderRandom matchingSet = RowSetFactory.builderRandom(); for (Object o : keys) { - if (!(o instanceof DateTime)) { + if (!(o instanceof Instant)) { continue; } - final DateTime key = (DateTime) o; + final Instant key = (Instant) o; - if (key.getNanos() % period != startTime.getNanos() % period - || DateTimeUtils.isBefore(key, startTime)) { + if (epochNanos(key) % period != epochNanos(startTime) % period || isBefore(key, startTime)) { continue; } - matchingSet.addKey(DateTimeUtils.minus(key, startTime) / period); + matchingSet.addKey(minus(key, startTime) / period); } if (invertMatch) { @@ -259,10 +266,10 @@ public WritableRowSet match(boolean invertMatch, boolean usePrev, boolean caseIn } @Override - public Map getValuesMapping(RowSet subRange) { - final Map result = new LinkedHashMap<>(); + public Map getValuesMapping(RowSet subRange) { + final Map result = new LinkedHashMap<>(); subRange.forAllRowKeys( - ii -> result.put(computeDateTime(ii), RowSetFactory.fromKeys(ii))); + ii -> result.put(computeInstant(ii), RowSetFactory.fromKeys(ii))); return result; } @@ -276,7 +283,7 @@ public boolean allowsReinterpret( public ColumnSource doReinterpret( @NotNull Class alternateDataType) { // noinspection unchecked - return (ColumnSource) new SyntheticDateTimeAsLongSource(); + return (ColumnSource) new SyntheticInstantAsLongSource(); } @Override @@ -284,9 +291,9 @@ public void fillChunk( @NotNull final FillContext context, @NotNull final WritableChunk dest, @NotNull final RowSequence rowSequence) { - final WritableObjectChunk objectDest = dest.asWritableObjectChunk(); + final WritableObjectChunk objectDest = dest.asWritableObjectChunk(); dest.setSize(0); - rowSequence.forAllRowKeys(rowKey -> objectDest.add(computeDateTime(rowKey))); + rowSequence.forAllRowKeys(rowKey -> objectDest.add(computeInstant(rowKey))); } @Override @@ -302,7 +309,7 @@ public void fillChunkUnordered( @NotNull final FillContext context, @NotNull final WritableChunk dest, @NotNull final LongChunk keys) { - final WritableObjectChunk objectDest = dest.asWritableObjectChunk(); + final WritableObjectChunk objectDest = dest.asWritableObjectChunk(); objectDest.setSize(keys.size()); for (int ii = 0; ii < keys.size(); ++ii) { @@ -310,7 +317,7 @@ public void fillChunkUnordered( if (rowKey < 0) { objectDest.set(ii, null); } else { - objectDest.set(ii, computeDateTime(rowKey)); + objectDest.set(ii, computeInstant(rowKey)); } } } @@ -328,11 +335,11 @@ public boolean providesFillUnordered() { return true; } - private class SyntheticDateTimeAsLongSource extends AbstractColumnSource implements + private class SyntheticInstantAsLongSource extends AbstractColumnSource implements ImmutableColumnSourceGetDefaults.LongBacked, FillUnordered { - SyntheticDateTimeAsLongSource() { + SyntheticInstantAsLongSource() { super(long.class); } @@ -371,8 +378,8 @@ public void fillPrevChunk( } @Override - public WritableRowSet match(boolean invertMatch, boolean usePrev, boolean caseInsensitive, RowSet selection, - Object... keys) { + public WritableRowSet match( + boolean invertMatch, boolean usePrev, boolean caseInsensitive, RowSet selection, Object... keys) { if (startTime == null) { // there are no valid rows for this column source yet return RowSetFactory.empty(); @@ -386,11 +393,11 @@ public WritableRowSet match(boolean invertMatch, boolean usePrev, boolean caseIn } final long key = (Long) o; - if (key % period != startTime.getNanos() % period || key < startTime.getNanos()) { + if (key % period != epochNanos(startTime) % period || key < epochNanos(startTime)) { continue; } - matchingSet.addKey((key - startTime.getNanos()) / period); + matchingSet.addKey((key - epochNanos(startTime)) / period); } if (invertMatch) { @@ -415,14 +422,14 @@ public Map getValuesMapping(RowSet subRange) { @Override public boolean allowsReinterpret( @NotNull final Class alternateDataType) { - return alternateDataType == DateTime.class; + return alternateDataType == Instant.class; } @Override public ColumnSource doReinterpret( @NotNull Class alternateDataType) { // noinspection unchecked - return (ColumnSource) SyntheticDateTimeSource.this; + return (ColumnSource) SyntheticInstantSource.this; } @Override diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/UnboxedDateTimeWritableSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/UnboxedDateTimeWritableSource.java deleted file mode 100644 index bc04928a30b..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/UnboxedDateTimeWritableSource.java +++ /dev/null @@ -1,38 +0,0 @@ -/** - * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.table.impl; - -import io.deephaven.engine.table.WritableColumnSource; - -import static io.deephaven.util.QueryConstants.NULL_LONG; - -public class UnboxedDateTimeWritableSource extends UnboxedLongBackedColumnSource - implements WritableColumnSource { - private final WritableColumnSource alternateWritableSource; - - public UnboxedDateTimeWritableSource(WritableColumnSource alternateWritableSource) { - super(alternateWritableSource); - this.alternateWritableSource = alternateWritableSource; - } - - @Override - public void ensureCapacity(long capacity, boolean nullFill) { - alternateWritableSource.ensureCapacity(capacity, nullFill); - } - - @Override - public void set(long key, Long value) { - alternateWritableSource.set(key, value); - } - - @Override - public void setNull(long key) { - alternateWritableSource.set(key, NULL_LONG); - } - - @Override - public void set(long key, long value) { - alternateWritableSource.set(key, value); - } -} diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/UnboxedLongBackedColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/UnboxedLongBackedColumnSource.java index 0a41b02096d..973d30b015c 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/UnboxedLongBackedColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/UnboxedLongBackedColumnSource.java @@ -4,14 +4,13 @@ package io.deephaven.engine.table.impl; import io.deephaven.engine.table.ColumnSource; -import io.deephaven.time.DateTime; import org.jetbrains.annotations.NotNull; import java.time.Instant; /** * Reinterpret result for many {@link ColumnSource} implementations that internally represent time values, such as - * {@link DateTime} and {@link Instant}, as {@code long} values. + * {@link Instant}, as {@code long} values. */ public class UnboxedLongBackedColumnSource extends AbstractColumnSource implements MutableColumnSourceGetDefaults.ForLong { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/UncoalescedTable.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/UncoalescedTable.java index 2d579db7bd3..a25acccd92f 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/UncoalescedTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/UncoalescedTable.java @@ -276,11 +276,11 @@ public Table moveColumns(int index, boolean moveToEnd, String... columnsToMove) return coalesce().moveColumns(index, moveToEnd, columnsToMove); } - @Override - @ConcurrentMethod - public Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName) { - return coalesce().dateTimeColumnAsNanos(dateTimeColumnName, nanosColumnName); - } +// @Override +// @ConcurrentMethod +// public Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName) { +// return coalesce().dateTimeColumnAsNanos(dateTimeColumnName, nanosColumnName); +// } @Override @ConcurrentMethod diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/AggregationProcessor.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/AggregationProcessor.java index f5426ab4ddc..6f08d83763f 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/AggregationProcessor.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/AggregationProcessor.java @@ -99,7 +99,7 @@ import io.deephaven.engine.table.impl.ssms.SegmentedSortedMultiSet; import io.deephaven.engine.table.impl.util.freezeby.FreezeByCountOperator; import io.deephaven.engine.table.impl.util.freezeby.FreezeByOperator; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.annotations.FinalDefault; import org.apache.commons.lang3.mutable.MutableBoolean; import org.jetbrains.annotations.NotNull; @@ -107,6 +107,7 @@ import java.math.BigDecimal; import java.math.BigInteger; +import java.time.Instant; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -431,7 +432,7 @@ final void addBasicOperators( final String resultName = pair.output().name(); final ColumnSource rawInputSource = table.getColumnSource(inputName); final Class type = rawInputSource.getType(); - final ColumnSource inputSource = maybeReinterpretDateTimeAsLong(rawInputSource); + final ColumnSource inputSource = maybeReinterpretInstantAsLong(rawInputSource); addOperator(operatorFactory.apply(type, resultName), inputSource, inputName); } @@ -492,7 +493,7 @@ final void addMinOrMaxOperator(final boolean isMin, @NotNull final String inputN @NotNull final String resultName) { final ColumnSource rawInputSource = table.getColumnSource(inputName); final Class type = rawInputSource.getType(); - final ColumnSource inputSource = maybeReinterpretDateTimeAsLong(rawInputSource); + final ColumnSource inputSource = maybeReinterpretInstantAsLong(rawInputSource); final int size = inputSources.size(); for (int ii = 0; ii < size; ii++) { @@ -1378,10 +1379,10 @@ private static AggregationContext makeEmptyAggregationContext(final boolean requ ZERO_LENGTH_CHUNK_SOURCE_WITH_PREV_ARRAY); } - private static ColumnSource maybeReinterpretDateTimeAsLong(@NotNull final ColumnSource inputSource) { + private static ColumnSource maybeReinterpretInstantAsLong(@NotNull final ColumnSource inputSource) { // noinspection unchecked - return inputSource.getType() == DateTime.class - ? ReinterpretUtils.dateTimeToLongSource((ColumnSource) inputSource) + return inputSource.getType() == Instant.class + ? ReinterpretUtils.instantToLongSource((ColumnSource) inputSource) : inputSource; } @@ -1466,7 +1467,7 @@ private static IterativeChunkedAggregationOperator makeMinOrMaxOperator( return new FloatChunkedAddOnlyMinMaxOperator(isMin, name); } else if (type == Integer.class || type == int.class) { return new IntChunkedAddOnlyMinMaxOperator(isMin, name); - } else if (type == Long.class || type == long.class || type == DateTime.class) { + } else if (type == Long.class || type == long.class || type == Instant.class) { return new LongChunkedAddOnlyMinMaxOperator(type, isMin, name); } else if (type == Short.class || type == short.class) { return new ShortChunkedAddOnlyMinMaxOperator(isMin, name); @@ -1503,7 +1504,7 @@ private static IterativeChunkedAggregationOperator makeCountDistinctOperator( return reaggregated ? new IntRollupCountDistinctOperator(name, countNulls) : new IntChunkedCountDistinctOperator(name, countNulls, exposeInternal); - } else if (type == Long.class || type == long.class || type == DateTime.class) { + } else if (type == Long.class || type == long.class || type == Instant.class) { return reaggregated ? new LongRollupCountDistinctOperator(name, countNulls) : new LongChunkedCountDistinctOperator(name, countNulls, exposeInternal); @@ -1544,7 +1545,7 @@ private static IterativeChunkedAggregationOperator makeDistinctOperator( return reaggregated ? new IntRollupDistinctOperator(name, includeNulls) : new IntChunkedDistinctOperator(name, includeNulls, exposeInternal); - } else if (type == Long.class || type == long.class || type == DateTime.class) { + } else if (type == Long.class || type == long.class || type == Instant.class) { return reaggregated ? new LongRollupDistinctOperator(type, name, includeNulls) : new LongChunkedDistinctOperator(type, name, includeNulls, exposeInternal); @@ -1599,12 +1600,12 @@ private static IterativeChunkedAggregationOperator makeUniqueOperator( return reaggregated ? new IntRollupUniqueOperator(resultName, includeNulls, onsAsType, nusAsType) : new IntChunkedUniqueOperator(resultName, includeNulls, exposeInternal, onsAsType, nusAsType); - } else if (type == Long.class || type == long.class || type == DateTime.class) { + } else if (type == Long.class || type == long.class || type == Instant.class) { final long onsAsType; final long nusAsType; - if (type == DateTime.class) { - onsAsType = dateTimeNanosValue(onlyNullsSentinel); - nusAsType = dateTimeNanosValue(nonUniqueSentinel); + if (type == Instant.class) { + onsAsType = instantNanosValue(onlyNullsSentinel); + nusAsType = instantNanosValue(nonUniqueSentinel); } else { onsAsType = UnionObjectUtils.longValue(onlyNullsSentinel); nusAsType = UnionObjectUtils.longValue(nonUniqueSentinel); @@ -1627,8 +1628,8 @@ private static IterativeChunkedAggregationOperator makeUniqueOperator( : new ObjectChunkedUniqueOperator(type, resultName, includeNulls, exposeInternal, onsAsType, nusAsType); } - private static long dateTimeNanosValue(UnionObject obj) { - return obj == null ? NULL_LONG : obj.expect(DateTime.class).getNanos(); + private static long instantNanosValue(UnionObject obj) { + return obj == null ? NULL_LONG : DateTimeUtils.epochNanos(obj.expect(Instant.class)); } private static void checkType(@NotNull final String name, @NotNull final String valueIntent, diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ChunkedOperatorAggregationHelper.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ChunkedOperatorAggregationHelper.java index af3fff909c8..3ad55065a28 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ChunkedOperatorAggregationHelper.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ChunkedOperatorAggregationHelper.java @@ -25,9 +25,6 @@ import io.deephaven.engine.rowset.chunkattributes.OrderedRowKeys; import io.deephaven.engine.rowset.chunkattributes.RowKeys; import io.deephaven.engine.table.impl.remote.ConstructSnapshot; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; -import io.deephaven.util.BooleanUtils; import io.deephaven.engine.table.impl.*; import io.deephaven.engine.table.impl.TableUpdateImpl; import io.deephaven.engine.table.impl.sort.findruns.IntFindRunsKernel; diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/TDigestPercentileOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/TDigestPercentileOperator.java index d750d34da63..d716db5473a 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/TDigestPercentileOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/TDigestPercentileOperator.java @@ -17,10 +17,10 @@ import io.deephaven.engine.table.impl.sources.DoubleArraySource; import io.deephaven.engine.table.impl.sources.ObjectArraySource; import io.deephaven.engine.table.impl.util.cast.ToDoubleCast; -import io.deephaven.time.DateTime; import io.deephaven.util.QueryConstants; import org.jetbrains.annotations.NotNull; +import java.time.Instant; import java.util.Collections; import java.util.LinkedHashMap; import java.util.Map; @@ -67,9 +67,9 @@ public TDigestPercentileOperator(@NotNull Class type, double compression, Str this.digestColumnName = digestColumnName; this.resultNames = resultNames; this.digests = new ObjectArraySource<>(TDigest.class); - final boolean isDateTime = type == DateTime.class; - if (isDateTime) { - throw new UnsupportedOperationException("DateTime is not supported for approximate percentiles."); + final boolean isInstant = type == Instant.class; + if (isInstant) { + throw new UnsupportedOperationException("Instant is not supported for approximate percentiles."); } chunkType = ChunkType.fromElementType(type); resultColumns = new DoubleArraySource[percentiles.length]; diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/SsmBackedColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/SsmBackedColumnSource.java index 7049479c66b..7b02374e894 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/SsmBackedColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/SsmBackedColumnSource.java @@ -8,7 +8,6 @@ import io.deephaven.engine.table.impl.sources.ObjectArraySource; import io.deephaven.engine.table.impl.ssms.SegmentedSortedMultiSet; import io.deephaven.engine.rowset.RowSet; -import org.jetbrains.annotations.NotNull; /** * A {@link ColumnSource} that provides {@link Vector vectors} of type T, backed by a same typed @@ -20,27 +19,6 @@ public interface SsmBackedColumnSource extends ColumnSource { - /** - * Create an appropriate instance for the specified type - * - * @param type - * @return - */ - @SuppressWarnings("rawtypes") - static SsmBackedColumnSource create(@NotNull final Class type) { - if (type == char.class || type == Character.class) { - return new CharSsmBackedSource(); - } /* - * else if(type == byte.class || type == Byte.class) { return new ByteSsmBackedSource(); } else if(type == - * short.class || type == Short.class) { return new ShortSsmBackedSource(); } else if(type == int.class || - * type == Integer.class) { return new IntSsmBackedSource(); } else if(type == long.class || type == - * Long.class || type == DateTime.class) { return new LongSsmBackedSource(); } else if(type == float.class || - * type == Float.class) { return new FloatSsmBackedSource(); } else if(type == double.class || type == - * Double.class) { return new DoubleSsmBackedSource(); } else { return new ObjectSsmBackedSource(type); } - */ - throw new IllegalStateException("NOPE"); - } - ObjectArraySource getUnderlyingSource(); /** diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/locations/impl/PartitionedTableLocationKey.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/locations/impl/PartitionedTableLocationKey.java index 8543e15f987..b4c78d885ff 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/locations/impl/PartitionedTableLocationKey.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/locations/impl/PartitionedTableLocationKey.java @@ -94,7 +94,7 @@ public void format(@NotNull final LogOutput logOutput, @NotNull final Map type) { // Boxed Types // String // BigInt, BigDecimal - // DateTime + // Instant/ZonedDateTime/etc return type.isPrimitive() || io.deephaven.util.type.TypeUtils.isBoxedType(type) || io.deephaven.util.type.TypeUtils.isString(type) diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/remote/ConstructSnapshot.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/remote/ConstructSnapshot.java index 824f8055a14..d53efba60a1 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/remote/ConstructSnapshot.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/remote/ConstructSnapshot.java @@ -22,7 +22,6 @@ import io.deephaven.engine.table.TableDefinition; import io.deephaven.engine.updategraph.NotificationQueue; import io.deephaven.engine.updategraph.WaitNotification; -import io.deephaven.time.DateTime; import io.deephaven.util.datastructures.LongSizedDataStructure; import io.deephaven.engine.liveness.LivenessManager; import io.deephaven.engine.liveness.LivenessScope; @@ -1542,8 +1541,7 @@ public static long estimateSnapshotSize(TableDefinition tableDefinition, BitSet } else if (definition.getDataType() == int.class || definition.getDataType() == float.class) { sizePerRow += 4; } else if (definition.getDataType() == long.class || definition.getDataType() == double.class - || definition.getDataType() == DateTime.class || definition.getDataType() == Instant.class - || definition.getDataType() == ZonedDateTime.class) { + || definition.getDataType() == Instant.class || definition.getDataType() == ZonedDateTime.class) { sizePerRow += 8; } else { switch (definition.getName()) { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/remote/InitialSnapshotTable.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/remote/InitialSnapshotTable.java index 74cea3533ac..c4410b57ee7 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/remote/InitialSnapshotTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/remote/InitialSnapshotTable.java @@ -8,7 +8,6 @@ import io.deephaven.engine.rowset.RowSet; import io.deephaven.engine.rowset.RowSetFactory; import io.deephaven.engine.table.*; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.QueryTable; import io.deephaven.engine.table.impl.sources.ArrayBackedColumnSource; import io.deephaven.engine.table.impl.sources.WritableRedirectedColumnSource; @@ -69,8 +68,9 @@ protected Setter getSetter(final WritableColumnSource source) { return (Setter) (array, arrayIndex, destIndex) -> source.set(destIndex, array[arrayIndex]); } else if (source.getType() == int.class) { return (Setter) (array, arrayIndex, destIndex) -> source.set(destIndex, array[arrayIndex]); - } else if (source.getType() == long.class || source.getType() == DateTime.class - || source.getType() == Instant.class || source.getType() == ZonedDateTime.class) { + } else if (source.getType() == long.class + || source.getType() == Instant.class + || source.getType() == ZonedDateTime.class) { return (Setter) (array, arrayIndex, destIndex) -> source.set(destIndex, array[arrayIndex]); } else if (source.getType() == short.class) { return (Setter) (array, arrayIndex, destIndex) -> source.set(destIndex, array[arrayIndex]); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/DataDrivenReplayer.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/DataDrivenReplayer.java index 9479b6bafe7..2934da6b335 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/DataDrivenReplayer.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/DataDrivenReplayer.java @@ -4,18 +4,21 @@ package io.deephaven.engine.table.impl.replay; import io.deephaven.base.clock.Clock; -import io.deephaven.time.DateTime; +import io.deephaven.base.clock.ClockNanoBase; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.table.ColumnSource; import gnu.trove.list.array.TLongArrayList; import io.deephaven.engine.rowset.RowSet; +import java.time.Instant; + public class DataDrivenReplayer extends Replayer { - private DateTime currentTime; + + private Instant currentTime; private int pos; private long lastTime = -1; - public DataDrivenReplayer(DateTime startTime, DateTime endTime) { + public DataDrivenReplayer(Instant startTime, Instant endTime) { super(startTime, endTime); currentTime = startTime; } @@ -23,7 +26,7 @@ public DataDrivenReplayer(DateTime startTime, DateTime endTime) { TLongArrayList allTimestamp = new TLongArrayList(); @Override - public void registerTimeSource(RowSet rowSet, ColumnSource timestampSource) { + public void registerTimeSource(RowSet rowSet, ColumnSource timestampSource) { long prevValue = -1; if (timestampSource.allowsReinterpret(long.class)) { ColumnSource longColumn = timestampSource.reinterpret(long.class); @@ -35,7 +38,8 @@ public void registerTimeSource(RowSet rowSet, ColumnSource timestampSo } } else { for (RowSet.Iterator iterator = rowSet.iterator(); iterator.hasNext();) { - long currentValue = timestampSource.get(iterator.nextLong()).getNanos(); + Instant instant = timestampSource.get(iterator.nextLong()); + long currentValue = DateTimeUtils.epochNanos(instant); if (currentValue != prevValue) { allTimestamp.add(prevValue = currentValue); } @@ -47,7 +51,7 @@ public void registerTimeSource(RowSet rowSet, ColumnSource timestampSo @Override public void start() { allTimestamp.sort(); - while (pos < allTimestamp.size() && allTimestamp.get(pos) < startTime.getNanos()) { + while (pos < allTimestamp.size() && allTimestamp.get(pos) < DateTimeUtils.epochNanos(startTime)) { pos++; } super.start(); @@ -58,15 +62,15 @@ public void run() { long currentTimeNanos = -1; while (pos < allTimestamp.size()) { currentTimeNanos = allTimestamp.get(pos); - if (currentTimeNanos > lastTime || currentTimeNanos > endTime.getNanos()) { + if (currentTimeNanos > lastTime || currentTimeNanos > DateTimeUtils.epochNanos(endTime)) { break; } pos++; } - if (currentTime.getNanos() > endTime.getNanos() || pos >= allTimestamp.size()) { + if (DateTimeUtils.epochNanos(currentTime) > DateTimeUtils.epochNanos(endTime) || pos >= allTimestamp.size()) { currentTime = endTime; } else { - currentTime = new DateTime(currentTimeNanos); + currentTime = DateTimeUtils.epochNanosToInstant(currentTimeNanos); } lastTime = currentTimeNanos; super.run(); @@ -74,7 +78,7 @@ public void run() { @Override public void setTime(long updatedTime) { - currentTime = DateTimeUtils.epochMillisToDateTime(Math.max(updatedTime, currentTime.getMillis())); + currentTime = DateTimeUtils.epochMillisToInstant(Math.max(updatedTime, currentTime.toEpochMilli())); } @Override @@ -82,10 +86,11 @@ public Clock clock() { return new ClockImpl(); } - private class ClockImpl extends DateTimeClock { + private class ClockImpl extends ClockNanoBase { + @Override - public DateTime currentDateTime() { - return currentTime; + public long currentTimeNanos() { + return DateTimeUtils.epochNanos(currentTime); } } } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/DateTimeClock.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/DateTimeClock.java deleted file mode 100644 index 04a421ba618..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/DateTimeClock.java +++ /dev/null @@ -1,36 +0,0 @@ -package io.deephaven.engine.table.impl.replay; - -import io.deephaven.base.clock.Clock; -import io.deephaven.time.DateTime; - -import java.time.Instant; - -abstract class DateTimeClock implements Clock { - - public abstract DateTime currentDateTime(); - - @Override - public long currentTimeMillis() { - return currentDateTime().getMillis(); - } - - @Override - public long currentTimeMicros() { - return currentDateTime().getMicros(); - } - - @Override - public long currentTimeNanos() { - return currentDateTime().getNanos(); - } - - @Override - public Instant instantNanos() { - return currentDateTime().toInstant(); - } - - @Override - public Instant instantMillis() { - return currentDateTime().toInstant(); - } -} diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/FixedStepReplayer.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/FixedStepReplayer.java index 89ccdf7aa63..e76a56709ed 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/FixedStepReplayer.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/FixedStepReplayer.java @@ -4,14 +4,17 @@ package io.deephaven.engine.table.impl.replay; import io.deephaven.base.clock.Clock; -import io.deephaven.time.DateTime; +import io.deephaven.base.clock.ClockNanoBase; import io.deephaven.time.DateTimeUtils; +import java.time.Instant; + public class FixedStepReplayer extends Replayer { + private long incrementNanos; - private DateTime currentTime; + private Instant currentTime; - public FixedStepReplayer(DateTime startTime, DateTime endTime, long incrementNanos) { + public FixedStepReplayer(Instant startTime, Instant endTime, long incrementNanos) { super(startTime, endTime); this.incrementNanos = incrementNanos; currentTime = startTime; @@ -20,7 +23,7 @@ public FixedStepReplayer(DateTime startTime, DateTime endTime, long incrementNan @Override public void run() { currentTime = DateTimeUtils.plus(currentTime, incrementNanos); - if (currentTime.getNanos() > endTime.getNanos()) { + if (DateTimeUtils.epochNanos(currentTime) > DateTimeUtils.epochNanos(endTime)) { currentTime = endTime; } super.run(); @@ -28,7 +31,7 @@ public void run() { @Override public void setTime(long updatedTime) { - currentTime = DateTimeUtils.epochMillisToDateTime(Math.max(updatedTime, currentTime.getMillis())); + currentTime = DateTimeUtils.epochMillisToInstant(Math.max(updatedTime, currentTime.toEpochMilli())); } @Override @@ -36,10 +39,10 @@ public Clock clock() { return new ClockImpl(); } - private class ClockImpl extends DateTimeClock { + private class ClockImpl extends ClockNanoBase { @Override - public DateTime currentDateTime() { - return currentTime; + public long currentTimeNanos() { + return DateTimeUtils.epochNanos(currentTime); } } } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/QueryReplayGroupedTable.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/QueryReplayGroupedTable.java index 7b4ee746350..b6066f83c58 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/QueryReplayGroupedTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/QueryReplayGroupedTable.java @@ -9,7 +9,6 @@ import io.deephaven.engine.rowset.RowSetFactory; import io.deephaven.engine.rowset.TrackingRowSet; import io.deephaven.engine.table.impl.indexer.RowSetIndexer; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.QueryTable; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.sources.RedirectedColumnSource; @@ -17,6 +16,7 @@ import io.deephaven.engine.table.impl.TupleSourceFactory; import io.deephaven.engine.table.impl.util.*; +import java.time.Instant; import java.util.Arrays; import java.util.LinkedHashMap; import java.util.Map; @@ -42,12 +42,12 @@ private static Map> getResultSources(Map { private final RowSet.Iterator iterator; - private final ColumnSource columnSource; - DateTime lastTime; + private final ColumnSource columnSource; + Instant lastTime; long lastIndex; public final long pos; - private IteratorsAndNextTime(RowSet.Iterator iterator, ColumnSource columnSource, long pos) { + private IteratorsAndNextTime(RowSet.Iterator iterator, ColumnSource columnSource, long pos) { this.iterator = iterator; this.columnSource = columnSource; this.pos = pos; @@ -87,7 +87,7 @@ protected QueryReplayGroupedTable(TrackingRowSet rowSet, Map timeSource = (ColumnSource) input.get(timeColumn); + ColumnSource timeSource = (ColumnSource) input.get(timeColumn); int pos = 0; for (RowSet groupRowSet : grouping.values()) { RowSet.Iterator iterator = groupRowSet.iterator(); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayGroupedFullTable.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayGroupedFullTable.java index e8a906fc82a..609c2caafcd 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayGroupedFullTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayGroupedFullTable.java @@ -9,6 +9,7 @@ import io.deephaven.engine.rowset.TrackingRowSet; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.util.*; +import io.deephaven.time.DateTimeUtils; import java.util.Map; @@ -34,7 +35,7 @@ public void run() { } RowSetBuilderRandom rowSetBuilder = RowSetFactory.builderRandom(); while (!allIterators.isEmpty() - && allIterators.peek().lastTime.getNanos() < replayer.clock().currentTimeNanos()) { + && DateTimeUtils.epochNanos(allIterators.peek().lastTime) < replayer.clock().currentTimeNanos()) { IteratorsAndNextTime currentIt = allIterators.poll(); final long key = redirIndexSize++; rowRedirection.put(key, currentIt.lastIndex); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayLastByGroupedTable.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayLastByGroupedTable.java index 92035710e57..da150be27f3 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayLastByGroupedTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayLastByGroupedTable.java @@ -7,10 +7,11 @@ import io.deephaven.engine.rowset.RowSetBuilderRandom; import io.deephaven.engine.rowset.RowSetFactory; import io.deephaven.engine.rowset.TrackingRowSet; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.util.*; +import io.deephaven.time.DateTimeUtils; +import java.time.Instant; import java.util.Map; public class ReplayLastByGroupedTable extends QueryReplayGroupedTable { @@ -21,7 +22,7 @@ public ReplayLastByGroupedTable(TrackingRowSet rowSet, Map) input.get(timeColumn)); + replayer.registerTimeSource(rowSet, (ColumnSource) input.get(timeColumn)); } @Override @@ -33,7 +34,7 @@ public void run() { RowSetBuilderRandom modifiedBuilder = RowSetFactory.builderRandom(); // List iteratorsToAddBack = new ArrayList<>(allIterators.size()); while (!allIterators.isEmpty() - && allIterators.peek().lastTime.getNanos() < replayer.clock().currentTimeNanos()) { + && DateTimeUtils.epochNanos(allIterators.peek().lastTime) < replayer.clock().currentTimeNanos()) { IteratorsAndNextTime currentIt = allIterators.poll(); rowRedirection.put(currentIt.pos, currentIt.lastIndex); if (getRowSet().find(currentIt.pos) >= 0) { @@ -43,7 +44,7 @@ public void run() { } do { currentIt = currentIt.next(); - } while (currentIt != null && currentIt.lastTime.getNanos() < replayer.clock().currentTimeNanos()); + } while (currentIt != null && DateTimeUtils.epochNanos(currentIt.lastTime) < replayer.clock().currentTimeNanos()); if (currentIt != null) { allIterators.add(currentIt); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayTable.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayTable.java index 83495b5dd46..91462e7e270 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayTable.java @@ -6,12 +6,12 @@ import io.deephaven.base.verify.Require; import io.deephaven.engine.rowset.*; import io.deephaven.engine.table.impl.sources.ReinterpretUtils; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.QueryTable; import io.deephaven.engine.table.ColumnSource; import io.deephaven.util.QueryConstants; import org.jetbrains.annotations.NotNull; +import java.time.Instant; import java.util.Map; public class ReplayTable extends QueryTable implements Runnable { @@ -37,9 +37,9 @@ public ReplayTable( // NB: This will behave incorrectly if our row set or any data in columns can change. Our source table *must* // be static. We also seem to be assuming that timeSource has no null values in rowSet. It would be nice to use // a column iterator for this, but that would upset unit tests by keeping pooled chunks across cycles. - final ColumnSource dateTimeSource = getColumnSource(timeColumn, DateTime.class); - replayer.registerTimeSource(rowSet, dateTimeSource); - nanoTimeSource = ReinterpretUtils.dateTimeToLongSource(dateTimeSource); + final ColumnSource instantSource = getColumnSource(timeColumn, Instant.class); + replayer.registerTimeSource(rowSet, instantSource); + nanoTimeSource = ReinterpretUtils.instantToLongSource(instantSource); rowSetIterator = rowSet.iterator(); setRefreshing(true); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/Replayer.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/Replayer.java index e2779ee2c6a..a0987b0f3e0 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/Replayer.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/Replayer.java @@ -7,14 +7,13 @@ import io.deephaven.base.verify.Assert; import io.deephaven.engine.exceptions.CancellationException; import io.deephaven.engine.table.Table; -import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.rowset.RowSet; import io.deephaven.engine.updategraph.TerminalNotification; import io.deephaven.internal.log.LoggerFactory; import io.deephaven.io.logger.Logger; +import io.deephaven.time.DateTimeUtils; import java.io.IOException; import java.time.Instant; @@ -29,8 +28,8 @@ public class Replayer implements ReplayerInterface, Runnable { private static final Logger log = LoggerFactory.getLogger(Replayer.class); - protected DateTime startTime; - protected DateTime endTime; + protected Instant startTime; + protected Instant endTime; private long deltaNanos = Long.MAX_VALUE; private CopyOnWriteArrayList currentTables = new CopyOnWriteArrayList<>(); private volatile boolean done; @@ -46,7 +45,7 @@ public class Replayer implements ReplayerInterface, Runnable { * @param startTime start time * @param endTime end time */ - public Replayer(DateTime startTime, DateTime endTime) { + public Replayer(Instant startTime, Instant endTime) { this.endTime = endTime; this.startTime = startTime; currentTables.add(this); @@ -57,7 +56,7 @@ public Replayer(DateTime startTime, DateTime endTime) { */ @Override public void start() { - deltaNanos = DateTimeUtils.millisToNanos(System.currentTimeMillis()) - startTime.getNanos(); + deltaNanos = DateTimeUtils.millisToNanos(System.currentTimeMillis()) - DateTimeUtils.epochNanos(startTime); for (Runnable currentTable : currentTables) { UpdateGraphProcessor.DEFAULT.addSource(currentTable); } @@ -80,7 +79,8 @@ public boolean isDone() { */ @Override public void shutdown() throws IOException { - endTime = DateTime.of(clock()); + Clock clock = clock(); + endTime = clock.instantNanos(); if (done) { return; } @@ -166,7 +166,7 @@ public static Clock getClock(final ReplayerInterface replayer) { @Override public void setTime(long updatedTime) { if (deltaNanos == Long.MAX_VALUE) { - startTime = DateTimeUtils.epochMillisToDateTime(updatedTime); + startTime = DateTimeUtils.epochMillisToInstant(updatedTime); } else { long adjustment = updatedTime - clock().currentTimeMillis(); if (adjustment > 0) { @@ -242,7 +242,7 @@ public Table replayGroupedLastBy(Table dataSource, String timeColumn, String... * @param rowSet table row set * @param timestampSource column source containing time information. */ - public void registerTimeSource(RowSet rowSet, ColumnSource timestampSource) { + public void registerTimeSource(RowSet rowSet, ColumnSource timestampSource) { // Does nothing } @@ -252,7 +252,8 @@ public void registerTimeSource(RowSet rowSet, ColumnSource timestampSo @Override public void run() { for (PeriodicTask timerTask : timerTasks) { - timerTask.next(DateTime.of(clock())); + Clock clock = clock(); + timerTask.next(clock.instantNanos()); } if (lastLap) { @@ -262,7 +263,8 @@ public void run() { e.printStackTrace(); } } - if (DateTime.of(clock()).compareTo(endTime) >= 0) { + Clock clock = clock(); + if (clock.instantNanos().compareTo(endTime) >= 0) { lastLap = true; } } @@ -272,7 +274,7 @@ private static class PeriodicTask { private final TimerTask task; private final long delayMillis; private final long periodMillis; - DateTime nextTime = null; + Instant nextTime = null; public PeriodicTask(TimerTask task, long delayMillis, long periodMillis) { this.task = task; @@ -280,11 +282,11 @@ public PeriodicTask(TimerTask task, long delayMillis, long periodMillis) { this.periodMillis = periodMillis; } - public void next(DateTime currentTime) { + public void next(Instant currentTime) { if (nextTime == null) { nextTime = DateTimeUtils.plus(currentTime, DateTimeUtils.millisToNanos(delayMillis)); } else { - if (nextTime.getNanos() < currentTime.getNanos()) { + if (DateTimeUtils.epochNanos(nextTime) < DateTimeUtils.epochNanos(currentTime)) { try { task.run(); nextTime = DateTimeUtils.plus(currentTime, DateTimeUtils.millisToNanos(periodMillis)); @@ -332,20 +334,20 @@ public long currentTimeMicros() { @Override public long currentTimeNanos() { if (deltaNanos == Long.MAX_VALUE) { - return startTime.getNanos(); + return DateTimeUtils.epochNanos(startTime); } final long resultNanos = DateTimeUtils.millisToNanos(System.currentTimeMillis()) - deltaNanos; - return Math.min(resultNanos, endTime.getNanos()); + return Math.min(resultNanos, DateTimeUtils.epochNanos(endTime)); } @Override public Instant instantNanos() { if (deltaNanos == Long.MAX_VALUE) { - return startTime.toInstant(); + return startTime; } final long resultNanos = DateTimeUtils.millisToNanos(System.currentTimeMillis()) - deltaNanos; - if (resultNanos >= endTime.getNanos()) { - return endTime.toInstant(); + if (resultNanos >= DateTimeUtils.epochNanos(endTime)) { + return endTime; } return Instant.ofEpochSecond(0, resultNanos); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ClockFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ClockFilter.java index 7157718b672..36add50c92b 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ClockFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ClockFilter.java @@ -13,13 +13,13 @@ import io.deephaven.engine.table.TableDefinition; import io.deephaven.engine.table.impl.lang.QueryLanguageFunctionUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.updategraph.DynamicNode; import io.deephaven.engine.table.impl.QueryTable; import io.deephaven.engine.table.ColumnSource; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import java.time.Instant; import java.util.Collections; import java.util.List; @@ -66,14 +66,10 @@ public final WritableRowSet filter(@NotNull final RowSet selection, @NotNull fin Require.requirement(DynamicNode.notDynamicOrNotRefreshing(table), "DynamicNode.notDynamicOrNotRefreshing(table)"); - final ColumnSource dateTimeColumnSource = table.getColumnSource(columnName); - // Obviously, column needs to be of date-time values. - Require.requirement(DateTime.class.isAssignableFrom(dateTimeColumnSource.getType()), - "DateTime.class.isAssignableFrom(dateTimeColumnSource.getType())"); - - nanosColumnSource = dateTimeColumnSource.allowsReinterpret(long.class) + final ColumnSource instantColumnSource = table.getColumnSource(columnName, Instant.class); + nanosColumnSource = /*instantColumnSource.allowsReinterpret(long.class) ? table.dateTimeColumnAsNanos(columnName).getColumnSource(columnName) - : table.view(columnName + " = isNull(" + columnName + ") ? NULL_LONG : " + columnName + ".getNanos()") + : */table.view(columnName + " = isNull(" + columnName + ") ? NULL_LONG : " + columnName + ".getNanos()") .getColumnSource(columnName); final WritableRowSet initial = initializeAndGetInitialIndex(selection, fullSet, table); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ConditionFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ConditionFilter.java index 6a5fb8b7175..ea36a4b0115 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ConditionFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ConditionFilter.java @@ -541,7 +541,7 @@ private StringBuilder getClassBody(TableDefinition tableDefinition, TimeLiteralR if (columnType.isPrimitive() && columnType != boolean.class) { chunkType = toTitleCase(columnType.getSimpleName()) + "Chunk"; } else { - // TODO: Reinterpret Boolean and DateTime to byte and long + // TODO: Reinterpret Boolean and Instant to byte and long chunkType = "ObjectChunk"; } classBody.append(indenter).append("final ").append(chunkType).append(" __columnChunk").append(i) diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DhFormulaColumn.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DhFormulaColumn.java index 63f7a27ec4a..dfb845f95cb 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DhFormulaColumn.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DhFormulaColumn.java @@ -31,7 +31,6 @@ import io.deephaven.engine.util.caching.C14nUtil; import io.deephaven.internal.log.LoggerFactory; import io.deephaven.io.logger.Logger; -import io.deephaven.time.DateTime; import io.deephaven.time.TimeLiteralReplacedExpression; import io.deephaven.util.type.TypeUtils; import io.deephaven.vector.ObjectVector; @@ -847,7 +846,7 @@ private static boolean isImmutableType(QueryScopeParam param) { return true; } final Class type = value.getClass(); - if (type == String.class || type == DateTime.class || type == BigInteger.class || type == BigDecimal.class + if (type == String.class || type == BigInteger.class || type == BigDecimal.class || type == Instant.class || type == ZonedDateTime.class || Table.class.isAssignableFrom(type)) { return true; } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DownsampledWhereFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DownsampledWhereFilter.java index 1a48d60cde5..26224441468 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DownsampledWhereFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DownsampledWhereFilter.java @@ -9,17 +9,17 @@ import io.deephaven.engine.rowset.RowSetFactory; import io.deephaven.engine.table.Table; import io.deephaven.engine.table.TableDefinition; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.DynamicNode; import io.deephaven.engine.table.ColumnSource; +import java.time.Instant; import java.util.Collections; import java.util.List; /** * Utilities for downsampling non-ticking time series data within a query. The input table must be sorted by the - * {@link DateTime} column to be used for binning rows. + * {@link Instant} column to be used for binning rows. *

    *

    *

    @@ -49,7 +49,7 @@ public enum SampleOrder { /** * Creates a {@link DownsampledWhereFilter} which can be used in a .where clause to downsample time series rows. * - * @param column {@link DateTime} column to use for filtering. + * @param column {@link Instant} column to use for filtering. * @param binSize Size in nanoseconds for the time bins. Constants like {@link DateTimeUtils#MINUTE} are typically * used. * @param order {@link SampleOrder} to set desired behavior. @@ -63,7 +63,7 @@ public DownsampledWhereFilter(String column, long binSize, SampleOrder order) { /** * Creates a {@link DownsampledWhereFilter} which can be used in a .where clause to downsample time series rows. * - * @param column {@link DateTime} column to use for filtering. + * @param column {@link Instant} column to use for filtering. * @param binSize Size in nanoseconds for the time bins. Constants like {@link DateTimeUtils#MINUTE} are typically * used. */ @@ -94,7 +94,7 @@ public WritableRowSet filter(RowSet selection, RowSet fullSet, Table table, bool // NB: because our source is not refreshing, we don't care about the previous values - ColumnSource timestampColumn = table.getColumnSource(column); + ColumnSource timestampColumn = table.getColumnSource(column); RowSetBuilderSequential builder = RowSetFactory.builderSequential(); @@ -103,14 +103,14 @@ public WritableRowSet filter(RowSet selection, RowSet fullSet, Table table, bool boolean hasNext = it.hasNext(); long lastKey = -1; - DateTime lastBin = null; + Instant lastBin = null; while (hasNext) { long next = it.nextLong(); hasNext = it.hasNext(); - DateTime timestamp = timestampColumn.get(next); - DateTime bin = (order == SampleOrder.UPPERLAST) ? DateTimeUtils.upperBin(timestamp, binSize) + Instant timestamp = timestampColumn.get(next); + Instant bin = (order == SampleOrder.UPPERLAST) ? DateTimeUtils.upperBin(timestamp, binSize) : DateTimeUtils.lowerBin(timestamp, binSize); if (!hasNext) { if (order == SampleOrder.UPPERLAST) { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DateTimeRangeFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/InstantRangeFilter.java similarity index 51% rename from engine/table/src/main/java/io/deephaven/engine/table/impl/select/DateTimeRangeFilter.java rename to engine/table/src/main/java/io/deephaven/engine/table/impl/select/InstantRangeFilter.java index 6eb683797c3..3c61e799fc6 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DateTimeRangeFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/InstantRangeFilter.java @@ -8,27 +8,29 @@ import io.deephaven.engine.table.TableDefinition; import io.deephaven.engine.table.impl.chunkfilter.ChunkFilter; import io.deephaven.engine.rowset.chunkattributes.OrderedRowKeys; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.sources.ReinterpretUtils; import io.deephaven.chunk.*; import io.deephaven.chunk.attributes.Values; import io.deephaven.engine.rowset.WritableRowSet; import io.deephaven.engine.rowset.RowSet; -import io.deephaven.util.QueryConstants; +import io.deephaven.time.DateTimeUtils; -public class DateTimeRangeFilter extends LongRangeFilter { - public DateTimeRangeFilter(String columnName, DateTime val1, DateTime val2) { - super(columnName, val1.getNanos(), val2.getNanos(), true, true); +import java.time.Instant; + +public class InstantRangeFilter extends LongRangeFilter { + + public InstantRangeFilter(String columnName, Instant val1, Instant val2) { + super(columnName, DateTimeUtils.epochNanos(val1), DateTimeUtils.epochNanos(val2), true, true); } - public DateTimeRangeFilter(String columnName, DateTime val1, DateTime val2, boolean lowerInclusive, - boolean upperInclusive) { - super(columnName, val1.getNanos(), val2.getNanos(), lowerInclusive, upperInclusive); + public InstantRangeFilter(String columnName, Instant val1, Instant val2, boolean lowerInclusive, + boolean upperInclusive) { + super(columnName, DateTimeUtils.epochNanos(val1), DateTimeUtils.epochNanos(val2), lowerInclusive, upperInclusive); } - public DateTimeRangeFilter(String columnName, long val1, long val2, boolean lowerInclusive, - boolean upperInclusive) { + public InstantRangeFilter(String columnName, long val1, long val2, boolean lowerInclusive, + boolean upperInclusive) { super(columnName, val1, val2, lowerInclusive, upperInclusive); } @@ -38,23 +40,23 @@ public void init(TableDefinition tableDefinition) { return; } - final ColumnDefinition def = tableDefinition.getColumn(columnName); + final ColumnDefinition def = tableDefinition.getColumn(columnName); if (def == null) { throw new RuntimeException("Column \"" + columnName + "\" doesn't exist in this table, available columns: " + tableDefinition.getColumnNames()); } - final Class colClass = def.getDataType(); - Assert.eq(colClass, "colClass", DateTime.class); + final Class colClass = def.getDataType(); + Assert.eq(colClass, "colClass", Instant.class); longFilter = super.initChunkFilter(); - chunkFilter = new DateTimeLongChunkFilterAdapter(); + chunkFilter = new InstantLongChunkFilterAdapter(); } @Override - public DateTimeRangeFilter copy() { - final DateTimeRangeFilter copy = - new DateTimeRangeFilter(columnName, lower, upper, lowerInclusive, upperInclusive); + public InstantRangeFilter copy() { + final InstantRangeFilter copy = + new InstantRangeFilter(columnName, lower, upper, lowerInclusive, upperInclusive); copy.chunkFilter = chunkFilter; copy.longFilter = longFilter; return copy; @@ -62,9 +64,10 @@ public DateTimeRangeFilter copy() { @Override public String toString() { - return "DateTimeRangeFilter(" + columnName + " in " + - (lowerInclusive ? "[" : "(") + new DateTime(lower) + "," + new DateTime(upper) + - (upperInclusive ? "]" : ")") + ")"; + return "InstantRangeFilter(" + columnName + " in " + + (lowerInclusive ? "[" : "(") + + DateTimeUtils.epochNanosToInstant(lower) + "," + DateTimeUtils.epochNanosToInstant(upper) + + (upperInclusive ? "]" : ")") + ")"; } @Override @@ -74,22 +77,22 @@ WritableRowSet binarySearch(RowSet selection, ColumnSource columnSource, boolean } // noinspection unchecked - final ColumnSource dateTimeColumnSource = - ReinterpretUtils.dateTimeToLongSource((ColumnSource) columnSource); - return super.binarySearch(selection, dateTimeColumnSource, usePrev, reverse); + final ColumnSource instantColumnSource = + ReinterpretUtils.instantToLongSource((ColumnSource) columnSource); + return super.binarySearch(selection, instantColumnSource, usePrev, reverse); } - private class DateTimeLongChunkFilterAdapter implements ChunkFilter { + private class InstantLongChunkFilterAdapter implements ChunkFilter { @Override public void filter(Chunk values, LongChunk keys, WritableLongChunk results) { try (final WritableLongChunk writableLongChunk = WritableLongChunk.makeWritableChunk(values.size())) { - final ObjectChunk objectValues = values.asObjectChunk(); + final ObjectChunk objectValues = values.asObjectChunk(); for (int ii = 0; ii < values.size(); ++ii) { - final DateTime dateTime = objectValues.get(ii); - writableLongChunk.set(ii, dateTime == null ? QueryConstants.NULL_LONG : dateTime.getNanos()); + final Instant instant = objectValues.get(ii); + writableLongChunk.set(ii, DateTimeUtils.epochNanos(instant)); } writableLongChunk.setSize(values.size()); longFilter.filter(writableLongChunk, keys, results); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/MatchFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/MatchFilter.java index cd5d5eb21f8..a9661bf45f5 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/MatchFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/MatchFilter.java @@ -13,12 +13,12 @@ import io.deephaven.engine.context.QueryScope; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.type.ArrayTypeUtils; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.rowset.RowSet; import org.jetbrains.annotations.NotNull; import org.jpy.PyObject; +import java.time.Instant; import java.util.*; public class MatchFilter extends WhereFilterImpl { @@ -321,15 +321,15 @@ Object convertParamValue(Object paramValue) { } }; } - if (cls == DateTime.class) { + if (cls == Instant.class) { return new ColumnTypeConvertor() { @Override Object convertStringLiteral(String str) { if (str.charAt(0) != '\'' || str.charAt(str.length() - 1) != '\'') { throw new IllegalArgumentException( - "DateTime literal not enclosed in single-quotes (\"" + str + "\")"); + "Instant literal not enclosed in single-quotes (\"" + str + "\")"); } - return DateTimeUtils.parseDateTime(str.substring(1, str.length() - 1)); + return DateTimeUtils.parseInstant(str.substring(1, str.length() - 1)); } }; } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/RangeConditionFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/RangeConditionFilter.java index 2d23334c0bf..edcead06adb 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/RangeConditionFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/RangeConditionFilter.java @@ -19,7 +19,7 @@ import java.util.List; /** - * A filter for comparable types (including DateTime) for {@link Condition} values:
    + * A filter for comparable types (including Instant) for {@link Condition} values:
    *

      *
    • LESS_THAN
    • *
    • LESS_THAN_OR_EQUAL
    • @@ -198,21 +198,21 @@ public static long parseLongFilter(String value) { private static LongRangeFilter makeDateTimeRangeFilter(String columnName, Condition condition, String value) { switch (condition) { case LESS_THAN: - return new DateTimeRangeFilter(columnName, parseDateTimeNanos(value), Long.MIN_VALUE, true, false); + return new InstantRangeFilter(columnName, parseInstantNanos(value), Long.MIN_VALUE, true, false); case LESS_THAN_OR_EQUAL: - return new DateTimeRangeFilter(columnName, parseDateTimeNanos(value), Long.MIN_VALUE, true, true); + return new InstantRangeFilter(columnName, parseInstantNanos(value), Long.MIN_VALUE, true, true); case GREATER_THAN: - return new DateTimeRangeFilter(columnName, parseDateTimeNanos(value), Long.MAX_VALUE, false, true); + return new InstantRangeFilter(columnName, parseInstantNanos(value), Long.MAX_VALUE, false, true); case GREATER_THAN_OR_EQUAL: - return new DateTimeRangeFilter(columnName, parseDateTimeNanos(value), Long.MAX_VALUE, true, true); + return new InstantRangeFilter(columnName, parseInstantNanos(value), Long.MAX_VALUE, true, true); default: throw new IllegalArgumentException("RangeConditionFilter does not support condition " + condition); } } - private static long parseDateTimeNanos(String value) { + private static long parseInstantNanos(String value) { if (value.startsWith("'") && value.endsWith("'")) { - return DateTimeUtils.parseDateTime(value.substring(1, value.length() - 1)).getNanos(); + return DateTimeUtils.epochNanos(DateTimeUtils.parseInstant(value.substring(1, value.length() - 1))); } return Long.parseLong(value); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java index e1974eefe57..adff291d962 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java @@ -16,14 +16,12 @@ import io.deephaven.engine.table.impl.sources.ConvertibleTimeSource; import io.deephaven.engine.table.impl.sources.LocalDateWrapperSource; import io.deephaven.engine.table.impl.sources.LocalTimeWrapperSource; -import io.deephaven.engine.table.impl.sources.LongAsDateTimeColumnSource; import io.deephaven.engine.table.impl.sources.LongAsInstantColumnSource; import io.deephaven.engine.table.impl.sources.LongAsLocalDateColumnSource; import io.deephaven.engine.table.impl.sources.LongAsLocalTimeColumnSource; import io.deephaven.engine.table.impl.sources.LongAsZonedDateTimeColumnSource; import io.deephaven.engine.table.impl.sources.ReinterpretUtils; import io.deephaven.engine.table.impl.util.TableTimeConversions; -import io.deephaven.time.DateTime; import org.jetbrains.annotations.NotNull; import java.time.Instant; @@ -123,11 +121,11 @@ public List initInputs(TrackingRowSet rowSet, Map initInputs(TrackingRowSet rowSet, Map intermediate; - if (sourceDataType == DateTime.class) { - // noinspection unchecked - intermediate = ReinterpretUtils.dateTimeToLongSource((ColumnSource) sourceColumnSource); - } else if (sourceDataType == Instant.class) { + if (sourceDataType == Instant.class) { // noinspection unchecked intermediate = ReinterpretUtils.instantToLongSource((ColumnSource) sourceColumnSource); } else if (sourceDataType == ZonedDateTime.class) { @@ -259,8 +252,6 @@ public ColumnSource getDataView() { // Otherwise we'll have to go from long back to a wrapped typed source. if (destDataType == Long.class || destDataType == long.class) { return checkResult.apply(intermediate); - } else if (destDataType == DateTime.class) { - return checkResult.apply(new LongAsDateTimeColumnSource(intermediate)); } else if (destDataType == ZonedDateTime.class) { return checkResult.apply(new LongAsZonedDateTimeColumnSource(intermediate, zone)); } else if (destDataType == Instant.class) { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/SimulationClock.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/SimulationClock.java index 286e2538342..a6d81747067 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/SimulationClock.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/SimulationClock.java @@ -8,7 +8,6 @@ import io.deephaven.base.verify.Require; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import org.jetbrains.annotations.NotNull; import java.time.Instant; @@ -21,7 +20,7 @@ @SuppressWarnings({"WeakerAccess", "unused"}) public class SimulationClock implements Clock { - private final DateTime endTime; + private final Instant endTime; private final long stepNanos; private final Runnable refreshTask = this::advance; // Save this in a reference so we can deregister it. @@ -33,7 +32,7 @@ private enum State { private final AtomicReference state = new AtomicReference<>(State.NOT_STARTED); private final Condition ugpCondition = UpdateGraphProcessor.DEFAULT.exclusiveLock().newCondition(); - private DateTime now; + private Instant now; /** * Create a simulation clock for the specified time range and step. @@ -42,10 +41,11 @@ private enum State { * @param endTime The final time that will be returned by this clock, when the simulation has completed * @param stepSize The time to "elapse" in each run loop */ - public SimulationClock(@NotNull final String startTime, + public SimulationClock( + @NotNull final String startTime, @NotNull final String endTime, @NotNull final String stepSize) { - this(DateTimeUtils.parseDateTime(startTime), DateTimeUtils.parseDateTime(endTime), + this(DateTimeUtils.parseInstant(startTime), DateTimeUtils.parseInstant(endTime), DateTimeUtils.parseNanos(stepSize)); } @@ -56,8 +56,9 @@ public SimulationClock(@NotNull final String startTime, * @param endTime The final time that will be returned by this clock, when the simulation has completed * @param stepNanos The number of nanoseconds to "elapse" in each run loop */ - public SimulationClock(@NotNull final DateTime startTime, - @NotNull final DateTime endTime, + public SimulationClock( + @NotNull final Instant startTime, + @NotNull final Instant endTime, final long stepNanos) { Require.neqNull(startTime, "startTime"); this.endTime = Require.neqNull(endTime, "endTime"); @@ -68,27 +69,27 @@ public SimulationClock(@NotNull final DateTime startTime, @Override public long currentTimeMillis() { - return now.getMillis(); + return DateTimeUtils.epochMillis(now); } @Override public long currentTimeMicros() { - return now.getMicros(); + return DateTimeUtils.epochMicros(now); } @Override public long currentTimeNanos() { - return now.getNanos(); + return DateTimeUtils.epochNanos(now); } @Override public Instant instantNanos() { - return now.toInstant(); + return now; } @Override public Instant instantMillis() { - return now.toInstant(); + return now; } /** @@ -118,14 +119,14 @@ public void start(final boolean maxSpeed) { */ void advance() { Assert.eq(state.get(), "state.get()", State.STARTED); - if (now.getNanos() == endTime.getNanos()) { + if (DateTimeUtils.epochNanos(now) == DateTimeUtils.epochNanos(endTime)) { Assert.assertion(state.compareAndSet(State.STARTED, State.DONE), "state.compareAndSet(State.STARTED, State.DONE)"); UpdateGraphProcessor.DEFAULT.removeSource(refreshTask); UpdateGraphProcessor.DEFAULT.requestSignal(ugpCondition); return; // This return is not strictly necessary, but it seems clearer this way. } - final DateTime incremented = DateTimeUtils.plus(now, stepNanos); + final Instant incremented = DateTimeUtils.plus(now, stepNanos); now = DateTimeUtils.isAfter(incremented, endTime) ? endTime : incremented; } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/SortedClockFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/SortedClockFilter.java index 98ac7b8a438..b72b9ff5644 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/SortedClockFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/SortedClockFilter.java @@ -13,7 +13,7 @@ import org.jetbrains.annotations.Nullable; /** - * This will filter a table on a DateTime column for all rows greater than "now" according to a supplied clock. It + * This will filter a table on an Instant column for all rows greater than "now" according to a supplied clock. It * requires sorting of the input table according to the specified timestamp column, leveraging this for a very efficient * implementation (albeit one that requires sorting first) and an output sequence that is monotonically nondecreasing in * the specified column. diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/TimeSeriesFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/TimeSeriesFilter.java index ff495431feb..39d6f40c544 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/TimeSeriesFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/TimeSeriesFilter.java @@ -19,9 +19,9 @@ import io.deephaven.engine.table.TableDefinition; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.ColumnSource; +import java.time.Instant; import java.util.Collections; import java.util.List; @@ -64,9 +64,9 @@ public WritableRowSet filter(RowSet selection, RowSet fullSet, Table table, bool } @SuppressWarnings("unchecked") - ColumnSource dateColumn = table.getColumnSource(columnName); - if (!DateTime.class.isAssignableFrom(dateColumn.getType())) { - throw new RuntimeException(columnName + " is not a DateTime column!"); + ColumnSource dateColumn = table.getColumnSource(columnName); + if (!Instant.class.isAssignableFrom(dateColumn.getType())) { + throw new RuntimeException(columnName + " is not an Instant column!"); } long nanoBoundary = getNowNanos() - nanos; @@ -74,7 +74,8 @@ public WritableRowSet filter(RowSet selection, RowSet fullSet, Table table, bool RowSetBuilderSequential indexBuilder = RowSetFactory.builderSequential(); for (RowSet.Iterator it = selection.iterator(); it.hasNext();) { long row = it.nextLong(); - long nanoValue = dateColumn.get(row).getNanos(); + Instant instant = dateColumn.get(row); + long nanoValue = DateTimeUtils.epochNanos(instant); if (nanoValue >= nanoBoundary) { indexBuilder.appendKey(row); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/UnsortedClockFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/UnsortedClockFilter.java index a734ce27665..e69cd053f58 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/UnsortedClockFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/UnsortedClockFilter.java @@ -17,7 +17,7 @@ import java.util.Queue; /** - * This will filter a table on a DateTime column for all rows greater than "now" according to a supplied clock. It does + * This will filter a table on an Instant column for all rows greater than "now" according to a supplied clock. It does * not require any pre-sorting of the input table, instead preserving relative order in the initial output and each * subsequent run. Relative to SortedClockFilter, this implementation may require less overall storage and do less * overall work for tables with relatively few monotonically nondecreasing ranges (that is, m (number of ranges) diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/WhereFilterFactory.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/WhereFilterFactory.java index 40a6a3faf34..d7ff328d441 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/WhereFilterFactory.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/WhereFilterFactory.java @@ -17,15 +17,14 @@ import io.deephaven.gui.table.QuickFilterMode; import io.deephaven.internal.log.LoggerFactory; import io.deephaven.io.logger.Logger; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; -import io.deephaven.time.TimeZoneAliases; import io.deephaven.util.annotations.VisibleForTesting; import io.deephaven.util.text.SplitIgnoreQuotes; import org.jetbrains.annotations.NotNull; import java.math.BigDecimal; import java.math.BigInteger; +import java.time.Instant; import java.time.ZoneId; import java.time.ZonedDateTime; import java.time.temporal.ChronoField; @@ -346,8 +345,8 @@ private static WhereFilter getSelectFilter(String colName, String quickFilter, Q false); } else if ((colClass == boolean.class || colClass == Boolean.class) && typeData.isBool) { return new MatchFilter(colName, Boolean.parseBoolean(quickFilter)); - } else if (colClass == DateTime.class && typeData.dateLower != null && typeData.dateUpper != null) { - return new DateTimeRangeFilter(colName, typeData.dateLower, typeData.dateUpper, true, false); + } else if (colClass == Instant.class && typeData.dateLower != null && typeData.dateUpper != null) { + return new InstantRangeFilter(colName, typeData.dateLower, typeData.dateUpper, true, false); } else if ((colClass == char.class || colClass == Character.class) && typeData.isChar) { return new MatchFilter(colName, typeData.charVal); } @@ -456,8 +455,8 @@ static class InferenceResult { boolean isBigDecimal; BigDecimal bigDecVal; - DateTime dateUpper; - DateTime dateLower; + Instant dateUpper; + Instant dateLower; InferenceResult(String valString) { isBool = (valString.equalsIgnoreCase("false") || valString.equalsIgnoreCase("true")); @@ -519,14 +518,13 @@ static class InferenceResult { ZonedDateTime dateUpper = null; try { // Was it a full date? - dateLower = DateTimeUtils.toZonedDateTime(DateTimeUtils.parseDateTime(valString), ZoneId.systemDefault()); + dateLower = DateTimeUtils.toZonedDateTime(DateTimeUtils.parseInstant(valString), ZoneId.systemDefault()); } catch (RuntimeException ignored) { try { // Maybe it was just a TOD? long time = DateTimeUtils.parseNanos(valString); - dateLower = - DateTimeUtils.toZonedDateTime(DateTime.nowMillis(), ZoneId.systemDefault()).truncatedTo(ChronoUnit.DAYS).plus(time, - ChronoUnit.NANOS); + dateLower = DateTimeUtils.toZonedDateTime(DateTimeUtils.now(), ZoneId.systemDefault()) + .truncatedTo(ChronoUnit.DAYS).plus(time, ChronoUnit.NANOS); } catch (RuntimeException ignored1) { } } @@ -536,10 +534,8 @@ static class InferenceResult { dateUpper = finestUnit == null ? dateLower : dateLower.plus(1, finestUnit.getBaseUnit()); } - this.dateUpper = - dateUpper == null ? null : DateTimeUtils.epochMillisToDateTime(dateUpper.toInstant().toEpochMilli()); - this.dateLower = - dateLower == null ? null : DateTimeUtils.epochMillisToDateTime(dateLower.toInstant().toEpochMilli()); + this.dateUpper = dateUpper == null ? null : dateUpper.toInstant(); + this.dateLower = dateLower == null ? null : dateLower.toInstant(); } } } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/analyzers/SelectColumnLayer.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/analyzers/SelectColumnLayer.java index f87f3074883..6415608ee45 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/analyzers/SelectColumnLayer.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/analyzers/SelectColumnLayer.java @@ -26,11 +26,11 @@ import io.deephaven.engine.updategraph.UpdateCommitterEx; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.util.systemicmarking.SystemicObjectTracker; -import io.deephaven.time.DateTime; import io.deephaven.util.SafeCloseable; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; +import java.time.Instant; import java.util.*; import java.util.function.Consumer; import java.util.function.LongToIntFunction; @@ -564,7 +564,7 @@ void prepareSourcesForParallelPopulation(TableUpdate upstream) { private void clearObjectsAtThisLevel(RowSet keys) { // Only bother doing this if we're holding on to references. - if (!writableSource.getType().isPrimitive() && (writableSource.getType() != DateTime.class)) { + if (!writableSource.getType().isPrimitive() && (writableSource.getType() != Instant.class)) { ChunkUtils.fillWithNullValue(writableSource, keys); } } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/BoxedColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/BoxedColumnSource.java index 25523020492..0de0e304f6b 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/BoxedColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/BoxedColumnSource.java @@ -8,7 +8,6 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.AbstractColumnSource; import io.deephaven.engine.table.impl.MutableColumnSourceGetDefaults; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.BooleanUtils; import io.deephaven.chunk.*; @@ -20,7 +19,7 @@ /** * {@link ColumnSource} implementation for explicitly boxing a primitive into a more complex type, e.g. {@code byte} as - * {@link Boolean} or {@code long} as {@link DateTime}. + * {@link Boolean} or {@code long} as {@link Instant}. */ public abstract class BoxedColumnSource extends AbstractColumnSource implements MutableColumnSourceGetDefaults.ForObject { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ConvertibleTimeSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ConvertibleTimeSource.java index b40620e2c64..0985848e38f 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ConvertibleTimeSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ConvertibleTimeSource.java @@ -39,7 +39,7 @@ public interface ConvertibleTimeSource { /** * Convert this source to an {@link Instant} source. * - * @return a view of this source as a {@link Instant} + * @return a view of this source asan {@link Instant} */ ColumnSource toInstant(); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeAsLongColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeAsLongColumnSource.java deleted file mode 100644 index cefd9293a7b..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/DateTimeAsLongColumnSource.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.table.impl.sources; - -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; - -/** - * Reinterpret result {@link ColumnSource} implementations that translates {@link DateTime} to {@code long} values. - */ -public class DateTimeAsLongColumnSource extends UnboxedTimeBackedColumnSource { - public DateTimeAsLongColumnSource(ColumnSource alternateColumnSource) { - super(alternateColumnSource); - } - - @Override - protected long toEpochNano(DateTime val) { - return DateTimeUtils.epochNanos(val); - } -} diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/InMemoryColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/InMemoryColumnSource.java index 13a9b9d85b5..41c00ea0c03 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/InMemoryColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/InMemoryColumnSource.java @@ -9,7 +9,6 @@ import io.deephaven.engine.table.impl.sources.immutable.*; import io.deephaven.engine.table.impl.sources.immutable.Immutable2DCharArraySource; import io.deephaven.engine.table.impl.sources.immutable.ImmutableCharArraySource; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.BooleanUtils; import io.deephaven.util.type.ArrayTypeUtils; @@ -37,7 +36,7 @@ default boolean isInMemory() { /** * Create an immutable in-memory column source that is capable of holding longSize elements. - * + *

      * Note, that the backing array may not be allocated after this call; you still must call * {@link WritableColumnSource#ensureCapacity(long)}. * @@ -75,8 +74,6 @@ static WritableColumnSource makeImmutableSource(@NotNull Class dataTyp result = new ImmutableLongArraySource(); } else if (dataType == short.class || dataType == Short.class) { result = new ImmutableShortArraySource(); - } else if (dataType == DateTime.class) { - result = new ImmutableDateTimeArraySource(); } else if (dataType == Instant.class) { result = new ImmutableInstantArraySource(); } else { @@ -106,8 +103,6 @@ static WritableColumnSource makeImmutable2DSource(@NotNull Class dataT result = new Immutable2DLongArraySource(); } else if (dataType == short.class || dataType == Short.class) { result = new Immutable2DShortArraySource(); - } else if (dataType == DateTime.class) { - result = new Immutable2DDateTimeArraySource(); } else if (dataType == Instant.class) { result = new Immutable2DInstantArraySource(); } else { @@ -140,10 +135,8 @@ static ColumnSource makeImmutableConstantSource( result = new ImmutableConstantLongSource(TypeUtils.unbox((Long) value)); } else if (dataType == short.class || dataType == Short.class) { result = new ImmutableConstantShortSource(TypeUtils.unbox((Short) value)); - } else if (dataType == DateTime.class) { - result = new ImmutableConstantDateTimeSource(DateTimeUtils.epochNanos((DateTime) value)); } else if (dataType == Instant.class) { - result = new ImmutableConstantInstantSource(DateTimeUtils.epochNanos((DateTime) value)); + result = new ImmutableConstantInstantSource(DateTimeUtils.epochNanos((Instant) value)); } else { result = new ImmutableConstantObjectSource<>(dataType, componentType, value); } @@ -170,7 +163,7 @@ static ColumnSource getImmutableMemoryColumnSource(@NotNull final Object data /** * Wrap the input array in an immutable {@link ColumnSource}. This method will unbox any boxed values, and directly * use the result array. This version allows the user to specify the column data type. It will automatically map - * column type Boolean/boolean with input array types byte[] and columnType DateTime / array type long[]. + * column type Boolean/boolean with input array types byte[] and columnType Instant / array type long[]. * * @param dataArray The array to turn into a ColumnSource * @param dataType the data type of the resultant column source @@ -221,8 +214,6 @@ static ColumnSource getImmutableMemoryColumnSource(@NotNull final Object result = new ImmutableLongArraySource(ArrayTypeUtils.getUnboxedArray((Long[]) dataArray)); } else if (dataType == Short.class) { result = new ImmutableShortArraySource(ArrayTypeUtils.getUnboxedArray((Short[]) dataArray)); - } else if (dataType == DateTime.class && dataArray instanceof long[]) { - result = new ImmutableDateTimeArraySource((long[]) dataArray); } else if (dataType == Instant.class && dataArray instanceof long[]) { result = new ImmutableInstantArraySource((long[]) dataArray); } else { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongAsDateTimeColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongAsDateTimeColumnSource.java deleted file mode 100644 index c2018d623a5..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongAsDateTimeColumnSource.java +++ /dev/null @@ -1,22 +0,0 @@ -/** - * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.table.impl.sources; - -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; - -/** - * Reinterpret result {@link ColumnSource} implementations that translates {@code long} to {@link DateTime} values. - */ -public class LongAsDateTimeColumnSource extends BoxedLongAsTimeSource { - public LongAsDateTimeColumnSource(ColumnSource alternateColumnSource) { - super(DateTime.class, alternateColumnSource); - } - - @Override - protected DateTime makeValue(long val) { - return DateTimeUtils.epochNanosToDateTime(val); - } -} \ No newline at end of file diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongSparseArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongSparseArraySource.java index b91c165fba8..414371376e2 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongSparseArraySource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/LongSparseArraySource.java @@ -1386,7 +1386,7 @@ public LongChunk getPrevChunk(@NotNull final GetContext context, @NotNul // region reinterpretation @Override public boolean allowsReinterpret(@NotNull final Class alternateDataType) { - return alternateDataType == long.class || alternateDataType == Instant.class + return alternateDataType == long.class || alternateDataType == Instant.class; } @SuppressWarnings("unchecked") diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/RedirectedColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/RedirectedColumnSource.java index 6fca34c0330..a4403e7b270 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/RedirectedColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/RedirectedColumnSource.java @@ -9,7 +9,6 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.Table; import io.deephaven.engine.table.impl.util.RowRedirection; -import io.deephaven.time.DateTime; import io.deephaven.util.BooleanUtils; import io.deephaven.engine.table.impl.join.dupexpand.DupExpandKernel; import io.deephaven.engine.table.impl.sort.permute.PermuteKernel; @@ -376,7 +375,6 @@ public boolean allowsReinterpret( @NotNull final Class alternateDataType) { if ((alternateDataType == long.class || alternateDataType == Long.class - || alternateDataType == DateTime.class || alternateDataType == Instant.class) && supportsTimeConversion()) { return true; @@ -397,12 +395,6 @@ public ColumnSource toEpochNano() { .toEpochNano()); } - @Override - public ColumnSource toDateTime() { - return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertibleTimeSource) innerSource) - .toDateTime()); - } - @Override public ColumnSource toInstant() { return new RedirectedColumnSource<>(this.rowRedirection, ((ConvertibleTimeSource) innerSource) @@ -438,8 +430,6 @@ protected ColumnSource doReinterpret( if (supportsTimeConversion()) { if (alternateDataType == long.class || alternateDataType == Long.class) { return (ColumnSource) toEpochNano(); - } else if (alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == Instant.class) { return (ColumnSource) toInstant(); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ReinterpretUtils.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ReinterpretUtils.java index dcf1ead2ba4..b4d25188d6c 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ReinterpretUtils.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ReinterpretUtils.java @@ -6,7 +6,6 @@ import io.deephaven.chunk.ChunkType; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.WritableColumnSource; -import io.deephaven.time.DateTime; import org.jetbrains.annotations.NotNull; import java.time.Instant; @@ -16,32 +15,17 @@ public class ReinterpretUtils { /** - * Given a DateTime column source turn it into a long column source, either via reinterpretation or wrapping. + * Given a long column source turn it into a Instant column source, either via reinterpretation or wrapping. * - * @param source the source to turn into a long source + * @param source the source to turn into a Instant source * * @return the long source */ - public static ColumnSource dateTimeToLongSource(ColumnSource source) { - if (source.allowsReinterpret(long.class)) { - return source.reinterpret(long.class); + public static ColumnSource longToInstantSource(ColumnSource source) { + if (source.allowsReinterpret(Instant.class)) { + return source.reinterpret(Instant.class); } else { - return new DateTimeAsLongColumnSource(source); - } - } - - /** - * Given a long column source turn it into a DateTime column source, either via reinterpretation or wrapping. - * - * @param source the source to turn into a DateTime source - * - * @return the long source - */ - public static ColumnSource longToDateTimeSource(ColumnSource source) { - if (source.allowsReinterpret(DateTime.class)) { - return source.reinterpret(DateTime.class); - } else { - return new LongAsDateTimeColumnSource(source); + return new LongAsInstantColumnSource(source); } } @@ -94,21 +78,6 @@ public static ColumnSource zonedDateTimeToLongSource(final @NotNull Column } } - /** - * Given a writable DateTime column source turn it into a writable long column source via reinterpretation if - * possible. - * - * @param source the source to turn into a long source - * - * @return the long source or null if it could not be reinterpreted - */ - public static WritableColumnSource writableDateTimeToLongSource(WritableColumnSource source) { - if (source.allowsReinterpret(long.class)) { - return (WritableColumnSource) source.reinterpret(long.class); - } - return null; - } - /** * Given a writable Boolean column source turn it into a writable byte column source via reinterpretation if * possible. @@ -167,9 +136,6 @@ public static ColumnSource maybeConvertToPrimitive(ColumnSource source) { if (source.getType() == Boolean.class || source.getType() == boolean.class) { return booleanToByteSource((ColumnSource) source); } - if (source.getType() == DateTime.class) { - return dateTimeToLongSource((ColumnSource) source); - } if (source.getType() == Instant.class) { return instantToLongSource((ColumnSource) source); } @@ -191,8 +157,6 @@ public static WritableColumnSource maybeConvertToWritablePrimitive(WritableCo WritableColumnSource result = null; if (source.getType() == Boolean.class || source.getType() == boolean.class) { result = writableBooleanToByteSource((WritableColumnSource) source); - } else if (source.getType() == DateTime.class) { - result = writableDateTimeToLongSource((WritableColumnSource) source); } else if (source.getType() == Instant.class) { result = writableInstantToLongSource((WritableColumnSource) source); } else if (source.getType() == ZonedDateTime.class) { @@ -212,7 +176,7 @@ public static ChunkType maybeConvertToPrimitiveChunkType(@NotNull final Class if (dataType == Boolean.class || dataType == boolean.class) { return ChunkType.Byte; } - if (dataType == DateTime.class || dataType == Instant.class || dataType == ZonedDateTime.class) { + if (dataType == Instant.class || dataType == ZonedDateTime.class) { return ChunkType.Long; } return ChunkType.fromElementType(dataType); @@ -229,7 +193,7 @@ public static Class maybeConvertToPrimitiveDataType(@NotNull final Class d if (dataType == Boolean.class || dataType == boolean.class) { return byte.class; } - if (dataType == DateTime.class || dataType == Instant.class || dataType == ZonedDateTime.class) { + if (dataType == Instant.class || dataType == ZonedDateTime.class) { return long.class; } return dataType; @@ -259,12 +223,6 @@ public static ColumnSource convertToOriginal( return source.allowsReinterpret(Boolean.class) ? source.reinterpret(Boolean.class) : new BoxedColumnSource.OfBoolean((ColumnSource) source); } - if (originalType == DateTime.class) { - validateSourceType.accept(long.class); - // noinspection unchecked - return source.allowsReinterpret(DateTime.class) ? source.reinterpret(DateTime.class) - : new BoxedColumnSource.OfDateTime((ColumnSource) source); - } if (originalType == Instant.class) { validateSourceType.accept(long.class); // noinspection unchecked diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ShiftedColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ShiftedColumnSource.java index 80e6b925150..d72afc123a8 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ShiftedColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ShiftedColumnSource.java @@ -17,7 +17,6 @@ import io.deephaven.engine.table.impl.AbstractColumnSource; import io.deephaven.engine.table.impl.DefaultGetContext; import io.deephaven.engine.table.impl.ShiftedColumnOperation; -import io.deephaven.time.DateTime; import io.deephaven.util.BooleanUtils; import io.deephaven.util.QueryConstants; import io.deephaven.util.type.TypeUtils; @@ -392,11 +391,6 @@ public ColumnSource toInstant() { return new ShiftedColumnSource<>(rowSet, ((ConvertibleTimeSource) innerSource).toInstant(), shift); } - @Override - public ColumnSource toDateTime() { - return new ShiftedColumnSource<>(rowSet, ((ConvertibleTimeSource) innerSource).toDateTime(), shift); - } - @Override public ColumnSource toEpochNano() { return new ShiftedColumnSource<>(rowSet, ((ConvertibleTimeSource) innerSource).toEpochNano(), shift); @@ -420,8 +414,6 @@ protected ColumnSource doReinterpret( && ((ConvertibleTimeSource) innerSource).supportsTimeConversion()) { if (alternateDataType == long.class || alternateDataType == Long.class) { return (ColumnSource) toEpochNano(); - } else if (alternateDataType == DateTime.class) { - return (ColumnSource) toDateTime(); } else if (alternateDataType == Instant.class) { return (ColumnSource) toInstant(); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/UnboxedLongBackedColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/UnboxedLongBackedColumnSource.java index 83e8f9a8eaf..e83b5bdca97 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/UnboxedLongBackedColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/UnboxedLongBackedColumnSource.java @@ -3,11 +3,12 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.AbstractColumnSource; import io.deephaven.engine.table.impl.MutableColumnSourceGetDefaults; -import io.deephaven.time.DateTime; import org.jetbrains.annotations.NotNull; +import java.time.Instant; + /** - * Reinterpret result for many {@link ColumnSource} implementations that internally represent {@link DateTime} values + * Reinterpret result for many {@link ColumnSource} implementations that internally represent {@link Instant} values * as {@code long} values. */ public class UnboxedLongBackedColumnSource extends AbstractColumnSource implements MutableColumnSourceGetDefaults.ForLong { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/WritableLongAsDateTimeColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/WritableLongAsDateTimeColumnSource.java deleted file mode 100644 index 29e02efdcaa..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/WritableLongAsDateTimeColumnSource.java +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.table.impl.sources; - -import io.deephaven.chunk.*; -import io.deephaven.chunk.attributes.Values; -import io.deephaven.engine.rowset.RowSequence; -import io.deephaven.engine.rowset.chunkattributes.RowKeys; -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.WritableColumnSource; -import io.deephaven.engine.table.impl.MutableColumnSourceGetDefaults; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; -import org.jetbrains.annotations.NotNull; - -import static io.deephaven.util.QueryConstants.NULL_LONG; - -/** - * Reinterpret result {@link ColumnSource} implementations that translates {@link byte} to {@code Boolean} values. - */ -public class WritableLongAsDateTimeColumnSource extends LongAsDateTimeColumnSource implements MutableColumnSourceGetDefaults.ForObject, WritableColumnSource { - - private final WritableColumnSource alternateColumnSource; - - public WritableLongAsDateTimeColumnSource(@NotNull final WritableColumnSource alternateColumnSource) { - super(alternateColumnSource); - this.alternateColumnSource = alternateColumnSource; - } - - @Override - public void setNull(long key) { - alternateColumnSource.set(key, NULL_LONG); - } - - @Override - public void set(long key, DateTime value) { - alternateColumnSource.set(key, DateTimeUtils.epochNanos(value)); - } - - @Override - public void ensureCapacity(long capacity, boolean nullFilled) { - alternateColumnSource.ensureCapacity(capacity, nullFilled); - } - - private class ConvertingFillFromContext implements FillFromContext { - private final FillFromContext alternateFillFromContext; - private final WritableLongChunk longChunk; - - private ConvertingFillFromContext(int size) { - alternateFillFromContext = alternateColumnSource.makeFillFromContext(size); - longChunk = WritableLongChunk.makeWritableChunk(size); - } - - @Override - public void close() { - alternateFillFromContext.close(); - longChunk.close(); - } - - private void convert(ObjectChunk src) { - longChunk.setSize(src.size()); - for (int ii = 0; ii < src.size(); ++ii) { - longChunk.set(ii, DateTimeUtils.epochNanos(src.get(ii))); - } - } - } - - @Override - public FillFromContext makeFillFromContext(int chunkCapacity) { - return new ConvertingFillFromContext(chunkCapacity); - } - - @Override - public void fillFromChunk(@NotNull FillFromContext context, @NotNull Chunk src, @NotNull RowSequence rowSequence) { - final ConvertingFillFromContext convertingFillFromContext = (ConvertingFillFromContext)context; - convertingFillFromContext.convert(src.asObjectChunk()); - alternateColumnSource.fillFromChunk(convertingFillFromContext.alternateFillFromContext, convertingFillFromContext.longChunk, rowSequence); - } - - @Override - public void fillFromChunkUnordered(@NotNull FillFromContext context, @NotNull Chunk src, @NotNull LongChunk keys) { - final ConvertingFillFromContext convertingFillFromContext = (ConvertingFillFromContext)context; - convertingFillFromContext.convert(src.asObjectChunk()); - alternateColumnSource.fillFromChunkUnordered(convertingFillFromContext.alternateFillFromContext, convertingFillFromContext.longChunk, keys); - } -} diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DDateTimeArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DDateTimeArraySource.java deleted file mode 100644 index 57bc254850d..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/Immutable2DDateTimeArraySource.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * Copyright (c) 2016-2023 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.table.impl.sources.immutable; - -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.impl.ImmutableColumnSourceGetDefaults; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; -import org.jetbrains.annotations.NotNull; - -/** - * Immutable2DArraySource for {@link DateTime}s. Allows reinterpretation as long. - */ -public class Immutable2DDateTimeArraySource extends Immutable2DNanosBasedTimeArraySource - implements ImmutableColumnSourceGetDefaults.ForLongAsDateTime { - - public Immutable2DDateTimeArraySource() { - super(DateTime.class); - } - - public Immutable2DDateTimeArraySource(final @NotNull Immutable2DLongArraySource nanoSource) { - super(DateTime.class, nanoSource); - } - - @Override - protected DateTime makeValue(long nanos) { - return DateTimeUtils.epochNanosToDateTime(nanos); - } - - @Override - protected long toNanos(DateTime value) { - return DateTimeUtils.epochNanos(value); - } - - @Override - public ColumnSource toDateTime() { - return this; - } -} - diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantDateTimeSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantDateTimeSource.java deleted file mode 100644 index fd9e36305a0..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableConstantDateTimeSource.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * Copyright (c) 2016-2023 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.table.impl.sources.immutable; - -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.impl.ImmutableColumnSourceGetDefaults; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; -import org.jetbrains.annotations.NotNull; - -/** - * Constant ImmutableColumnSource for {@link DateTime}s. Allows reinterpretation as long. - */ -public class ImmutableConstantDateTimeSource extends ImmutableConstantNanosBasedTimeSource - implements ImmutableColumnSourceGetDefaults.ForLongAsDateTime { - - public ImmutableConstantDateTimeSource(final long nanos) { - super(DateTime.class, new ImmutableConstantLongSource(nanos)); - } - - public ImmutableConstantDateTimeSource(final @NotNull ImmutableConstantLongSource nanoSource) { - super(DateTime.class, nanoSource); - } - - @Override - protected DateTime makeValue(long nanos) { - return DateTimeUtils.epochNanosToDateTime(nanos); - } - - @Override - protected long toNanos(DateTime value) { - return DateTimeUtils.epochNanos(value); - } - - @Override - public ColumnSource toDateTime() { - return this; - } -} diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableDateTimeArraySource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableDateTimeArraySource.java deleted file mode 100644 index 873b534bd8b..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableDateTimeArraySource.java +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Copyright (c) 2016-2023 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.table.impl.sources.immutable; - -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.impl.ImmutableColumnSourceGetDefaults; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; -import org.jetbrains.annotations.NotNull; - -/** - * ImmutableArraySource for {@link DateTime}s. Allows reinterpretation as long. - */ -public class ImmutableDateTimeArraySource extends ImmutableNanosBasedTimeArraySource - implements ImmutableColumnSourceGetDefaults.ForLongAsDateTime { - - public ImmutableDateTimeArraySource() { - super(DateTime.class); - } - - public ImmutableDateTimeArraySource(final @NotNull long[] nanos) { - super(DateTime.class, new ImmutableLongArraySource(nanos)); - } - - public ImmutableDateTimeArraySource(final @NotNull ImmutableLongArraySource nanoSource) { - super(DateTime.class, nanoSource); - } - - @Override - protected DateTime makeValue(long nanos) { - return DateTimeUtils.epochNanosToDateTime(nanos); - } - - @Override - protected long toNanos(DateTime value) { - return DateTimeUtils.epochNanos(value); - } - - @Override - public ColumnSource toDateTime() { - return this; - } -} diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableLongAsDateTimeColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableLongAsDateTimeColumnSource.java deleted file mode 100644 index 705d7be25ea..00000000000 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/immutable/ImmutableLongAsDateTimeColumnSource.java +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.table.impl.sources.immutable; - -import io.deephaven.engine.table.impl.sources.LongAsDateTimeColumnSource; - -/** - * Convenience wrapper for Python conversions from long[] to immutable DateTime source. - */ -public class ImmutableLongAsDateTimeColumnSource extends LongAsDateTimeColumnSource { - public ImmutableLongAsDateTimeColumnSource(long [] dateTimes) { - super(new ImmutableLongArraySource(dateTimes)); - } -} diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ring/RingColumnSource.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ring/RingColumnSource.java index 0cb85242242..095dc3f4f2f 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ring/RingColumnSource.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/sources/ring/RingColumnSource.java @@ -17,7 +17,6 @@ import io.deephaven.engine.table.impl.AbstractColumnSource; import io.deephaven.engine.table.impl.TableUpdateImpl; import io.deephaven.engine.table.impl.sources.InMemoryColumnSource; -import io.deephaven.time.DateTime; import org.jetbrains.annotations.NotNull; import java.time.Instant; @@ -87,9 +86,6 @@ public static RingColumnSource of(int capacity, Class dataType, Class< } else if (dataType == boolean.class || dataType == Boolean.class) { throw new UnsupportedOperationException( "No Boolean chunk source for RingColumnSource - use byte and reinterpret"); - } else if (dataType == DateTime.class) { - throw new UnsupportedOperationException( - "No DateTime chunk source for RingColumnSource - use long and reinterpret"); } else if (dataType == Instant.class) { throw new UnsupportedOperationException( "No Instant chunk source for RingColumnSource - use long and reinterpret"); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java index 908922fa1dd..2ec03c7e003 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java @@ -10,8 +10,8 @@ import java.time.Instant; -import io.deephaven.vector.ObjectVectorDirect; import io.deephaven.time.DateTimeUtils; +import io.deephaven.vector.ObjectVectorDirect; import io.deephaven.base.verify.Assert; import io.deephaven.chunk.attributes.Any; @@ -2531,7 +2531,7 @@ public ObjectVector subArrayByPositionsAsInstants(long[] positions) { final Instant[] keyArray = new Instant[positions.length]; int writePos = 0; for (long position : positions) { - keyArray[writePos++] = getAsDate(position); + keyArray[writePos++] = getAsInstant(position); } return new ObjectVectorDirect<>(keyArray); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/UpdateByOperatorFactory.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/UpdateByOperatorFactory.java index 93468807e8c..c83d44414ec 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/UpdateByOperatorFactory.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/updateby/UpdateByOperatorFactory.java @@ -26,13 +26,13 @@ import io.deephaven.engine.table.impl.util.WritableRowRedirection; import io.deephaven.hash.KeyedObjectHashMap; import io.deephaven.hash.KeyedObjectKey; -import io.deephaven.time.DateTime; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.math.BigDecimal; import java.math.BigInteger; import java.math.MathContext; +import java.time.Instant; import java.util.*; import java.util.stream.Collectors; @@ -289,8 +289,8 @@ private class OperationVisitor implements UpdateBySpec.Visitor, UpdateByOp * @return true if the type is one of the useable time types */ public boolean isTimeType(final @NotNull Class type) { - // TODO: extend time handling similar to enterprise (Instant, ZonedDateTime, LocalDate, LocalTime) - return type == DateTime.class; + // TODO: extend time handling similar to enterprise (ZonedDateTime, LocalDate, LocalTime) + return type == Instant.class; } @Override diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/AsyncErrorLogger.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/AsyncErrorLogger.java index 341ae4d2d51..8a4b55baad4 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/AsyncErrorLogger.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/AsyncErrorLogger.java @@ -6,19 +6,19 @@ import io.deephaven.engine.table.Table; import io.deephaven.engine.table.TableListener; import io.deephaven.engine.table.impl.perf.PerformanceEntry; -import io.deephaven.time.DateTime; import io.deephaven.qst.column.header.ColumnHeader; import io.deephaven.qst.table.TableHeader; import io.deephaven.tablelogger.RowSetter; import java.io.IOException; +import java.time.Instant; @SuppressWarnings("unchecked") public class AsyncErrorLogger { private static final DynamicTableWriter tableWriter = new DynamicTableWriter( TableHeader.of( - ColumnHeader.of("Time", DateTime.class), + ColumnHeader.of("Time", Instant.class), ColumnHeader.ofInt("EvaluationNumber"), ColumnHeader.ofInt("OperationNumber"), ColumnHeader.ofString("Description"), @@ -28,7 +28,7 @@ public class AsyncErrorLogger { ColumnHeader.of("Cause", Exception.class), ColumnHeader.ofString("WorkerName"), ColumnHeader.ofString("HostName"))); - private static final RowSetter timeSetter = tableWriter.getSetter("Time"); + private static final RowSetter timeSetter = tableWriter.getSetter("Time"); private static final RowSetter evaluationNumberSetter = tableWriter.getSetter("EvaluationNumber"); private static final RowSetter operationNumberSetter = tableWriter.getSetter("OperationNumber"); private static final RowSetter descriptionSetter = tableWriter.getSetter("Description"); @@ -45,7 +45,7 @@ public static Table getErrorLog() { return tableWriter.getTable(); } - public static void log(DateTime time, TableListener.Entry entry, + public static void log(Instant time, TableListener.Entry entry, TableListener.Entry sourceEntry, Throwable originalException) throws IOException { timeSetter.set(time); if (entry instanceof PerformanceEntry) { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/ColumnHolder.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/ColumnHolder.java index f568a6bb5c6..0a82a2c988e 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/ColumnHolder.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/ColumnHolder.java @@ -194,12 +194,12 @@ public static ColumnHolder makeForChunk(String name, Class type, Class /** * Create a column holder for an Instant column where the values are represented as longs. Whatever process produces * a table from this column holder should respect this and create the appropriate type of ColumnSource. Under normal - * conditions, this will be a InstantArraySource (see {@link #getColumnSource()}). + * conditions, this will bean InstantArraySource (see {@link #getColumnSource()}). * * @param name column name * @param grouped true if the column is grouped; false otherwise * @param data column data (long integers representing nanos since the epoch) - * @return a Instant column holder implemented with longs for storage + * @returnan Instant column holder implemented with longs for storage */ public static ColumnHolder getInstantColumnHolder(String name, boolean grouped, long... data) { return new ColumnHolder<>(name, grouped, Instant.class, null, data); @@ -208,12 +208,12 @@ public static ColumnHolder getInstantColumnHolder(String name, boolean /** * Create a column holder for an Instant column where the values are represented as longs. Whatever process produces * a table from this column holder should respect this and create the appropriate type of ColumnSource. Under normal - * conditions, this will be a InstantArraySource (see {@link #getColumnSource()}). + * conditions, this will bean InstantArraySource (see {@link #getColumnSource()}). * * @param name column name * @param grouped true if the column is grouped; false otherwise * @param chunkData column data (long integers representing nanos since the epoch) - * @return a Instant column holder implemented with longs for storage + * @returnan Instant column holder implemented with longs for storage */ public static ColumnHolder getInstantColumnHolder(String name, boolean grouped, Chunk chunkData) { return new ColumnHolder<>(true, name, Instant.class, null, grouped, chunkData); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/TableTimeConversions.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/TableTimeConversions.java index 43627a3373c..dfe663e7205 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/TableTimeConversions.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/TableTimeConversions.java @@ -9,7 +9,6 @@ import io.deephaven.engine.table.Table; import io.deephaven.engine.table.impl.select.MatchPairFactory; import io.deephaven.engine.table.impl.select.ReinterpretedColumn; -import io.deephaven.time.DateTime; import io.deephaven.util.annotations.ScriptApi; import org.jetbrains.annotations.NotNull; @@ -20,8 +19,8 @@ import java.time.ZonedDateTime; /** - * This class contains static methods to support conversions between various time types such as {@link DateTime}, - * {@link Instant}, {@link ZonedDateTime}, {@link LocalDate}, {@link LocalTime}, and {@code long}. + * This class contains static methods to support conversions between various time types such as {@link Instant}, + * {@link ZonedDateTime}, {@link LocalDate}, {@link LocalTime}, and {@code long}. * *

      * For example, lets say that you wanted to select multiple days from a table, but filter them to a specific times of @@ -268,31 +267,6 @@ public static Table asInstant(final @NotNull Table source, @NotNull final MatchP } // endregion - // region to DateTime - /** - * Convert the specified column in the table to a {@link DateTime} column. The column may be specified as a single - * value "Column" or a pair "NewColumn = OriginalColumn" - * - * @param source The source table - * @param column The column to convert, in {@link MatchPair} format - * @return the {@link Table} with the specified column converted to {@link DateTime}. - */ - public static Table asDateTime(final @NotNull Table source, @NotNull final String column) { - return asDateTime(source, MatchPairFactory.getExpression(Require.neqNull(column, "column"))); - } - - /** - * Convert the specified column in the table to a {@link DateTime} column. - * - * @param source The source table - * @param matchPair The {@link MatchPair} of columns - * @return the {@link Table} with the specified column converted to {@link DateTime}. - */ - public static Table asDateTime(final @NotNull Table source, @NotNull final MatchPair matchPair) { - return convertTimeColumn(source, matchPair, DateTime.class); - } - // endregion - // region to EpochNanos /** * Convert the specified column in the table to a {@code long} column of nanos since epoch. The column may be @@ -325,8 +299,10 @@ public static Table asEpochNanos(final @NotNull Table source, @NotNull final Mat * @return true if the type is one of the useable time types */ public static boolean isTimeType(final @NotNull Class type) { - return type == DateTime.class || type == Instant.class || type == ZonedDateTime.class || - type == LocalDate.class || type == LocalTime.class; + return type == Instant.class + || type == ZonedDateTime.class + || type == LocalDate.class + || type == LocalTime.class; } /** diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/TailInitializationFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/TailInitializationFilter.java index 6da946740c8..ab88542bbc3 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/TailInitializationFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/TailInitializationFilter.java @@ -9,7 +9,6 @@ import io.deephaven.engine.rowset.RowSetFactory; import io.deephaven.engine.rowset.TrackingWritableRowSet; import io.deephaven.engine.table.Table; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.table.impl.perf.QueryPerformanceRecorder; import io.deephaven.engine.table.impl.BaseTable; @@ -18,6 +17,7 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.util.QueryConstants; +import java.time.Instant; import java.util.function.LongUnaryOperator; /** @@ -59,13 +59,11 @@ public static Table mostRecent(final Table table, final String timestampName, fi */ public static Table mostRecent(final Table table, final String timestampName, final long nanos) { return QueryPerformanceRecorder.withNugget("TailInitializationFilter(" + nanos + ")", () -> { - final ColumnSource timestampSource = table.getColumnSource(timestampName, DateTime.class); + final ColumnSource timestampSource = table.getColumnSource(timestampName, Instant.class); if (timestampSource.allowsReinterpret(long.class)) { - // noinspection unchecked return mostRecentLong(table, timestampSource.reinterpret(long.class), nanos); } else { - // noinspection unchecked - return mostRecentDateTime(table, timestampSource, nanos); + return mostRecentInstant(table, timestampSource, nanos); } }); } @@ -74,8 +72,11 @@ private static Table mostRecentLong(final Table table, final ColumnSource return mostRecentLong(table, reinterpret::getLong, nanos); } - private static Table mostRecentDateTime(final Table table, final ColumnSource cs, final long nanos) { - return mostRecentLong(table, (idx) -> cs.get(idx).getNanos(), nanos); + private static Table mostRecentInstant(final Table table, final ColumnSource cs, final long nanos) { + return mostRecentLong(table, (idx) -> { + Instant instant = cs.get(idx); + return DateTimeUtils.epochNanos(instant); + }, nanos); } private static Table mostRecentLong(final Table table, final LongUnaryOperator getValue, final long nanos) { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/freezeby/FreezeByOperator.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/freezeby/FreezeByOperator.java index dc72b8b0c97..f5a707bd815 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/util/freezeby/FreezeByOperator.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/util/freezeby/FreezeByOperator.java @@ -10,7 +10,6 @@ import io.deephaven.engine.table.TableUpdate; import io.deephaven.engine.table.WritableColumnSource; import io.deephaven.engine.rowset.chunkattributes.RowKeys; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.by.IterativeChunkedAggregationOperator; import io.deephaven.engine.table.impl.sources.*; import io.deephaven.chunk.*; @@ -117,7 +116,7 @@ private static FreezeByHelper makeHelper(WritableColumnSource source, FreezeByCo case Double: return new DoubleFreezeByHelper(source, rowCount); case Object: - if (source.getType() == DateTime.class || source.getType() == Instant.class) { + if (source.getType() == Instant.class) { return new LongFreezeByHelper(((NanosBasedTimeArraySource) source).toEpochNano(), rowCount); } else if (source.getType() == Boolean.class) { return new BooleanFreezeByHelper(source, rowCount); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/lang/impl/QueryLibraryImportsDefaults.java b/engine/table/src/main/java/io/deephaven/engine/table/lang/impl/QueryLibraryImportsDefaults.java index 9f2fdeec451..256a5359fae 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/lang/impl/QueryLibraryImportsDefaults.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/lang/impl/QueryLibraryImportsDefaults.java @@ -21,7 +21,6 @@ import io.deephaven.engine.util.ColorUtilImpl; import io.deephaven.function.*; import io.deephaven.gui.color.Color; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.time.calendar.StaticCalendarMethods; import io.deephaven.util.QueryConstants; @@ -58,7 +57,6 @@ public Set> classes() { DataColumn.class, ArrayTypeUtils.class, VectorConversions.class, - DateTime.class, DateTimeUtils.class, CompressedString.class, java.util.Arrays.class, diff --git a/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/QueryOperationPerformanceLogLoggerMemoryImpl.java b/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/QueryOperationPerformanceLogLoggerMemoryImpl.java index 1ad0fc08a7d..bbe82862842 100644 --- a/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/QueryOperationPerformanceLogLoggerMemoryImpl.java +++ b/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/QueryOperationPerformanceLogLoggerMemoryImpl.java @@ -6,7 +6,6 @@ import io.deephaven.engine.table.impl.perf.QueryPerformanceNugget; import io.deephaven.engine.table.impl.util.EngineMetrics; import io.deephaven.engine.tablelogger.QueryOperationPerformanceLogLogger; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.util.ColumnsSpecHelper; import io.deephaven.tablelogger.*; @@ -14,6 +13,7 @@ import io.deephaven.engine.table.TableDefinition; import io.deephaven.util.QueryConstants; import java.io.IOException; +import java.time.Instant; class QueryOperationPerformanceLogLoggerMemoryImpl extends MemoryTableLogger @@ -45,8 +45,8 @@ class DirectSetter extends BaseSetter implements ISetter { RowSetter CallerLine; RowSetter IsTopLevel; RowSetter IsCompilation; - RowSetter StartTime; - RowSetter EndTime; + RowSetter StartTime; + RowSetter EndTime; RowSetter DurationNanos; RowSetter CpuNanos; RowSetter UserCpuNanos; @@ -68,8 +68,8 @@ class DirectSetter extends BaseSetter implements ISetter { CallerLine = row.getSetter("CallerLine", String.class); IsTopLevel = row.getSetter("IsTopLevel", Boolean.class); IsCompilation = row.getSetter("IsCompilation", Boolean.class); - StartTime = row.getSetter("StartTime", DateTime.class); - EndTime = row.getSetter("EndTime", DateTime.class); + StartTime = row.getSetter("StartTime", Instant.class); + EndTime = row.getSetter("EndTime", Instant.class); DurationNanos = row.getSetter("DurationNanos", long.class); CpuNanos = row.getSetter("CpuNanos", long.class); UserCpuNanos = row.getSetter("UserCpuNanos", long.class); @@ -95,10 +95,10 @@ public void log(final Row.Flags flags, final int operationNumber, final QueryPer this.CallerLine.set(nugget.getCallerLine()); this.IsTopLevel.setBoolean(nugget.isTopLevel()); this.IsCompilation.setBoolean(nugget.getName().startsWith("Compile:")); - this.StartTime.set(DateTimeUtils.epochMillisToDateTime(nugget.getStartClockTime())); + this.StartTime.set(DateTimeUtils.epochMillisToInstant(nugget.getStartClockTime())); this.EndTime.set(nugget.getTotalTimeNanos() == null ? null - : DateTimeUtils.epochMillisToDateTime( + : DateTimeUtils.epochMillisToInstant( nugget.getStartClockTime() + DateTimeUtils.nanosToMillis(nugget.getTotalTimeNanos()))); this.DurationNanos.setLong( nugget.getTotalTimeNanos() == null ? QueryConstants.NULL_LONG : nugget.getTotalTimeNanos()); @@ -133,8 +133,8 @@ protected String threadName() { .add("CallerLine", String.class) .add("IsTopLevel", Boolean.class) .add("IsCompilation", Boolean.class) - .add("StartTime", DateTime.class) - .add("EndTime", DateTime.class) + .add("StartTime", Instant.class) + .add("EndTime", Instant.class) .add("DurationNanos", long.class) .add("CpuNanos", long.class) .add("UserCpuNanos", long.class) diff --git a/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/QueryPerformanceLogLoggerMemoryImpl.java b/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/QueryPerformanceLogLoggerMemoryImpl.java index 07ed57cee7c..7559fda55f9 100644 --- a/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/QueryPerformanceLogLoggerMemoryImpl.java +++ b/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/QueryPerformanceLogLoggerMemoryImpl.java @@ -5,7 +5,6 @@ import io.deephaven.engine.table.impl.util.EngineMetrics; import io.deephaven.engine.tablelogger.QueryPerformanceLogLogger; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.tablelogger.*; import io.deephaven.engine.table.TableDefinition; @@ -14,6 +13,7 @@ import io.deephaven.engine.table.impl.perf.QueryPerformanceNugget; import io.deephaven.util.QueryConstants; import java.io.IOException; +import java.time.Instant; class QueryPerformanceLogLoggerMemoryImpl extends MemoryTableLogger implements QueryPerformanceLogLogger { @@ -39,8 +39,8 @@ void log(Row.Flags flags, final long evaluationNumber, class DirectSetter extends BaseSetter implements ISetter { RowSetter ProcessUniqueId; RowSetter EvaluationNumber; - RowSetter StartTime; - RowSetter EndTime; + RowSetter StartTime; + RowSetter EndTime; RowSetter DurationNanos; RowSetter CpuNanos; RowSetter UserCpuNanos; @@ -59,8 +59,8 @@ class DirectSetter extends BaseSetter implements ISetter { DirectSetter() { ProcessUniqueId = row.getSetter("ProcessUniqueId", String.class); EvaluationNumber = row.getSetter("EvaluationNumber", long.class); - StartTime = row.getSetter("StartTime", DateTime.class); - EndTime = row.getSetter("EndTime", DateTime.class); + StartTime = row.getSetter("StartTime", Instant.class); + EndTime = row.getSetter("EndTime", Instant.class); DurationNanos = row.getSetter("DurationNanos", long.class); CpuNanos = row.getSetter("CpuNanos", long.class); UserCpuNanos = row.getSetter("UserCpuNanos", long.class); @@ -85,10 +85,10 @@ public void log( setRowFlags(flags); this.ProcessUniqueId.set(processUniqueId); this.EvaluationNumber.setLong(evaluationNumber); - this.StartTime.set(DateTimeUtils.epochMillisToDateTime(nugget.getStartClockTime())); + this.StartTime.set(DateTimeUtils.epochMillisToInstant(nugget.getStartClockTime())); this.EndTime.set(nugget.getTotalTimeNanos() == null ? null - : DateTimeUtils.epochMillisToDateTime( + : DateTimeUtils.epochMillisToInstant( nugget.getStartClockTime() + DateTimeUtils.nanosToMillis(nugget.getTotalTimeNanos()))); this.DurationNanos.setLong( nugget.getTotalTimeNanos() == null ? QueryConstants.NULL_LONG : nugget.getTotalTimeNanos()); @@ -120,8 +120,8 @@ protected String threadName() { final ColumnsSpecHelper cols = new ColumnsSpecHelper() .add("ProcessUniqueId", String.class) .add("EvaluationNumber", long.class) - .add("StartTime", DateTime.class) - .add("EndTime", DateTime.class) + .add("StartTime", Instant.class) + .add("EndTime", Instant.class) .add("DurationNanos", long.class) .add("CpuNanos", long.class) .add("UserCpuNanos", long.class) diff --git a/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/ServerStateLogLoggerMemoryImpl.java b/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/ServerStateLogLoggerMemoryImpl.java index 1e6f5776bd3..064cbc7eade 100644 --- a/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/ServerStateLogLoggerMemoryImpl.java +++ b/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/ServerStateLogLoggerMemoryImpl.java @@ -7,13 +7,13 @@ import io.deephaven.engine.tablelogger.ServerStateLogLogger; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.util.ColumnsSpecHelper; -import io.deephaven.time.DateTime; import io.deephaven.tablelogger.Row; import io.deephaven.tablelogger.RowSetter; import io.deephaven.tablelogger.TableLoggerImpl2; import io.deephaven.tablelogger.WritableRowContainer; import java.io.IOException; +import java.time.Instant; class ServerStateLogLoggerMemoryImpl extends MemoryTableLogger implements ServerStateLogLogger { @@ -43,7 +43,7 @@ void log( } class DirectSetter extends TableLoggerImpl2.BaseSetter implements ISetter { - RowSetter IntervalStartTime; + RowSetter IntervalStartTime; RowSetter IntervalDurationMicros; RowSetter TotalMemoryMiB; RowSetter FreeMemoryMiB; @@ -55,7 +55,7 @@ class DirectSetter extends TableLoggerImpl2.BaseSetter implements ISetter { RowSetter IntervalUGPCyclesSafePointTimeMicros; DirectSetter() { - IntervalStartTime = row.getSetter("IntervalStartTime", DateTime.class); + IntervalStartTime = row.getSetter("IntervalStartTime", Instant.class); IntervalDurationMicros = row.getSetter("IntervalDurationMicros", int.class); TotalMemoryMiB = row.getSetter("TotalMemoryMiB", int.class); FreeMemoryMiB = row.getSetter("FreeMemoryMiB", int.class); @@ -82,7 +82,7 @@ public void log( final short intervalUGPCyclesSafePoints, final int intervalUGPCyclesSafePointTimeMicros) throws IOException { setRowFlags(flags); - this.IntervalStartTime.set(DateTimeUtils.epochMillisToDateTime(intervalStartTime)); + this.IntervalStartTime.set(DateTimeUtils.epochMillisToInstant(intervalStartTime)); this.IntervalDurationMicros.set(intervalDurationMicros); this.TotalMemoryMiB.set(totalMemoryMiB); this.FreeMemoryMiB.set(freeMemoryMiB); @@ -105,7 +105,7 @@ protected String threadName() { static { final ColumnsSpecHelper cols = new ColumnsSpecHelper() - .add("IntervalStartTime", DateTime.class) + .add("IntervalStartTime", Instant.class) .add("IntervalDurationMicros", int.class) .add("TotalMemoryMiB", int.class) .add("FreeMemoryMiB", int.class) diff --git a/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/UpdatePerformanceLogLoggerMemoryImpl.java b/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/UpdatePerformanceLogLoggerMemoryImpl.java index f3e090f6fce..d024cb6f3d6 100644 --- a/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/UpdatePerformanceLogLoggerMemoryImpl.java +++ b/engine/table/src/main/java/io/deephaven/engine/tablelogger/impl/memory/UpdatePerformanceLogLoggerMemoryImpl.java @@ -4,12 +4,13 @@ package io.deephaven.engine.tablelogger.impl.memory; import java.io.IOException; +import java.time.Instant; + import io.deephaven.engine.table.TableDefinition; import io.deephaven.engine.table.impl.util.EngineMetrics; import io.deephaven.engine.tablelogger.UpdatePerformanceLogLogger; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.util.ColumnsSpecHelper; -import io.deephaven.time.DateTime; import io.deephaven.tablelogger.*; import static io.deephaven.engine.table.impl.perf.UpdatePerformanceTracker.IntervalLevelDetails; @@ -44,8 +45,8 @@ class DirectSetter extends BaseSetter implements ISetter { RowSetter OperationNumber; RowSetter EntryDescription; RowSetter EntryCallerLine; - RowSetter IntervalStartTime; - RowSetter IntervalEndTime; + RowSetter IntervalStartTime; + RowSetter IntervalEndTime; RowSetter IntervalDurationNanos; RowSetter EntryIntervalUsage; RowSetter EntryIntervalCpuNanos; @@ -69,8 +70,8 @@ class DirectSetter extends BaseSetter implements ISetter { OperationNumber = row.getSetter("OperationNumber", int.class); EntryDescription = row.getSetter("EntryDescription", String.class); EntryCallerLine = row.getSetter("EntryCallerLine", String.class); - IntervalStartTime = row.getSetter("IntervalStartTime", DateTime.class); - IntervalEndTime = row.getSetter("IntervalEndTime", DateTime.class); + IntervalStartTime = row.getSetter("IntervalStartTime", Instant.class); + IntervalEndTime = row.getSetter("IntervalEndTime", Instant.class); IntervalDurationNanos = row.getSetter("IntervalDurationNanos", long.class); EntryIntervalUsage = row.getSetter("EntryIntervalUsage", long.class); EntryIntervalCpuNanos = row.getSetter("EntryIntervalCpuNanos", long.class); @@ -98,8 +99,8 @@ public void log(final Row.Flags flags, final IntervalLevelDetails intervalLevelD this.OperationNumber.setInt(performanceEntry.getOperationNumber()); this.EntryDescription.set(performanceEntry.getDescription()); this.EntryCallerLine.set(performanceEntry.getCallerLine()); - this.IntervalStartTime.set(DateTimeUtils.epochMillisToDateTime(intervalLevelDetails.getIntervalStartTimeMillis())); - this.IntervalEndTime.set(DateTimeUtils.epochMillisToDateTime(intervalLevelDetails.getIntervalEndTimeMillis())); + this.IntervalStartTime.set(DateTimeUtils.epochMillisToInstant(intervalLevelDetails.getIntervalStartTimeMillis())); + this.IntervalEndTime.set(DateTimeUtils.epochMillisToInstant(intervalLevelDetails.getIntervalEndTimeMillis())); this.IntervalDurationNanos.setLong(intervalLevelDetails.getIntervalDurationNanos()); this.EntryIntervalUsage.setLong(performanceEntry.getIntervalUsageNanos()); this.EntryIntervalCpuNanos.setLong(performanceEntry.getIntervalCpuNanos()); @@ -135,8 +136,8 @@ protected String threadName() { .add("EntryDescription", String.class) .add("EntryCallerLine", String.class) - .add("IntervalStartTime", DateTime.class) - .add("IntervalEndTime", DateTime.class) + .add("IntervalStartTime", Instant.class) + .add("IntervalEndTime", Instant.class) .add("IntervalDurationNanos", long.class) .add("EntryIntervalUsage", long.class) diff --git a/engine/table/src/main/java/io/deephaven/engine/util/GroovyDeephavenSession.java b/engine/table/src/main/java/io/deephaven/engine/util/GroovyDeephavenSession.java index 32225cead0f..acfbc542580 100644 --- a/engine/table/src/main/java/io/deephaven/engine/util/GroovyDeephavenSession.java +++ b/engine/table/src/main/java/io/deephaven/engine/util/GroovyDeephavenSession.java @@ -510,7 +510,6 @@ private Pair fullCommand(String command) { "import java.lang.reflect.Array;\n" + "import io.deephaven.util.type.TypeUtils;\n" + "import io.deephaven.util.type.ArrayTypeUtils;\n" + - "import io.deephaven.time.DateTime;\n" + "import io.deephaven.time.DateTimeUtils;\n" + "import io.deephaven.base.string.cache.CompressedString;\n" + "import static io.deephaven.base.string.cache.CompressedString.compress;\n" + diff --git a/engine/table/src/main/java/io/deephaven/engine/util/HtmlTable.java b/engine/table/src/main/java/io/deephaven/engine/util/HtmlTable.java index 5d850a44080..2adee4bc7b2 100644 --- a/engine/table/src/main/java/io/deephaven/engine/util/HtmlTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/util/HtmlTable.java @@ -4,12 +4,13 @@ package io.deephaven.engine.util; import io.deephaven.engine.table.Table; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.rowset.RowSet; +import io.deephaven.time.DateTimeUtils; import org.apache.commons.text.StringEscapeUtils; import org.jetbrains.annotations.NotNull; +import java.time.Instant; import java.time.ZoneId; import java.util.Collection; import java.util.List; @@ -37,8 +38,8 @@ public static String html(Table source) { final Object value = columnSource.get(key); if (value instanceof String) { out.append(StringEscapeUtils.escapeCsv((String) value)); - } else if (value instanceof DateTime) { - out.append(((DateTime) value).toString(ZoneId.systemDefault())); + } else if (value instanceof Instant) { + out.append(DateTimeUtils.formatDateTime((Instant) value, ZoneId.systemDefault())); } else { out.append(TableTools.nullToNullString(value)); } diff --git a/engine/table/src/main/java/io/deephaven/engine/util/TableShowTools.java b/engine/table/src/main/java/io/deephaven/engine/util/TableShowTools.java index 229549f5e3c..ac65b727082 100644 --- a/engine/table/src/main/java/io/deephaven/engine/util/TableShowTools.java +++ b/engine/table/src/main/java/io/deephaven/engine/util/TableShowTools.java @@ -7,13 +7,14 @@ import io.deephaven.engine.table.Table; import io.deephaven.engine.table.impl.perf.QueryPerformanceNugget; import io.deephaven.engine.table.impl.perf.QueryPerformanceRecorder; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.rowset.RowSet; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.type.ArrayTypeUtils; import java.io.PrintStream; import java.lang.annotation.Annotation; +import java.time.Instant; import java.time.ZoneId; import java.util.Arrays; import java.util.HashSet; @@ -119,7 +120,7 @@ private static int getColumnLen(String name, ColumnSource columnSource, RowSet r len = Math.max(len, 20); } else if (columnSource.getType() == double.class || columnSource.getType() == Double.class) { len = Math.max(len, 20); - } else if (columnSource.getType() == DateTime.class) { + } else if (columnSource.getType() == Instant.class) { len = Math.max(len, 33); } else if (columnSource.getType() == java.util.Date.class) { len = Math.max(len, 33); @@ -145,8 +146,8 @@ private static int getColumnLen(String name, ColumnSource columnSource, RowSet r } private static ColumnPrinter getColumnPrinter(ColumnSource column, int len, ZoneId timeZone) { - if (column.getType() == DateTime.class) { - return new DateTimePrinter(len, timeZone); + if (column.getType() == Instant.class) { + return new InstantPrinter(len, timeZone); } else if (!column.getType().isArray()) { return new DefaultPrinter(len); } else if (!column.getType().getComponentType().isPrimitive()) { @@ -242,18 +243,18 @@ public void print(PrintStream out, Object value) { } } - private static class DateTimePrinter extends DefaultPrinter { + private static class InstantPrinter extends DefaultPrinter { private final ZoneId timeZone; - private DateTimePrinter(int len, ZoneId timeZone) { + private InstantPrinter(int len, ZoneId timeZone) { super(len); this.timeZone = timeZone; } @Override public void print(PrintStream out, Object value) { - super.print(out, value == null ? null : ((DateTime) value).toString(timeZone)); + super.print(out, value == null ? null : DateTimeUtils.formatDateTime((Instant) value, timeZone)); } } diff --git a/engine/table/src/main/java/io/deephaven/engine/util/TableTools.java b/engine/table/src/main/java/io/deephaven/engine/util/TableTools.java index 91c0124a4db..c2cd0676723 100644 --- a/engine/table/src/main/java/io/deephaven/engine/util/TableTools.java +++ b/engine/table/src/main/java/io/deephaven/engine/util/TableTools.java @@ -14,7 +14,6 @@ import io.deephaven.engine.table.*; import io.deephaven.engine.table.impl.perf.QueryPerformanceRecorder; import io.deephaven.internal.log.LoggerFactory; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.table.impl.QueryTable; @@ -37,6 +36,7 @@ import java.security.DigestOutputStream; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; +import java.time.Instant; import java.time.ZoneId; import java.util.*; import java.util.function.BinaryOperator; @@ -112,7 +112,7 @@ public static void showCommaDelimited(Table source, String... columns) { * Prints the first few rows of a table to standard output. * * @param source a Deephaven table object - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param columns varargs of column names to display */ public static void show(Table source, ZoneId timeZone, String... columns) { @@ -158,7 +158,7 @@ public static void showCommaDelimited(Table source, long maxRowCount, String... * * @param source a Deephaven table object * @param maxRowCount the number of rows to return - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param columns varargs of column names to display */ public static void show(Table source, long maxRowCount, ZoneId timeZone, @@ -171,7 +171,7 @@ public static void show(Table source, long maxRowCount, ZoneId timeZone, * * @param source a Deephaven table object * @param maxRowCount the number of rows to return - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param out a PrintStream destination to which to print the data * @param columns varargs of column names to display */ @@ -186,7 +186,7 @@ public static void show(Table source, long maxRowCount, ZoneId timeZone, PrintSt * * @param source a Deephaven table object * @param maxRowCount the number of rows to return - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param out a PrintStream destination to which to print the data * @param columns varargs of column names to display */ @@ -216,7 +216,7 @@ public static void showWithRowSet(Table source, long firstRow, long lastRow, Pri * * @param source a Deephaven table object * @param maxRowCount the number of rows to return - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param delimiter a String value to use between printed values * @param out a PrintStream destination to which to print the data * @param showRowSet a boolean indicating whether to also print rowSet details @@ -269,7 +269,7 @@ public static String string(Table t, int size, String... columns) { * Returns the first few rows of a table as a pipe-delimited string. * * @param t a Deephaven table object - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param columns varargs of columns to include in the result * @return a String */ @@ -282,7 +282,7 @@ public static String string(Table t, ZoneId timeZone, String... columns) { * * @param table a Deephaven table object * @param size the number of rows to return - * @param timeZone a time zone constant relative to which DateTime data should be adjusted + * @param timeZone a time zone constant relative to which date time data should be adjusted * @param columns varargs of columns to include in the result * @return a String */ @@ -553,16 +553,16 @@ public static ColumnHolder stringCol(String name, String... data) { } /** - * Returns a ColumnHolder of type DateTime that can be used when creating in-memory tables. + * Returns a ColumnHolder of type Instant that can be used when creating in-memory tables. * * @param name name of the column * @param data a list of values for the column * @return a Deephaven ColumnHolder object */ - public static ColumnHolder dateTimeCol(String name, DateTime... data) { + public static ColumnHolder instantCol(String name, Instant... data) { // NB: IntelliJ says that we do not need to cast data, but javac warns about this statement otherwise // noinspection RedundantCast - return new ColumnHolder<>(name, DateTime.class, null, false, (DateTime[]) data); + return new ColumnHolder<>(name, Instant.class, null, false, (Instant[]) data); } /** @@ -788,7 +788,7 @@ public static Table timeTable(String period, ReplayerInterface replayer) { * @param period time interval between new row additions * @return time table */ - public static Table timeTable(DateTime startTime, String period) { + public static Table timeTable(Instant startTime, String period) { final long periodValue = DateTimeUtils.parseNanos(period); return timeTable(startTime, periodValue); } @@ -801,7 +801,7 @@ public static Table timeTable(DateTime startTime, String period) { * @param replayer data replayer * @return time table */ - public static Table timeTable(DateTime startTime, String period, ReplayerInterface replayer) { + public static Table timeTable(Instant startTime, String period, ReplayerInterface replayer) { final long periodValue = DateTimeUtils.parseNanos(period); return timeTable(startTime, periodValue, replayer); } @@ -814,7 +814,7 @@ public static Table timeTable(DateTime startTime, String period, ReplayerInterfa * @return time table */ public static Table timeTable(String startTime, String period) { - return timeTable(DateTimeUtils.parseDateTime(startTime), period); + return timeTable(DateTimeUtils.parseInstant(startTime), period); } /** @@ -826,7 +826,7 @@ public static Table timeTable(String startTime, String period) { * @return time table */ public static Table timeTable(String startTime, String period, ReplayerInterface replayer) { - return timeTable(DateTimeUtils.parseDateTime(startTime), period, replayer); + return timeTable(DateTimeUtils.parseInstant(startTime), period, replayer); } /** @@ -847,8 +847,7 @@ public static Table timeTable(long periodNanos) { * @return time table */ public static Table timeTable(long periodNanos, ReplayerInterface replayer) { - return new TimeTable(UpdateGraphProcessor.DEFAULT, Replayer.getClock(replayer), - null, periodNanos, false); + return new TimeTable(UpdateGraphProcessor.DEFAULT, Replayer.getClock(replayer), null, periodNanos, false); } /** @@ -858,9 +857,8 @@ public static Table timeTable(long periodNanos, ReplayerInterface replayer) { * @param periodNanos time interval between new row additions in nanoseconds. * @return time table */ - public static Table timeTable(DateTime startTime, long periodNanos) { - return new TimeTable(UpdateGraphProcessor.DEFAULT, DateTimeUtils.currentClock(), - startTime, periodNanos, false); + public static Table timeTable(Instant startTime, long periodNanos) { + return new TimeTable(UpdateGraphProcessor.DEFAULT, DateTimeUtils.currentClock(), startTime, periodNanos, false); } /** @@ -871,9 +869,8 @@ public static Table timeTable(DateTime startTime, long periodNanos) { * @param replayer data replayer * @return time table */ - public static Table timeTable(DateTime startTime, long periodNanos, ReplayerInterface replayer) { - return new TimeTable(UpdateGraphProcessor.DEFAULT, Replayer.getClock(replayer), - startTime, periodNanos, false); + public static Table timeTable(Instant startTime, long periodNanos, ReplayerInterface replayer) { + return new TimeTable(UpdateGraphProcessor.DEFAULT, Replayer.getClock(replayer), startTime, periodNanos, false); } /** @@ -884,7 +881,7 @@ public static Table timeTable(DateTime startTime, long periodNanos, ReplayerInte * @return time table */ public static Table timeTable(String startTime, long periodNanos) { - return timeTable(DateTimeUtils.parseDateTime(startTime), periodNanos); + return timeTable(DateTimeUtils.parseInstant(startTime), periodNanos); } /** @@ -896,7 +893,7 @@ public static Table timeTable(String startTime, long periodNanos) { * @return time table */ public static Table timeTable(String startTime, long periodNanos, ReplayerInterface replayer) { - return timeTable(DateTimeUtils.parseDateTime(startTime), periodNanos, replayer); + return timeTable(DateTimeUtils.parseInstant(startTime), periodNanos, replayer); } /** @@ -907,7 +904,7 @@ public static Table timeTable(String startTime, long periodNanos, ReplayerInterf * @param periodNanos time interval between new row additions in nanoseconds. * @return time table */ - public static Table timeTable(Clock clock, DateTime startTime, long periodNanos) { + public static Table timeTable(Clock clock, Instant startTime, long periodNanos) { return new TimeTable(UpdateGraphProcessor.DEFAULT, clock, startTime, periodNanos, false); } @@ -1155,9 +1152,9 @@ public static String base64Fingerprint(Table source) throws IOException { private static void processColumnForFingerprint(RowSequence ok, ColumnSource col, DataOutputStream outputStream) throws IOException { - if (col.getType() == DateTime.class) { + if (col.getType() == Instant.class) { // noinspection unchecked - col = ReinterpretUtils.dateTimeToLongSource((ColumnSource) col); + col = ReinterpretUtils.instantToLongSource((ColumnSource) col); } final int chunkSize = 1 << 16; diff --git a/engine/table/src/main/java/io/deephaven/engine/util/WindowCheck.java b/engine/table/src/main/java/io/deephaven/engine/util/WindowCheck.java index 2dc30e37d48..c060997fbe7 100644 --- a/engine/table/src/main/java/io/deephaven/engine/util/WindowCheck.java +++ b/engine/table/src/main/java/io/deephaven/engine/util/WindowCheck.java @@ -24,7 +24,6 @@ import io.deephaven.engine.table.impl.sources.ReinterpretUtils; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.*; import io.deephaven.engine.table.impl.AbstractColumnSource; import io.deephaven.engine.table.ColumnSource; @@ -35,6 +34,7 @@ import io.deephaven.util.QueryConstants; import org.jetbrains.annotations.NotNull; +import java.time.Instant; import java.util.*; /** @@ -428,11 +428,11 @@ private static class InWindowColumnSource extends AbstractColumnSource super(Boolean.class); this.windowNanos = windowNanos; - final ColumnSource timeStampSource = table.getColumnSource(timestampColumn); - if (!DateTime.class.isAssignableFrom(timeStampSource.getType())) { - throw new IllegalArgumentException(timestampColumn + " is not of type DateTime!"); + final ColumnSource timeStampSource = table.getColumnSource(timestampColumn); + if (!Instant.class.isAssignableFrom(timeStampSource.getType())) { + throw new IllegalArgumentException(timestampColumn + " is not of type Instant!"); } - this.timeStampSource = ReinterpretUtils.dateTimeToLongSource(timeStampSource); + this.timeStampSource = ReinterpretUtils.instantToLongSource(timeStampSource); } /** diff --git a/engine/table/src/main/java/io/deephaven/engine/util/caching/C14nUtil.java b/engine/table/src/main/java/io/deephaven/engine/util/caching/C14nUtil.java index fca7ca27a35..ae401eed624 100644 --- a/engine/table/src/main/java/io/deephaven/engine/util/caching/C14nUtil.java +++ b/engine/table/src/main/java/io/deephaven/engine/util/caching/C14nUtil.java @@ -30,8 +30,8 @@ public class C14nUtil { String.class, CompressedString.class, - // DateTimes used in aggregations are most likely expirations. - // DateTime.class, + // Instants used in aggregations are most likely expirations. + // Instant.class, // If we're going to bother canonicalizing key members, we might as well do the keys themselves. // ArrayTuple.class diff --git a/engine/table/src/main/java/io/deephaven/stream/StreamToTableAdapter.java b/engine/table/src/main/java/io/deephaven/stream/StreamToTableAdapter.java index b4c5d66a0b8..90f421b6c16 100644 --- a/engine/table/src/main/java/io/deephaven/stream/StreamToTableAdapter.java +++ b/engine/table/src/main/java/io/deephaven/stream/StreamToTableAdapter.java @@ -16,7 +16,6 @@ import io.deephaven.engine.table.impl.TableUpdateImpl; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.updategraph.UpdateSourceRegistrar; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.ModifiedColumnSet; import io.deephaven.engine.table.impl.QueryTable; import io.deephaven.engine.table.impl.sources.*; @@ -208,10 +207,7 @@ private static SwitchColumnSource[] makeSwitchSources(TableDefinition definit new SwitchColumnSource<>(wrapped[ii], StreamToTableAdapter::maybeClearChunkColumnSource); final ColumnSource visibleSource; - if (columnDefinition.getDataType() == DateTime.class) { - // noinspection unchecked - visibleSource = new LongAsDateTimeColumnSource((ColumnSource) switchSource); - } else if (columnDefinition.getDataType() == Instant.class) { + if (columnDefinition.getDataType() == Instant.class) { // noinspection unchecked visibleSource = new LongAsInstantColumnSource((ColumnSource) switchSource); } else if (columnDefinition.getDataType() == Boolean.class) { @@ -233,7 +229,7 @@ private static void maybeClearChunkColumnSource(ColumnSource cs) { } /** - * We change the inner columns to long and byte for DateTime and Boolean, respectively. We expect our ingesters to + * We change the inner columns to long and byte for Instant and Boolean, respectively. We expect our ingesters to * pass us these primitive chunks for those types. * * @param columnType the type of the outer column @@ -241,7 +237,7 @@ private static void maybeClearChunkColumnSource(ColumnSource cs) { * @return the type of the inner column */ private static Class replacementType(Class columnType) { - if (columnType == DateTime.class || columnType == Instant.class) { + if (columnType == Instant.class) { return long.class; } else if (columnType == Boolean.class) { return byte.class; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/FuzzerTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/FuzzerTest.java index 2b9fce4bf0d..06e1e5e35d0 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/FuzzerTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/FuzzerTest.java @@ -15,7 +15,6 @@ import io.deephaven.plugin.type.ObjectTypeLookup.NoOp; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.util.GroovyDeephavenSession; import io.deephaven.engine.util.GroovyDeephavenSession.RunScripts; @@ -33,6 +32,7 @@ import java.io.IOException; import java.io.InputStream; import java.text.DecimalFormat; +import java.time.Instant; import java.util.*; import java.util.concurrent.ConcurrentHashMap; @@ -92,8 +92,9 @@ private void testFuzzerScriptFile(final long timeSeed, String s, boolean realtim groovyString = FileUtils.readTextFile(in); } - final DateTime fakeStart = DateTimeUtils.parseDateTime("2020-03-17T13:53:25.123456 NY"); - final TestClock clock = realtime ? null : new TestClock(fakeStart.getNanos()); + final Instant fakeStart = DateTimeUtils.parseInstant("2020-03-17T13:53:25.123456 NY"); + final TestClock clock; + clock = realtime ? null : new TestClock(DateTimeUtils.epochNanos(fakeStart)); final GroovyDeephavenSession session = getGroovySession(clock); @@ -211,8 +212,8 @@ private void runLargeFuzzerSetWithSeed(long mainTestSeed, int firstRun, int last final Random sourceRandom = new Random(mainTestSeed); final Random timeRandom = new Random(mainTestSeed + 1); - final DateTime fakeStart = DateTimeUtils.parseDateTime("2020-03-17T13:53:25.123456 NY"); - final TestClock clock = new TestClock(fakeStart.getNanos()); + final Instant fakeStart = DateTimeUtils.parseInstant("2020-03-17T13:53:25.123456 NY"); + final TestClock clock = new TestClock(DateTimeUtils.epochNanos(fakeStart)); final long start = System.currentTimeMillis(); @@ -280,7 +281,7 @@ private void runLargeFuzzerSetWithSeed(long mainTestSeed, int firstRun, int last final long loopEnd = System.currentTimeMillis(); System.out.println("Elapsed time: " + (loopEnd - start) + "ms, loop: " + (loopEnd - loopStart) + "ms" + (realtime ? "" - : (", sim: " + (double) (clock.now - fakeStart.getNanos()) / DateTimeUtils.SECOND)) + : (", sim: " + (double) (clock.now - DateTimeUtils.epochNanos(fakeStart)) / DateTimeUtils.SECOND)) + ", ttSize: " + timeTable.size()); } diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryFactory.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryFactory.java index 8e8f7f440a3..b027887594f 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryFactory.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryFactory.java @@ -3,8 +3,7 @@ */ package io.deephaven.engine.table.impl; -import io.deephaven.time.DateTime; - +import java.time.Instant; import java.util.*; import java.util.stream.Collectors; @@ -55,7 +54,8 @@ public class QueryFactory { private static final String[] DEFAULT_COLUMN_NAMES = {"Timestamp", "MyString", "MyInt", "MyLong", "MyFloat", "MyDouble", "MyBoolean", "MyChar", "MyShort", "MyByte", "MyBigDecimal", "MyBigInteger"}; private static final Class[] DEFAULT_COLUMN_TYPES = - {DateTime.class, String.class, Integer.class, Long.class, Float.class, Double.class, Boolean.class, + { + Instant.class, String.class, Integer.class, Long.class, Float.class, Double.class, Boolean.class, Character.class, short.class, byte.class, java.math.BigDecimal.class, java.math.BigInteger.class}; // Copy and modify this block of code if you want to disable an operation. private static final String[] IMPLEMENTED_OPS = {"where", "merge", "flatten", "slice", "head", "tail", "headPct", @@ -663,7 +663,7 @@ private String createWhereFilter(Random random) { StringBuilder filter = new StringBuilder(); switch (columnTypes[colNum].getSimpleName()) { - case "DateTime": + case "Instant": filter.append(colName).append(" > ").append(random.nextInt(1000) * 1_000_000_000L); break; @@ -850,7 +850,7 @@ public String getTablePreamble(Long tableSeed) { "}\n" + "\n" + "randomValues = emptyTable(size)\n" + - ".update(\"Timestamp= i%nullPoints[0] == 0 ? null : new DateTime(i*1_000_000_000L)\")\n" + + ".update(\"Timestamp= i%nullPoints[0] == 0 ? null : DateTimeUtils.epochNanosToInstant(i*1_000_000_000L)\")\n" + ".update(\"MyString=(i%nullPoints[1] == 0 ? null : `a`+ (columnRandoms[0].nextInt(scale*2) - scale) )\",\n" + "\"MyInt=(i%nullPoints[2] == 0 ? null : columnRandoms[1].nextInt(scale*2) - scale )\",\n" + diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableAggregationTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableAggregationTest.java index f5432f78102..b0e9dd0a899 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableAggregationTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableAggregationTest.java @@ -37,7 +37,6 @@ import io.deephaven.engine.testutil.junit4.EngineCleanup; import io.deephaven.qst.table.AggregateAllTable; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import io.deephaven.util.SafeCloseable; @@ -151,7 +150,7 @@ public void testStaticNoKeyByWithChunks() { @Test public void testStaticReinterpretableKeyByWithChunks() { final String nowName = "__now_" + Thread.currentThread().hashCode() + "__"; - QueryScope.addParam(nowName, DateTime.now()); + QueryScope.addParam(nowName, DateTimeUtils.now()); final Table input = emptyTable(10000).update("A=ii % 100 == 0 ? null : plus(" + nowName + ", (long) (ii / 5))", "B=ii % 100 == 0 ? null : (ii & 1) == 0"); @@ -270,7 +269,7 @@ public void testIncrementalByDownstreamFromMerge() { final long mergeChunkMultiple = UnionRedirection.ALLOCATION_UNIT_ROW_KEYS; final String nowName = "__now_" + Thread.currentThread().hashCode() + "__"; - QueryScope.addParam(nowName, DateTime.now()); + QueryScope.addParam(nowName, DateTimeUtils.now()); final String tableIndexName = "__tableIndex_" + Thread.currentThread().hashCode() + "__"; final QueryTable[] parents = IntStream.range(0, 20).mapToObj((final int tableIndex) -> { @@ -319,10 +318,10 @@ public boolean shouldProbeShift(long shiftSize, int numStates) { incrementalByEvalNugget(controlSize8, merged, "TimeCol"), incrementalByEvalNugget(controlShiftByProbing, merged, "TimeCol"), incrementalByEvalNugget(controlSize8, - (QueryTable) merged.updateView("TimeCol=isNull(TimeCol) ? NULL_LONG : TimeCol.getNanos()"), + (QueryTable) merged.updateView("TimeCol=isNull(TimeCol) ? NULL_LONG : epochNanos(TimeCol)"), "TimeCol"), incrementalByEvalNugget( - (QueryTable) merged.updateView("TimeCol=isNull(TimeCol) ? NULL_LONG : TimeCol.getNanos()"), + (QueryTable) merged.updateView("TimeCol=isNull(TimeCol) ? NULL_LONG : epochNanos(TimeCol)"), "TimeCol"), incrementalByEvalNugget(controlSize8, merged, "StrCol", "IntCol"), @@ -856,8 +855,8 @@ public void testKeyColumnTypes() { new String[] {"Sym", "Date", "intCol", "doubleCol", "BooleanCol", "ByteCol", "CharCol", "ShortCol", "FloatCol", "LongCol", "BigDecimalCol", "NonKey"}, new SetGenerator<>("aa", "bb", "bc", "cc", "dd"), - new UnsortedDateTimeLongGenerator(DateTimeUtils.parseDateTime("2018-10-15T09:30:00 NY"), - DateTimeUtils.parseDateTime("2018-10-15T16:00:00 NY")), + new UnsortedInstantLongGenerator(DateTimeUtils.parseInstant("2018-10-15T09:30:00 NY"), + DateTimeUtils.parseInstant("2018-10-15T16:00:00 NY")), new IntGenerator(0, 100), new DoubleGenerator(0, 100), new BooleanGenerator(), @@ -1390,8 +1389,8 @@ private void testMinMaxByStatic(int size, boolean lotsOfStrings) { new BooleanGenerator(0.5, 0.1), new BigIntegerGenerator(0.1), new BigDecimalGenerator(0.1), - new UnsortedDateTimeGenerator(DateTimeUtils.parseDateTime("2019-12-17T00:00:00 NY"), - DateTimeUtils.parseDateTime("2019-12-17T23:59:59 NY"), 0.1), + new UnsortedInstantGenerator(DateTimeUtils.parseInstant("2019-12-17T00:00:00 NY"), + DateTimeUtils.parseInstant("2019-12-17T23:59:59 NY"), 0.1), new BooleanGenerator(0.4, 0.1))); if (RefreshingTableTestCase.printTableUpdates) { @@ -2305,8 +2304,8 @@ private void testMinMaxByIncremental(int size, int seed) { new ShortGenerator((short) 10, (short) 100, 0.1), new ByteGenerator((byte) 10, (byte) 100, 0.1), new SetGenerator<>(10.1, 20.1, 30.1), - new UnsortedDateTimeGenerator(DateTimeUtils.parseDateTime("2020-01-01T00:00:00 NY"), - DateTimeUtils.parseDateTime("2020-01-25T00:00:00 NY")), + new UnsortedInstantGenerator(DateTimeUtils.parseInstant("2020-01-01T00:00:00 NY"), + DateTimeUtils.parseInstant("2020-01-25T00:00:00 NY")), new BooleanGenerator(0.4, 0.2), new DoubleGenerator(Double.MIN_NORMAL, Double.MIN_NORMAL, 0.05, 0.05), new FloatGenerator(Float.MIN_NORMAL, Float.MIN_NORMAL, 0.05, 0.05))); @@ -2874,9 +2873,10 @@ public void testMedianTypes() { final Map expectedResults = new HashMap<>(); expectedResults.put("Timestamp", - new Object[] {DateTimeUtils.parseDateTime("2020-03-14T00:01:00 NY"), - DateTimeUtils.parseDateTime("2020-03-14T00:05:00 NY"), - DateTimeUtils.parseDateTime("2020-03-14T00:08:00 NY")}); + new Object[] { + DateTimeUtils.parseInstant("2020-03-14T00:01:00 NY"), + DateTimeUtils.parseInstant("2020-03-14T00:05:00 NY"), + DateTimeUtils.parseInstant("2020-03-14T00:08:00 NY")}); expectedResults.put("MyString", new Object[] {"1", "5", "8"}); expectedResults.put("MyInt", new Object[] {1, 4.5, 8}); expectedResults.put("MyLong", new Object[] {1L, 4.5, 8L}); @@ -3244,7 +3244,7 @@ public void testIds5942() { final Table randomValues = emptyTable(100) .update("MyInt=(i%12==0 ? null : (int)(ids5942_scale*(Math.random()*2-1)))", "MyBoolean=i%3==0 ? null : (i % 3 == 1)", - "MyDateTime=new DateTime(DateTimeUtils.convertDateTime(\"2020-01-28T00:00:00 NY\").getNanos() + 1000000000L * i)", + "MyInstant=plus(parseInstant(\"2020-01-28T00:00:00 NY\"), + 1000000000L * i))", "MyBigDecimal=(i%21==0 ? null : new java.math.BigDecimal(ids5942_scale*(Math.random()*2-1)))", "MyBigInteger=(i%22==0 ? null : new java.math.BigInteger(Integer.toString((int)(ids5942_scale*(Math.random()*2-1)))))"); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableAjTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableAjTest.java index b1cb8159634..e88cc587875 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableAjTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableAjTest.java @@ -21,7 +21,6 @@ import io.deephaven.api.expression.AsOfJoinMatchFactory; import io.deephaven.engine.table.impl.select.MatchPairFactory; import io.deephaven.engine.context.QueryScope; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.liveness.LivenessScopeStack; import io.deephaven.engine.testutil.QueryTableTestBase.JoinIncrement; @@ -33,6 +32,7 @@ import junit.framework.TestCase; import org.jetbrains.annotations.NotNull; +import java.time.Instant; import java.util.Arrays; import java.util.Collections; import java.util.List; @@ -212,8 +212,8 @@ public void testAjBoolean() { @Test public void testAjDateTime() { - final DateTime first = DateTimeUtils.parseDateTime("2019-06-14T08:30:00 NY"); - final DateTime second = DateTimeUtils.parseDateTime("2019-06-14T19:30:00 NY"); + final Instant first = DateTimeUtils.parseInstant("2019-06-14T08:30:00 NY"); + final Instant second = DateTimeUtils.parseInstant("2019-06-14T19:30:00 NY"); final Table left = TableTools.newTable( col("Bucket", "A", "A", "B", "A", "B", "C", "C", "A"), @@ -1315,8 +1315,8 @@ public void testIds5293() { try { final Table staticOne = emptyTable(size) - .update("Timestamp= i%23 == 0 ? null : new DateTime(timeOffset + (long)(scale*(Math.random()*2-0.1))*100_000_000L)", - "OtherTimestamp= i%24 == 0 ? null : new DateTime(timeOffset + (long)(scale*(Math.random()*2-0.05))*100_000_000L)", + .update("Timestamp= i%23 == 0 ? null : DateTimeUtils.epochNanosToInstant(timeOffset + (long)(scale*(Math.random()*2-0.1))*100_000_000L)", + "OtherTimestamp= i%24 == 0 ? null : DateTimeUtils.epochNanosToInstant(timeOffset + (long)(scale*(Math.random()*2-0.05))*100_000_000L)", "MyString=(i%11==0? null : `a`+(int)(scale*(Math.random()*2-1)))", "MyInt=(i%12==0 ? null : (int)(scale*(Math.random()*2-1)))", "MyLong=(i%13==0 ? null : (long)(scale*(Math.random()*2-1)))", @@ -1330,8 +1330,8 @@ public void testIds5293() { "MyBigInteger=(i%22==0 ? null : new java.math.BigInteger(Integer.toString((int)(scale*(Math.random()*2-1)))))"); final Table staticTwo = emptyTable(size) - .update("Timestamp= i%23 == 0 ? null : new DateTime(timeOffset + (long)(scale*(Math.random()*2-0.1))*100_000_000L)", - "OtherTimestamp= i%24 == 0 ? null : new DateTime(timeOffset + (long)(scale*(Math.random()*2-0.05))*100_000_000L)", + .update("Timestamp= i%23 == 0 ? null : DateTimeUtils.epochNanosToInstant(timeOffset + (long)(scale*(Math.random()*2-0.1))*100_000_000L)", + "OtherTimestamp= i%24 == 0 ? null : DateTimeUtils.epochNanosToInstant(timeOffset + (long)(scale*(Math.random()*2-0.05))*100_000_000L)", "MyString=(i%11==0? null : `a`+(int)(scale*(Math.random()*2-1)))", "MyInt=(i%12==0 ? null : (int)(scale*(Math.random()*2-1)))", "MyLong=(i%13==0 ? null : (long)(scale*(Math.random()*2-1)))", diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableJoinTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableJoinTest.java index f3d673b09b5..f14e0e0f9f1 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableJoinTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableJoinTest.java @@ -9,8 +9,7 @@ import io.deephaven.engine.testutil.generator.IntGenerator; import io.deephaven.engine.testutil.generator.SetGenerator; import io.deephaven.engine.testutil.generator.SortedIntGenerator; -import io.deephaven.engine.testutil.generator.UnsortedDateTimeGenerator; -import io.deephaven.time.DateTime; +import io.deephaven.engine.testutil.generator.UnsortedInstantGenerator; import io.deephaven.time.DateTimeFormatter; import io.deephaven.time.DateTimeUtils; import io.deephaven.vector.IntVector; @@ -25,6 +24,7 @@ import io.deephaven.engine.util.TableTools; import java.text.ParseException; +import java.time.Instant; import java.time.ZoneId; import java.util.Arrays; import java.util.Random; @@ -240,20 +240,20 @@ private void testAjIncremental(int leftSize, int rightSize, QueryTableTestBase.J final Random random = new Random(seed); QueryScope.addParam("f", new DateTimeFormatter("dd HH:mm:ss")); - final DateTime start = DateTimeUtils.toDateTime( - DateTimeUtils.parseLocalDate("2011-02-02").atStartOfDay().atZone(ZoneId.of("America/New_York"))); - final DateTime end = DateTimeUtils.toDateTime( - DateTimeUtils.parseLocalDate("2011-02-03").atStartOfDay().atZone(ZoneId.of("America/New_York"))); + final Instant start = DateTimeUtils.parseLocalDate("2011-02-02").atStartOfDay() + .atZone(ZoneId.of("America/New_York")).toInstant(); + final Instant end = DateTimeUtils.parseLocalDate("2011-02-03").atStartOfDay() + .atZone(ZoneId.of("America/New_York")).toInstant(); final ColumnInfo[] leftColumnInfo; final QueryTable leftTable = getTable(leftSize, random, leftColumnInfo = initColumnInfos(new String[] {"Date", "C1", "C2"}, - new UnsortedDateTimeGenerator(start, end), + new UnsortedInstantGenerator(start, end), new SetGenerator<>("a", "b"), new SetGenerator<>(10, 20, 30))); final ColumnInfo[] rightColumnInfo; final QueryTable rightTable = getTable(rightSize, random, rightColumnInfo = initColumnInfos(new String[] {"Date", "C1", "C2"}, - new UnsortedDateTimeGenerator(start, end), + new UnsortedInstantGenerator(start, end), new SetGenerator<>("a", "b", "c"), new SetGenerator<>(20, 30, 40))); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableNaturalJoinTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableNaturalJoinTest.java index 560111e4368..d236760cf9b 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableNaturalJoinTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableNaturalJoinTest.java @@ -26,7 +26,6 @@ import io.deephaven.engine.util.TableTools; import io.deephaven.parquet.table.ParquetTools; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import junit.framework.TestCase; @@ -37,6 +36,7 @@ import java.io.File; import java.io.IOException; import java.nio.file.Files; +import java.time.Instant; import java.util.Arrays; import java.util.List; import java.util.Map; @@ -523,15 +523,15 @@ public void testNaturalJoinDuplicateReinterpret() { private void testNaturalJoinDuplicateRightReinterpret(boolean leftRefreshing, boolean rightRefreshing) { // build from right - final DateTime dateTimeA = DateTimeUtils.parseDateTime("2022-05-06T09:30:00 NY"); - final DateTime dateTimeB = DateTimeUtils.parseDateTime("2022-05-06T09:31:00 NY"); - final DateTime dateTimeC = DateTimeUtils.parseDateTime("2022-05-06T09:32:00 NY"); - final DateTime dateTimeD = DateTimeUtils.parseDateTime("2022-05-06T09:33:00 NY"); - final QueryTable left = testTable(col("JK1", false, null, true), col("JK2", dateTimeA, dateTimeA, dateTimeA), + final Instant instantA = DateTimeUtils.parseInstant("2022-05-06T09:30:00 NY"); + final Instant instantB = DateTimeUtils.parseInstant("2022-05-06T09:31:00 NY"); + final Instant instantC = DateTimeUtils.parseInstant("2022-05-06T09:32:00 NY"); + final Instant instantD = DateTimeUtils.parseInstant("2022-05-06T09:33:00 NY"); + final QueryTable left = testTable(col("JK1", false, null, true), col("JK2", instantA, instantA, instantA), col("LeftSentinel", 1, 2, 3)); left.setRefreshing(leftRefreshing); final QueryTable right = - testTable(col("JK1", true, true), col("JK2", dateTimeA, dateTimeA), col("RightSentinel", 10, 11)); + testTable(col("JK1", true, true), col("JK2", instantA, instantA), col("RightSentinel", 10, 11)); right.setRefreshing(rightRefreshing); try { @@ -539,32 +539,32 @@ private void testNaturalJoinDuplicateRightReinterpret(boolean leftRefreshing, bo TableTools.showWithRowSet(cj); fail("Expected exception."); } catch (IllegalStateException e) { - assertEquals(dupMsg + "[true, " + dateTimeA + "]", e.getMessage()); + assertEquals(dupMsg + "[true, " + instantA + "]", e.getMessage()); } // build from left - final Table left2 = testTable(col("DT", dateTimeA, dateTimeB), col("LeftSentinel", 1, 2)); - final Table right2 = newTable(col("DT", dateTimeA, dateTimeA, dateTimeB, dateTimeC, dateTimeD), + final Table left2 = testTable(col("DT", instantA, instantB), col("LeftSentinel", 1, 2)); + final Table right2 = newTable(col("DT", instantA, instantA, instantB, instantC, instantD), col("RightSentinel", 10, 11, 12, 13, 14)); try { final Table cj2 = left2.naturalJoin(right2, "DT"); TableTools.showWithRowSet(cj2); fail("Expected exception"); } catch (IllegalStateException e) { - assertEquals(dupMsg + dateTimeA, e.getMessage()); + assertEquals(dupMsg + instantA, e.getMessage()); } } private final static String dupMsg = "Natural Join found duplicate right key for "; - private static DateTime makeDateTimeKey(String a) { - final DateTime dateTimeA = DateTimeUtils.parseDateTime("2022-05-06T09:30:00 NY"); - final DateTime dateTimeB = DateTimeUtils.parseDateTime("2022-05-06T09:31:00 NY"); + private static Instant makeInstantKey(String a) { + final Instant instantA = DateTimeUtils.parseInstant("2022-05-06T09:30:00 NY"); + final Instant instantB = DateTimeUtils.parseInstant("2022-05-06T09:31:00 NY"); switch (a) { case "A": - return dateTimeA; + return instantA; case "B": - return dateTimeB; + return instantB; default: throw new IllegalStateException(); } @@ -576,7 +576,7 @@ private static Table castSymbol(Class clazz, Table table) { public void testNaturalJoinDuplicateRightsRefreshingRight() { testNaturalJoinDuplicateRightsRefreshingRight(String.class, Function.identity()); - testNaturalJoinDuplicateRightsRefreshingRight(DateTime.class, QueryTableNaturalJoinTest::makeDateTimeKey); + testNaturalJoinDuplicateRightsRefreshingRight(Instant.class, QueryTableNaturalJoinTest::makeInstantKey); } private void testNaturalJoinDuplicateRightsRefreshingRight(Class clazz, Function makeKey) { @@ -622,7 +622,7 @@ private void testNaturalJoinDuplicateRightsRefreshingRight(Class clazz, F public void testNaturalJoinDuplicateRightsRefreshingBoth() { testNaturalJoinDuplicateRightsRefreshingBoth(String.class, Function.identity()); - testNaturalJoinDuplicateRightsRefreshingBoth(DateTime.class, QueryTableNaturalJoinTest::makeDateTimeKey); + testNaturalJoinDuplicateRightsRefreshingBoth(Instant.class, QueryTableNaturalJoinTest::makeInstantKey); } private void testNaturalJoinDuplicateRightsRefreshingBoth(Class clazz, Function makeKey) { @@ -671,8 +671,8 @@ public void testNaturalJoinReinterprets() { TableTools.showWithRowSet(cj); assertEquals(new int[] {10, 11, 12, 10}, intColumn(cj, "RightSentinel")); - final DateTime time1 = DateTimeUtils.parseDateTime("2019-05-10T09:45:00 NY"); - final DateTime time2 = DateTimeUtils.parseDateTime("2019-05-10T21:45:00 NY"); + final Instant time1 = DateTimeUtils.parseInstant("2019-05-10T09:45:00 NY"); + final Instant time2 = DateTimeUtils.parseInstant("2019-05-10T21:45:00 NY"); final Table left2 = testTable(col("JDate", time1, time2, null, time2), col("LeftSentinel", 1, 2, 3, 4)); final Table right2 = newTable(col("JDate", time2, time1, null), col("RightSentinel", 10, 11, 12)); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableSelectUpdateTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableSelectUpdateTest.java index 2a981a2433f..b93b58f3627 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableSelectUpdateTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableSelectUpdateTest.java @@ -649,12 +649,12 @@ private void testUpdateIncremental(final int seed, MutableInt numSteps) { EvalNugget.from(() -> queryTable.select("intCol = intCol/2")), EvalNugget.from(() -> queryTable.update("newCol = `` + intCol/2")), EvalNugget.from(() -> queryTable.update("newCol = intCol > 50")), - // Let's create a datetime and use it as an override + // Let's create an Instant and use it as an override partialEvalNuggetFrom(queryTable, false, - () -> queryTable.update("Time = new DateTime(0) + intCol * MINUTE") + () -> queryTable.update("Time = DateTimeUtils.epochNanosToInstant(0) + intCol * MINUTE") .update("Diff = Time_[i]")), partialEvalNuggetFrom(queryTable, true, - () -> queryTable.select("Time = new DateTime(0) + intCol * MINUTE").select("Time", + () -> queryTable.select("Time = DateTimeUtils.epochNanosToInstant(0) + intCol * MINUTE").select("Time", "Diff = Time_[i]")), }; @@ -1054,7 +1054,7 @@ public void testFlattenSelect() { @Test public void testStaticSelectFlattenDateTimeCol() { - final Table input = emptyTable(10).view("A=ii", "B = DateTime.now()").where("A % 2 == 0"); + final Table input = emptyTable(10).view("A=ii", "B = DateTimeUtils.now()").where("A % 2 == 0"); final Table output = input.select("B"); Assert.assertEquals(5, output.size()); Assert.assertTrue(output.isFlat()); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableSortTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableSortTest.java index c358603f305..17ea4bdb876 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableSortTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableSortTest.java @@ -18,7 +18,6 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.context.QueryScope; -import io.deephaven.time.DateTime; import io.deephaven.parquet.table.ParquetTools; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.table.impl.select.IncrementalReleaseFilter; @@ -32,6 +31,7 @@ import java.io.IOException; import java.math.BigInteger; import java.nio.file.Files; +import java.time.Instant; import java.util.*; import java.util.function.Consumer; import java.util.function.LongUnaryOperator; @@ -782,7 +782,7 @@ private void diskBackedTestHarness(Consumer testFunction) throws IOExcept ColumnDefinition.ofBoolean("Truthiness")); final String[] syms = new String[] {"Apple", "Banana", "Cantaloupe"}; - final DateTime baseTime = DateTimeUtils.parseDateTime("2019-04-11T09:30 NY"); + final Instant baseTime = DateTimeUtils.parseInstant("2019-04-11T09:30 NY"); final long[] dateOffset = new long[] {0, 5, 10, 15, 1, 6, 11, 16, 2, 7}; final Boolean[] booleans = new Boolean[] {true, false, null, true, false, null, true, false, null, true, false}; QueryScope.addParam("syms", syms); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java index 31db0805dc3..741a9bf35d2 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java @@ -27,7 +27,7 @@ import io.deephaven.engine.table.impl.select.MatchFilter.CaseSensitivity; import io.deephaven.engine.table.impl.select.MatchFilter.MatchType; import io.deephaven.engine.table.impl.sources.DeferredGroupingColumnSource; -import io.deephaven.engine.table.impl.sources.LongAsDateTimeColumnSource; +import io.deephaven.engine.table.impl.sources.LongAsInstantColumnSource; import io.deephaven.engine.table.impl.util.BarrageMessage; import io.deephaven.engine.table.impl.util.ColumnHolder; import io.deephaven.engine.testutil.*; @@ -38,7 +38,6 @@ import io.deephaven.engine.util.TableTools; import io.deephaven.parquet.table.ParquetTools; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import io.deephaven.util.SafeCloseable; @@ -56,11 +55,11 @@ import java.nio.file.Files; import java.text.ParseException; import java.text.SimpleDateFormat; +import java.time.Instant; import java.util.*; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.*; -import java.util.stream.LongStream; import static io.deephaven.api.agg.Aggregation.*; import static io.deephaven.engine.testutil.TstUtils.*; @@ -445,16 +444,16 @@ public void testView1() { assertEquals(Arrays.asList(-1, 1, 3), Arrays.asList(table.getColumn("t").get(0, 3))); } - public void testReinterpret() { - final Table source = emptyTable(5).select("dt = nanosToTime(ii)", "n = ii"); - final Table result = source.dateTimeColumnAsNanos("dt"); - assertEquals((long[]) result.getColumn(0).getDirect(), LongStream.range(0, 5).toArray()); - final Table reflexive = result.view(new ReinterpretedColumn<>("dt", long.class, "dt", DateTime.class)); - assertTableEquals(reflexive, source.dropColumns("n")); - final Table sortedSource = source.sortDescending("dt").dropColumns("dt"); - final Table sortedResult = result.sortDescending("dt").dropColumns("dt"); - assertTableEquals(sortedResult, sortedSource); - } +// public void testReinterpret() { +// final Table source = emptyTable(5).select("dt = nanosToTime(ii)", "n = ii"); +// final Table result = source.dateTimeColumnAsNanos("dt"); +// assertEquals((long[]) result.getColumn(0).getDirect(), LongStream.range(0, 5).toArray()); +// final Table reflexive = result.view(new ReinterpretedColumn<>("dt", long.class, "dt", DateTime.class)); +// assertTableEquals(reflexive, source.dropColumns("n")); +// final Table sortedSource = source.sortDescending("dt").dropColumns("dt"); +// final Table sortedResult = result.sortDescending("dt").dropColumns("dt"); +// assertTableEquals(sortedResult, sortedSource); +// } public void testStaticSelectIntermediateColumn() { final Table et = emptyTable(3); @@ -834,60 +833,60 @@ public void testDoubleRangeFilter() { } } - public void testDateTimeRangeFilter() { + public void testInstantRangeFilter() { Function filter = ConditionFilter::createConditionFilter; final Random random = new Random(0); final int size = 500; - final DateTime startTime = DateTimeUtils.parseDateTime("2019-04-30T16:00:00 NY"); - final DateTime endTime = DateTimeUtils.parseDateTime("2019-04-30T16:01:00 NY"); + final Instant startTime = DateTimeUtils.parseInstant("2019-04-30T16:00:00 NY"); + final Instant endTime = DateTimeUtils.parseInstant("2019-04-30T16:01:00 NY"); final ColumnInfo[] columnInfo; final QueryTable table = getTable(size, random, columnInfo = initColumnInfos(new String[] {"Timestamp", "Ts2", "Sentinel"}, - new UnsortedDateTimeGenerator(startTime, endTime), - new UnsortedDateTimeLongGenerator(startTime, endTime), + new UnsortedInstantGenerator(startTime, endTime), + new UnsortedInstantLongGenerator(startTime, endTime), new IntGenerator(0, 1000))); - final DateTime lower = DateTimeUtils.plus(startTime, DateTimeUtils.SECOND); - final DateTime upper = DateTimeUtils.plus(startTime, DateTimeUtils.SECOND * 2); + final Instant lower = DateTimeUtils.plus(startTime, DateTimeUtils.SECOND); + final Instant upper = DateTimeUtils.plus(startTime, DateTimeUtils.SECOND * 2); final EvalNuggetInterface[] en = new EvalNuggetInterface[] { new TableComparator( table.where(filter.apply( "Timestamp >= '" + lower.toString() + "' && Timestamp <= '" + upper.toString() + "'")), - "Condition", table.where(new DateTimeRangeFilter("Timestamp", lower, upper, true, true)), + "Condition", table.where(new InstantRangeFilter("Timestamp", lower, upper, true, true)), "Range"), new TableComparator( table.where(filter.apply( "Timestamp >= '" + lower.toString() + "' && Timestamp < '" + upper.toString() + "'")), - table.where(new DateTimeRangeFilter("Timestamp", lower, upper, true, false))), + table.where(new InstantRangeFilter("Timestamp", lower, upper, true, false))), new TableComparator( table.where(filter.apply( "Timestamp > '" + lower.toString() + "' && Timestamp <= '" + upper.toString() + "'")), - table.where(new DateTimeRangeFilter("Timestamp", lower, upper, true, true))), + table.where(new InstantRangeFilter("Timestamp", lower, upper, true, true))), new TableComparator( table.where(filter.apply( "Timestamp > '" + lower.toString() + "' && Timestamp < '" + upper.toString() + "'")), - table.where(new DateTimeRangeFilter("Timestamp", lower, upper, false, false))), + table.where(new InstantRangeFilter("Timestamp", lower, upper, false, false))), new TableComparator( table.where( filter.apply("Ts2 >= '" + lower.toString() + "' && Ts2 <= '" + upper.toString() + "'")), - "Condition", table.where(new DateTimeRangeFilter("Ts2", lower, upper, true, true)), "Range"), + "Condition", table.where(new InstantRangeFilter("Ts2", lower, upper, true, true)), "Range"), new TableComparator( table.where( filter.apply("Ts2 >= '" + lower.toString() + "' && Ts2 < '" + upper.toString() + "'")), - table.where(new DateTimeRangeFilter("Ts2", lower, upper, true, false))), + table.where(new InstantRangeFilter("Ts2", lower, upper, true, false))), new TableComparator( table.where( filter.apply("Ts2 > '" + lower.toString() + "' && Ts2 <= '" + upper.toString() + "'")), - table.where(new DateTimeRangeFilter("Ts2", lower, upper, true, true))), + table.where(new InstantRangeFilter("Ts2", lower, upper, true, true))), new TableComparator( table.where( filter.apply("Ts2 > '" + lower.toString() + "' && Ts2 < '" + upper.toString() + "'")), - table.where(new DateTimeRangeFilter("Ts2", lower, upper, false, false))) + table.where(new InstantRangeFilter("Ts2", lower, upper, false, false))) }; for (int i = 0; i < 500; i++) { @@ -895,42 +894,42 @@ public void testDateTimeRangeFilter() { } } - public void testDateTimeRangeFilterNulls() { + public void testInstantRangeFilterNulls() { final Function filter = ConditionFilter::createConditionFilter; final Random random = new Random(0); final int size = 500; - final DateTime startTime = DateTimeUtils.parseDateTime("2019-04-30T16:00:00 NY"); - final DateTime endTime = DateTimeUtils.parseDateTime("2019-04-30T16:01:00 NY"); + final Instant startTime = DateTimeUtils.parseInstant("2019-04-30T16:00:00 NY"); + final Instant endTime = DateTimeUtils.parseInstant("2019-04-30T16:01:00 NY"); final ColumnInfo[] columnInfo; final QueryTable table = getTable(size, random, columnInfo = initColumnInfos(new String[] {"Timestamp", "Sentinel"}, - new UnsortedDateTimeGenerator(startTime, endTime, 0.1), + new UnsortedInstantGenerator(startTime, endTime, 0.1), new IntGenerator(0, 1000))); - final DateTime lower = DateTimeUtils.plus(startTime, DateTimeUtils.SECOND); - final DateTime upper = DateTimeUtils.plus(startTime, DateTimeUtils.SECOND * 2); + final Instant lower = DateTimeUtils.plus(startTime, DateTimeUtils.SECOND); + final Instant upper = DateTimeUtils.plus(startTime, DateTimeUtils.SECOND * 2); final EvalNuggetInterface[] en = new EvalNuggetInterface[] { new TableComparator( table.where(filter.apply( "Timestamp >= '" + lower.toString() + "' && Timestamp <= '" + upper.toString() + "'")), - "Condition", table.where(new DateTimeRangeFilter("Timestamp", lower, upper, true, true)), + "Condition", table.where(new InstantRangeFilter("Timestamp", lower, upper, true, true)), "Range"), new TableComparator( table.where(filter.apply( "Timestamp >= '" + lower.toString() + "' && Timestamp < '" + upper.toString() + "'")), - table.where(new DateTimeRangeFilter("Timestamp", lower, upper, true, false))), + table.where(new InstantRangeFilter("Timestamp", lower, upper, true, false))), new TableComparator( table.where(filter.apply( "Timestamp > '" + lower.toString() + "' && Timestamp <= '" + upper.toString() + "'")), - table.where(new DateTimeRangeFilter("Timestamp", lower, upper, true, true))), + table.where(new InstantRangeFilter("Timestamp", lower, upper, true, true))), new TableComparator( table.where(filter.apply( "Timestamp > '" + lower.toString() + "' && Timestamp < '" + upper.toString() + "'")), - table.where(new DateTimeRangeFilter("Timestamp", lower, upper, false, false))), + table.where(new InstantRangeFilter("Timestamp", lower, upper, false, false))), }; for (int i = 0; i < 500; i++) { @@ -2218,15 +2217,14 @@ static void testShiftingModifications(UnaryOperator function) { simpleListener.close(); } - public void testDateTimeColumns() { + public void testInstantColumns() { final QueryTable queryTable = testRefreshingTable( col("Sym", "aa", "bc", "aa", "aa"), col("Timestamp", DateTimeUtils.now(), DateTimeUtils.now(), DateTimeUtils.now(), DateTimeUtils.now())); - assertEquals(queryTable.groupBy("Sym").getDefinition().getColumn("Timestamp").getComponentType(), - DateTime.class); + assertEquals(queryTable.groupBy("Sym").getDefinition().getColumn("Timestamp").getComponentType(), Instant.class); show(queryTable.update("x = Timestamp_[0]")); show(queryTable.update("TimeinSeconds=round((maxObj(Timestamp_)-minObj(Timestamp_))/1000000000)")); show(queryTable.groupBy("Sym").view("Sym", "x = Timestamp[0]")); @@ -2891,7 +2889,7 @@ private void diskBackedTestHarness(Consumer
      testFunction) throws IOExcept ColumnDefinition.ofBoolean("Truthiness")); final String[] syms = new String[] {"Apple", "Banana", "Cantaloupe"}; - final DateTime baseTime = DateTimeUtils.parseDateTime("2019-04-11T09:30 NY"); + final Instant baseTime = DateTimeUtils.parseInstant("2019-04-11T09:30 NY"); final long[] dateOffset = new long[] {0, 5, 10, 15, 1, 6, 11, 16, 2, 7}; final Boolean[] booleans = new Boolean[] {true, false, null, true, false, null, true, false, null, true, false}; QueryScope.addParam("syms", syms); @@ -3106,8 +3104,9 @@ public void testRegressionIssue544() { assertEquals(0, getUpdateErrors().size()); } - private static class TestDateTimeGroupingSource extends LongAsDateTimeColumnSource - implements DeferredGroupingColumnSource { + private static class TestInstantGroupingSource + extends LongAsInstantColumnSource + implements DeferredGroupingColumnSource { final GroupingProvider groupingProvider = new GroupingProvider<>() { @Override @@ -3121,33 +3120,33 @@ public Pair, Boolean> getGroupToRange(RowSet hint) { } }; - TestDateTimeGroupingSource(ColumnSource realSource) { + TestInstantGroupingSource(ColumnSource realSource) { super(realSource); // noinspection unchecked,rawtypes ((DeferredGroupingColumnSource) realSource).setGroupingProvider(groupingProvider); } @Override - public GroupingProvider getGroupingProvider() { + public GroupingProvider getGroupingProvider() { return null; } @Override - public void setGroupingProvider(@Nullable GroupingProvider groupingProvider) { + public void setGroupingProvider(@Nullable GroupingProvider groupingProvider) { throw new UnsupportedOperationException(); } } - public void testDeferredGroupingPropagationDateTimeCol() { + public void testDeferredGroupingPropagationInstantCol() { // This is a regression test on a class cast exception in QueryTable#propagateGrouping. - // RegionedColumnSourceDateTime is a grouping source, but is not an InMemoryColumnSource. The select column + // RegionedColumnSourceInstant is a grouping source, but is not an InMemoryColumnSource. The select column // destination is not a grouping source as it is reinterpreted. TrackingRowSet rowSet = RowSetFactory.flat(4).toTracking(); // This dance with a custom column is because an InMemoryColumnSource will be reused at the select layer // which skips propagation of grouping, and avoids the class cast exception. - final TestDateTimeGroupingSource cs = new TestDateTimeGroupingSource(colSource(0L, 1, 2, 3)); + final TestInstantGroupingSource cs = new TestInstantGroupingSource(colSource(0L, 1, 2, 3)); final Map> columns = Maps.of("T", cs); final QueryTable t1 = new QueryTable(rowSet, columns); final Table t2 = t1.select("T"); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTreeTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTreeTest.java index 880f7d4e229..a21c2f66c96 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTreeTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTreeTest.java @@ -3,51 +3,11 @@ */ package io.deephaven.engine.table.impl; -import io.deephaven.api.agg.Aggregation; -import io.deephaven.datastructures.util.CollectionUtil; -import io.deephaven.engine.liveness.LivenessScopeStack; -import io.deephaven.engine.liveness.SingletonLivenessManager; -import io.deephaven.engine.rowset.RowSet; -import io.deephaven.engine.rowset.RowSetBuilderSequential; -import io.deephaven.engine.rowset.RowSetFactory; -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.Table; -import io.deephaven.engine.table.hierarchical.TreeTable; -import io.deephaven.engine.table.impl.hierarchical.TreeTableFilter; -import io.deephaven.engine.testutil.ColumnInfo; -import io.deephaven.engine.testutil.EvalNuggetInterface; import io.deephaven.engine.testutil.QueryTableTestBase; -import io.deephaven.engine.testutil.generator.*; -import io.deephaven.engine.testutil.testcase.RefreshingTableTestCase; -import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.engine.util.TableTools; -import io.deephaven.io.log.LogLevel; -import io.deephaven.io.logger.Logger; -import io.deephaven.io.logger.StreamLoggerImpl; import io.deephaven.test.types.OutOfBandTest; -import java.math.BigDecimal; -import java.math.BigInteger; -import java.util.*; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.function.Function; -import java.util.function.UnaryOperator; - -import io.deephaven.time.DateTimeUtils; -import io.deephaven.util.SafeCloseable; -import io.deephaven.util.annotations.ReflexiveUse; -import junit.framework.TestCase; -import org.apache.commons.lang3.mutable.MutableInt; -import org.junit.Assert; import org.junit.experimental.categories.Category; -import static io.deephaven.api.agg.Aggregation.*; -import static io.deephaven.engine.testutil.TstUtils.*; -import static io.deephaven.engine.util.TableTools.*; -import static io.deephaven.util.QueryConstants.*; - /** * Test of Tree Tables and rollups. */ @@ -1202,10 +1162,10 @@ public void testNothing() {} // final int size = 100; // final QueryTable table = getTable(size, random, // initColumnInfos( - // new String[] {"USym", "DateTime", "IntCol", "DoubleCol", "BoolCol", "BigIntCol", "BigDecCol"}, + // new String[] {"USym", "Instant", "IntCol", "DoubleCol", "BoolCol", "BigIntCol", "BigDecCol"}, // new SetGenerator<>("AAPL", "TSLA", "VXX", "SPY"), - // new SetGenerator<>(DateTimeUtils.convertDateTime("2020-01-01T00:00:00 NY"), null, - // DateTimeUtils.convertDateTime("2020-02-28T14:30:00 NY")), + // new SetGenerator<>(DateTimeUtils.parseInstant("2020-01-01T00:00:00 NY"), null, + // DateTimeUtils.parseInstant("2020-02-28T14:30:00 NY")), // new IntGenerator(0, 1_000_000), // new DoubleGenerator(-100, 100), // new BooleanGenerator(0.4, 0.1), @@ -1216,13 +1176,13 @@ public void testNothing() {} // TableTools.showWithRowSet(table); // // final Table rollup = UpdateGraphProcessor.DEFAULT.exclusiveLock() - // .computeLocked(() -> table.rollup(comboAgg, "USym", "DateTime", "BoolCol", "BigIntCol", "BigDecCol")); + // .computeLocked(() -> table.rollup(comboAgg, "USym", "Instant", "BoolCol", "BigIntCol", "BigDecCol")); // verifyReverseLookup(rollup); // // verifyReverseLookup( // UpdateGraphProcessor.DEFAULT.exclusiveLock().computeLocked(() -> table.rollup(comboAgg, "USym"))); // verifyReverseLookup( - // UpdateGraphProcessor.DEFAULT.exclusiveLock().computeLocked(() -> table.rollup(comboAgg, "DateTime"))); + // UpdateGraphProcessor.DEFAULT.exclusiveLock().computeLocked(() -> table.rollup(comboAgg, "Instant"))); // verifyReverseLookup( // UpdateGraphProcessor.DEFAULT.exclusiveLock().computeLocked(() -> table.rollup(comboAgg, "BoolCol"))); // } @@ -1642,7 +1602,7 @@ public void testNothing() {} // // final int size = 100; // final QueryTable table = getTable(size, random, columnInfo = initColumnInfos(new String[] { - // "USym", "Group", "IntCol", "DoubleCol", "StringCol", "StringNulls", "BoolCol", "DateTime", + // "USym", "Group", "IntCol", "DoubleCol", "StringCol", "StringNulls", "BoolCol", "Instant", // "IntSet", "LongSet", "DoubleSet", "FloatSet", "CharSet", "ShortSet", "ByteSet"}, // // new SetGenerator<>("AAPL", "TSLA", "VXX", "SPY"), @@ -1652,8 +1612,8 @@ public void testNothing() {} // new SetGenerator<>("A", "B", "C", "D"), // new SetGenerator<>("A", "B", "C", "D", null), // new BooleanGenerator(.5, .1), - // new UnsortedDateTimeGenerator(DateTimeUtils.convertDateTime("2020-03-17T09:30:00 NY"), - // DateTimeUtils.convertDateTime("2020-03-17T16:00:00 NY")), + // new UnsortedInstantGenerator(DateTimeUtils.parseInstant("2020-03-17T09:30:00 NY"), + // DateTimeUtils.parseInstant("2020-03-17T16:00:00 NY")), // new SetGenerator<>(0, 1, 2, 3, 4, 5, NULL_INT), // new SetGenerator<>(0L, 1L, 2L, 3L, 4L, 5L, NULL_LONG), // new SetGenerator<>(0.0D, 1.1D, 2.2D, 3.3D, 4.4D, 5.5D, NULL_DOUBLE), @@ -1665,18 +1625,18 @@ public void testNothing() {} // // final Collection rollupDefinition = List.of( // AggSum("IntCol", "DoubleCol"), - // AggMin("MinInt=IntCol", "MinDT=DateTime"), - // AggMax("MaxDouble=DoubleCol", "MaxDT=DateTime"), + // AggMin("MinInt=IntCol", "MinDT=Instant"), + // AggMax("MaxDouble=DoubleCol", "MaxDT=Instant"), // AggAvg("IntAvg=IntCol", "DoubleAvg=DoubleCol"), // AggStd("IntStd=IntCol", "DoubleStd=DoubleCol"), // AggVar("IntVar=IntCol", "DoubleVar=DoubleCol"), // AggFirst("IntFirst=IntCol", "DoubleFirst=DoubleCol"), // AggLast("IntLast=IntCol", "DoubleLast=DoubleCol"), // AggCount("Count"), - // AggCountDistinct("SCDistinct=StringCol", "CDBoolCol=BoolCol", "DTCDistinct=DateTime", + // AggCountDistinct("SCDistinct=StringCol", "CDBoolCol=BoolCol", "DTCDistinct=Instant", // "CDIntCol=IntSet", "CDLongCol=LongSet", "CDDoubleCol=DoubleSet", // "CDFloatCol=FloatSet", "CDCharCol=CharSet", "CDShortCol=ShortSet", "CDByteCol=ByteSet"), - // AggDistinct("SDistinct=StringCol", "DistinctBoolCol=BoolCol", "DTDistinct=DateTime", + // AggDistinct("SDistinct=StringCol", "DistinctBoolCol=BoolCol", "DTDistinct=Instant", // "DIntCol=IntSet", "DLongCol=LongSet", "DDoubleCol=DoubleSet", // "DFloatCol=FloatSet", "DCharCol=CharSet", "DShortCol=ShortSet", "DByteCol=ByteSet"), // AggUnique("SUnique=StringCol", "UniqueBoolCol=BoolCol", diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java index 2dcbe370110..b8c53f7eba1 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java @@ -27,7 +27,6 @@ import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.table.impl.select.MatchPairFactory; import io.deephaven.engine.context.QueryScope; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.table.impl.verify.TableAssertions; import io.deephaven.engine.table.impl.select.*; @@ -49,6 +48,7 @@ import java.math.BigDecimal; import java.math.BigInteger; +import java.time.Instant; import java.util.Collections; import java.util.Random; import java.util.concurrent.CountDownLatch; @@ -927,8 +927,8 @@ public void testComparableBinarySearch() { new DoubleGenerator(0.0, 100.0, 0, 0, 0, 0), new LongGenerator(-100, 100, 0.01), new CharGenerator('A', 'Z', 0.1), - new UnsortedDateTimeGenerator(DateTimeUtils.parseDateTime("2020-01-01T00:00:00 NY"), - DateTimeUtils.parseDateTime("2020-01-01T01:00:00 NY")))); + new UnsortedInstantGenerator(DateTimeUtils.parseInstant("2020-01-01T00:00:00 NY"), + DateTimeUtils.parseInstant("2020-01-01T01:00:00 NY")))); final String bigIntConversion = "BI4=" + getClass().getCanonicalName() + ".convertToBigInteger(L3)"; final Table augmentedInts = table.update(bigIntConversion, "D5=(double)L3", "I6=(int)L3", "S7=(short)L3", "B8=(byte)L3"); @@ -949,7 +949,7 @@ public void testComparableBinarySearch() { final BigDecimal two = BigDecimal.valueOf(2); final BigDecimal nine = BigDecimal.valueOf(9); final String filterTimeString = "2020-01-01T00:30:00 NY"; - final DateTime filterTime = DateTimeUtils.parseDateTime(filterTimeString); + final Instant filterTime = DateTimeUtils.parseInstant(filterTimeString); QueryScope.addParam("two", two); QueryScope.addParam("nine", nine); @@ -1008,9 +1008,9 @@ public void testComparableBinarySearch() { new TableComparator(sortedL3R.where("L3 < 20 && true"), sortedL3R.where("I6 < 20")), new TableComparator(sortedL3R.where("L3 < 20 && true"), sortedL3R.where("B8 < 20")), new TableComparator(sortedL3R.where("L3 < 20 && true"), sortedL3R.where("S7 < 20")), - new TableComparator(sortedDT.where("DT == null || DT.getNanos() < " + filterTime.getNanos()), + new TableComparator(sortedDT.where("DT == null || DT.getNanos() < " + DateTimeUtils.epochNanos(filterTime)), sortedDT.where("DT < '" + filterTimeString + "'")), - new TableComparator(sortedDT.where("DT != null && DT.getNanos() >= " + filterTime.getNanos()), + new TableComparator(sortedDT.where("DT != null && DT.getNanos() >= " + DateTimeUtils.epochNanos(filterTime)), sortedDT.where("DT >= '" + filterTimeString + "'")), new TableComparator(sortedCH.where("true && CH > 'M'"), sortedCH.where("CH > 'M'")), new TableComparator(sortedCH.where("CH==null || CH <= 'O'"), sortedCH.where("CH <= 'O'")), @@ -1030,9 +1030,9 @@ public void testComparableBinarySearch() { } @Test - public void testDateTimeRangeFilter() { - final DateTime startTime = DateTimeUtils.parseDateTime("2021-04-23T09:30 NY"); - final DateTime[] array = new DateTime[10]; + public void testInstantRangeFilter() { + final Instant startTime = DateTimeUtils.parseInstant("2021-04-23T09:30 NY"); + final Instant[] array = new Instant[10]; for (int ii = 0; ii < array.length; ++ii) { array[ii] = DateTimeUtils.plus(startTime, 60_000_000_000L * ii); } diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/SparseSelectTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/SparseSelectTest.java index 80e3642a5fc..3cb99270f1b 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/SparseSelectTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/SparseSelectTest.java @@ -16,7 +16,6 @@ import io.deephaven.engine.util.TableTools; import io.deephaven.engine.testutil.junit4.EngineCleanup; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.SafeCloseable; import junit.framework.TestCase; @@ -45,7 +44,7 @@ public void testSparseSelect() { } for (final int size : sizes) { for (int seed = 0; seed < 1; ++seed) { - System.out.println(DateTime.now() + ": Size = " + size + ", seed=" + seed); + System.out.println(DateTimeUtils.now() + ": Size = " + size + ", seed=" + seed); try (final SafeCloseable ignored = LivenessScopeStack.open(new LivenessScope(true), true)) { testSparseSelect(size, seed); } @@ -60,7 +59,7 @@ private void testSparseSelect(int size, int seed) { final QueryTable queryTable = getTable(size, random, columnInfo = initColumnInfos( new String[] {"Sym", "intCol", "doubleCol", "boolCol", "floatCol", "longCol", "charCol", - "byteCol", "shortCol", "dateTime"}, + "byteCol", "shortCol", "instant"}, new SetGenerator<>("a", "b", "c", "d", "e"), new IntGenerator(10, 100), new SetGenerator<>(10.1, 20.1, 30.1), @@ -70,8 +69,8 @@ private void testSparseSelect(int size, int seed) { new CharGenerator('a', 'z'), new ByteGenerator(), new ShortGenerator(), - new UnsortedDateTimeGenerator(DateTimeUtils.parseDateTime("2019-01-10T00:00:00 NY"), - DateTimeUtils.parseDateTime("2019-01-20T00:00:00 NY")))); + new UnsortedInstantGenerator(DateTimeUtils.parseInstant("2019-01-10T00:00:00 NY"), + DateTimeUtils.parseInstant("2019-01-20T00:00:00 NY")))); final Table sortedTable = queryTable.sort("intCol"); @@ -93,7 +92,7 @@ public Table e() { }, new EvalNugget() { public Table e() { - return SparseSelect.sparseSelect(queryTable, "dateTime"); + return SparseSelect.sparseSelect(queryTable, "instant"); } }, new EvalNugget() { @@ -132,7 +131,7 @@ public Table e() { .groupBy("Sym").sort("Sym").ungroup())), new QueryTableTestBase.TableComparator(queryTable, SparseSelect.sparseSelect(queryTable)), new QueryTableTestBase.TableComparator(queryTable, - SparseSelect.partialSparseSelect(queryTable, Arrays.asList("shortCol", "dateTime"))), + SparseSelect.partialSparseSelect(queryTable, Arrays.asList("shortCol", "instant"))), new QueryTableTestBase.TableComparator(sortedTable, SparseSelect.sparseSelect(sortedTable)) }; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestAggBy.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestAggBy.java index b62cbdb2f25..55f8ce66bea 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestAggBy.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestAggBy.java @@ -24,7 +24,6 @@ import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.util.TableTools; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import io.deephaven.vector.CharVector; @@ -34,6 +33,7 @@ import java.math.BigDecimal; import java.math.BigInteger; +import java.time.Instant; import java.util.Arrays; import java.util.Collection; import java.util.List; @@ -141,7 +141,7 @@ public void testComboByMinMaxTypes() { final QueryTable queryTable = getTable(size, random, columnInfo = initColumnInfos( new String[] {"Sym", "intCol", "shortCol", "byteCol", "longCol", "charCol", "doubleCol", - "floatCol", "DateTime", "BoolCol", "bigI", "bigD"}, + "floatCol", "Instant", "BoolCol", "bigI", "bigD"}, new SetGenerator<>("a", "b", "c", "d"), new IntGenerator(10, 100), new ShortGenerator(), @@ -150,8 +150,8 @@ public void testComboByMinMaxTypes() { new IntGenerator(10, 100), new SetGenerator<>(10.1, 20.1, 30.1), new FloatGenerator(0, 10.0f), - new UnsortedDateTimeGenerator(DateTimeUtils.parseDateTime("2020-03-17T12:00:00 NY"), - DateTimeUtils.parseDateTime("2020-03-18T12:00:00 NY")), + new UnsortedInstantGenerator(DateTimeUtils.parseInstant("2020-03-17T12:00:00 NY"), + DateTimeUtils.parseInstant("2020-03-18T12:00:00 NY")), new BooleanGenerator(), new BigIntegerGenerator(), new BigDecimalGenerator())); @@ -538,9 +538,9 @@ public void testComboByCountDistinct() { } public void testComboByAggUnique() { - final DateTime dtDefault = DateTimeUtils.parseDateTime("1987-10-20T07:45:00.000 NY"); - final DateTime dt1 = DateTimeUtils.parseDateTime("2021-01-01T00:00:01.000 NY"); - final DateTime dt2 = DateTimeUtils.parseDateTime("2021-01-01T00:00:02.000 NY"); + final Instant dtDefault = DateTimeUtils.parseInstant("1987-10-20T07:45:00.000 NY"); + final Instant dt1 = DateTimeUtils.parseInstant("2021-01-01T00:00:01.000 NY"); + final Instant dt2 = DateTimeUtils.parseInstant("2021-01-01T00:00:02.000 NY"); QueryTable dataTable = TstUtils.testRefreshingTable( col("USym", "AAPL", "AAPL", "AAPL", /**/ "GOOG", "GOOG", /**/ "SPY", "SPY", "SPY", "SPY", /**/ "VXX"), @@ -568,7 +568,7 @@ public void testComboByAggUnique() { col("USym", "AAPL", "VXX"), longCol("Account", 1, 5), intCol("Qty", 100, QueryConstants.NULL_INT), - col("Whee", null, (DateTime) null)); + col("Whee", null, (Instant) null)); dataTable.notifyListeners(i(10), i(), i(2)); }); @@ -624,14 +624,14 @@ public void testComboByAggUnique() { } public void testAggUniqueDefaultValues() { - final DateTime dt1 = DateTimeUtils.parseDateTime("2021-01-01T00:01:02.000 NY"); - final DateTime dt2 = DateTimeUtils.parseDateTime("2021-02-02T00:02:03.000 NY"); + final Instant dt1 = DateTimeUtils.parseInstant("2021-01-01T00:01:02.000 NY"); + final Instant dt2 = DateTimeUtils.parseInstant("2021-02-02T00:02:03.000 NY"); QueryTable dataTable = TstUtils.testRefreshingTable( col("USym", "NoKey", "SingleVal", "NonUnique", "NonUnique"), col("StringCol", null, "Apple", "Bacon", "Pancake"), col("BoolCol", null, true, true, false), - col("DateTime", null, dt1, dt1, dt2), + col("Instant", null, dt1, dt1, dt2), charCol("CharCol", NULL_CHAR, 'a', 'b', 'c'), byteCol("ByteCol", NULL_BYTE, (byte) 100, (byte) 110, (byte) 120), shortCol("ShortCol", NULL_SHORT, (short) 1234, (short) 4321, (short) 1324), diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestDownsampledWhereFilter.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestDownsampledWhereFilter.java index fa51fa6c299..daf022b1715 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestDownsampledWhereFilter.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestDownsampledWhereFilter.java @@ -6,7 +6,7 @@ import io.deephaven.engine.context.TestExecutionContext; import io.deephaven.engine.table.Table; import io.deephaven.engine.testutil.generator.DoubleGenerator; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.table.impl.select.DownsampledWhereFilter; @@ -38,8 +38,8 @@ public void testDownsampledWhere() { int size = 1000; final QueryTable table = getTable(false, size, random, initColumnInfos(new String[] {"Timestamp", "doubleCol"}, - new SortedDateTimeGenerator(DateTimeUtils.parseDateTime("2015-09-11T09:30:00 NY"), - DateTimeUtils.parseDateTime("2015-09-11T10:00:00 NY")), + new SortedInstantGenerator(DateTimeUtils.parseInstant("2015-09-11T09:30:00 NY"), + DateTimeUtils.parseInstant("2015-09-11T10:00:00 NY")), new DoubleGenerator(0, 100))); Table downsampled = table.where(new DownsampledWhereFilter("Timestamp", 60_000_000_000L)); @@ -58,8 +58,8 @@ public void testDownsampledWhereLowerFirst() { int size = 1000; final QueryTable table = getTable(false, size, random, initColumnInfos(new String[] {"Timestamp", "doubleCol"}, - new SortedDateTimeGenerator(DateTimeUtils.parseDateTime("2015-09-11T09:30:00 NY"), - DateTimeUtils.parseDateTime("2015-09-11T10:00:00 NY")), + new SortedInstantGenerator(DateTimeUtils.parseInstant("2015-09-11T09:30:00 NY"), + DateTimeUtils.parseInstant("2015-09-11T10:00:00 NY")), new DoubleGenerator(0, 100))); Table downsampled = table.where(new DownsampledWhereFilter("Timestamp", 60_000_000_000L, diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestPartitioningColumns.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestPartitioningColumns.java index 417cdfc84c4..3b6ac037fb7 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestPartitioningColumns.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestPartitioningColumns.java @@ -9,7 +9,6 @@ import io.deephaven.engine.table.TableDefinition; import io.deephaven.engine.testutil.TstUtils; import io.deephaven.engine.testutil.junit4.EngineCleanup; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.table.impl.locations.ColumnLocation; import io.deephaven.engine.table.impl.locations.TableKey; @@ -50,8 +49,8 @@ public void testEverything() { longCol("Lo", 1L << 36, 2L << 36, 3L << 36), floatCol("Fl", 0.1f, 0.2f, 0.3f), doubleCol("Do", 0.1, 0.2, 0.3), - dateTimeCol("DT", DateTime.now(), DateTimeUtils.plus(DateTime.now(), 1), - DateTimeUtils.plus(DateTime.now(), 2)), + instantCol("DT", DateTimeUtils.now(), DateTimeUtils.plus(DateTimeUtils.now(), 1), + DateTimeUtils.plus(DateTimeUtils.now(), 2)), stringCol("St", "ABC", "DEF", "GHI"), col("Bo", Boolean.TRUE, Boolean.FALSE, Boolean.TRUE)); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestSort.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestSort.java index a900b40932d..dc68a97b5f2 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestSort.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestSort.java @@ -11,15 +11,16 @@ import io.deephaven.engine.table.DataColumn; import io.deephaven.engine.table.Table; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.rowset.RowSetFactory; import io.deephaven.test.types.OutOfBandTest; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.table.impl.sources.ArrayBackedColumnSource; import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.util.ColumnHolder; +import java.time.Instant; import java.util.Arrays; import java.util.LinkedHashMap; import java.util.Map; @@ -480,12 +481,12 @@ ColumnSource generateColumnSource(int size) { } } - private class DateTimeGenerator extends DataGenerator { + private class InstantGenerator extends DataGenerator { public Class getType() { - return DateTime.class; + return Instant.class; } - public DateTime makeEntry() { + public Instant makeEntry() { if (Math.random() < nullFraction) { return null; } @@ -494,8 +495,7 @@ public DateTime makeEntry() { long offset = (int) Math.rint(Math.random() * 3600); offset *= 1000000000; - DateTime dateTime = new DateTime((startTime * 1000000000) - offset); - return dateTime; + return DateTimeUtils.epochNanosToInstant((startTime * 1000000000) - offset); } @Override diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestStreamTableTools.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestStreamTableTools.java index 1d2a8940f0e..189662bc0cf 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestStreamTableTools.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestStreamTableTools.java @@ -9,13 +9,14 @@ import io.deephaven.engine.testutil.TstUtils; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; import junit.framework.TestCase; import org.junit.After; import org.junit.Before; import org.junit.Test; +import java.time.Instant; + import static io.deephaven.engine.util.TableTools.*; import static io.deephaven.engine.testutil.TstUtils.assertTableEquals; import static io.deephaven.engine.testutil.TstUtils.i; @@ -34,12 +35,12 @@ public void tearDown() throws Exception { @Test public void testStreamToAppendOnlyTable() { - final DateTime dt1 = DateTimeUtils.parseDateTime("2021-08-11T8:20:00 NY"); - final DateTime dt2 = DateTimeUtils.parseDateTime("2021-08-11T8:21:00 NY"); - final DateTime dt3 = DateTimeUtils.parseDateTime("2021-08-11T11:22:00 NY"); + final Instant dt1 = DateTimeUtils.parseInstant("2021-08-11T8:20:00 NY"); + final Instant dt2 = DateTimeUtils.parseInstant("2021-08-11T8:21:00 NY"); + final Instant dt3 = DateTimeUtils.parseInstant("2021-08-11T11:22:00 NY"); final QueryTable streamTable = TstUtils.testRefreshingTable(i(1).toTracking(), intCol("I", 7), - doubleCol("D", Double.NEGATIVE_INFINITY), dateTimeCol("DT", dt1), col("B", Boolean.TRUE)); + doubleCol("D", Double.NEGATIVE_INFINITY), instantCol("DT", dt1), col("B", Boolean.TRUE)); streamTable.setAttribute(Table.STREAM_TABLE_ATTRIBUTE, true); final Table appendOnly = StreamTableTools.streamToAppendOnlyTable(streamTable); @@ -51,24 +52,24 @@ public void testStreamToAppendOnlyTable() { UpdateGraphProcessor.DEFAULT.runWithinUnitTestCycle(() -> { RowSet removed = streamTable.getRowSet().copyPrev(); ((WritableRowSet) streamTable.getRowSet()).clear(); - TstUtils.addToTable(streamTable, i(7), intCol("I", 1), doubleCol("D", Math.PI), dateTimeCol("DT", dt2), + TstUtils.addToTable(streamTable, i(7), intCol("I", 1), doubleCol("D", Math.PI), instantCol("DT", dt2), col("B", true)); streamTable.notifyListeners(i(7), removed, i()); }); assertTableEquals(TableTools.newTable(intCol("I", 7, 1), doubleCol("D", Double.NEGATIVE_INFINITY, Math.PI), - dateTimeCol("DT", dt1, dt2), col("B", true, true)), appendOnly); + instantCol("DT", dt1, dt2), col("B", true, true)), appendOnly); UpdateGraphProcessor.DEFAULT.runWithinUnitTestCycle(() -> { RowSet removed = streamTable.getRowSet().copyPrev(); ((WritableRowSet) streamTable.getRowSet()).clear(); - TstUtils.addToTable(streamTable, i(7), intCol("I", 2), doubleCol("D", Math.E), dateTimeCol("DT", dt3), + TstUtils.addToTable(streamTable, i(7), intCol("I", 2), doubleCol("D", Math.E), instantCol("DT", dt3), col("B", false)); streamTable.notifyListeners(i(7), removed, i()); }); assertTableEquals( TableTools.newTable(intCol("I", 7, 1, 2), doubleCol("D", Double.NEGATIVE_INFINITY, Math.PI, Math.E), - dateTimeCol("DT", dt1, dt2, dt3), col("B", true, true, false)), + instantCol("DT", dt1, dt2, dt3), col("B", true, true, false)), appendOnly); } diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/lang/TestQueryLanguageParser.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/lang/TestQueryLanguageParser.java index 3c2d24738e6..622e788d68b 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/lang/TestQueryLanguageParser.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/lang/TestQueryLanguageParser.java @@ -8,7 +8,6 @@ import io.deephaven.base.verify.Require; import io.deephaven.base.testing.BaseArrayTestCase; import io.deephaven.engine.table.Table; -import io.deephaven.time.DateTime; import io.deephaven.vector.*; import io.deephaven.engine.table.impl.lang.QueryLanguageParser.QueryLanguageParseException; import io.deephaven.vector.Vector; @@ -23,6 +22,7 @@ import org.junit.Before; import java.awt.*; +import java.time.Instant; import java.util.*; import java.util.List; @@ -106,7 +106,7 @@ public void setUp() throws Exception { variables.put("myDummyClass", LanguageParserDummyClass.class); variables.put("myDummyInnerClass", LanguageParserDummyClass.InnerClass.class); variables.put("myClosure", Closure.class); - variables.put("myDateTime", DateTime.class); + variables.put("myInstant", Instant.class); variables.put("myTable", Table.class); variables.put("myPyObject", PyObject.class); @@ -1522,24 +1522,24 @@ public void testBoxing() throws Exception { public void testUnboxAndWiden() throws Exception { // ensure we can find the original method - String expression = "io.deephaven.time.DateTimeUtils.plus(myDateTime, myLong)"; - String resultExpression = "io.deephaven.time.DateTimeUtils.plus(myDateTime, myLong)"; - check(expression, resultExpression, DateTime.class, new String[] {"myDateTime", "myLong"}); + String expression = "io.deephaven.time.DateTimeUtils.plus(myInstant, myLong)"; + String resultExpression = "io.deephaven.time.DateTimeUtils.plus(myInstant, myLong)"; + check(expression, resultExpression, Instant.class, new String[] {"myInstant", "myLong"}); // check long unbox - expression = "io.deephaven.time.DateTimeUtils.plus(myDateTime, myLongObj)"; - resultExpression = "io.deephaven.time.DateTimeUtils.plus(myDateTime, myLongObj.longValue())"; - check(expression, resultExpression, DateTime.class, new String[] {"myDateTime", "myLongObj"}); + expression = "io.deephaven.time.DateTimeUtils.plus(myInstant, myLongObj)"; + resultExpression = "io.deephaven.time.DateTimeUtils.plus(myInstant, myLongObj.longValue())"; + check(expression, resultExpression, Instant.class, new String[] {"myInstant", "myLongObj"}); // check int widen - expression = "io.deephaven.time.DateTimeUtils.plus(myDateTime, myInt)"; - resultExpression = "io.deephaven.time.DateTimeUtils.plus(myDateTime, longCast(myInt))"; - check(expression, resultExpression, DateTime.class, new String[] {"myDateTime", "myInt"}); + expression = "io.deephaven.time.DateTimeUtils.plus(myInstant, myInt)"; + resultExpression = "io.deephaven.time.DateTimeUtils.plus(myInstant, longCast(myInt))"; + check(expression, resultExpression, Instant.class, new String[] {"myInstant", "myInt"}); // check int unbox and widen - expression = "io.deephaven.time.DateTimeUtils.plus(myDateTime, myIntObj)"; - resultExpression = "io.deephaven.time.DateTimeUtils.plus(myDateTime, myIntObj.longValue())"; - check(expression, resultExpression, DateTime.class, new String[] {"myDateTime", "myIntObj"}); + expression = "io.deephaven.time.DateTimeUtils.plus(myInstant, myIntObj)"; + resultExpression = "io.deephaven.time.DateTimeUtils.plus(myInstant, myIntObj.longValue())"; + check(expression, resultExpression, Instant.class, new String[] {"myInstant", "myIntObj"}); // check vararg widen expression = "testImplicitConversion1(myFloat, myFloat)"; @@ -1764,9 +1764,9 @@ public void testObjectConstruction() throws Exception { resultExpression = "new LanguageParserDummyClass.StaticNestedClass()"; check(expression, resultExpression, LanguageParserDummyClass.StaticNestedClass.class, new String[] {}); - expression = "new io.deephaven.time.DateTime(123L)"; - resultExpression = "new io.deephaven.time.DateTime(123L)"; - check(expression, resultExpression, DateTime.class, new String[] {}); + expression = "xYZTimeUtils.epochNanosToInstant(123L)"; + resultExpression = "xYZTimeUtils.epochNanosToInstant(123L)"; + check(expression, resultExpression, Instant.class, new String[] {}); } public void testIntToLongConversion() throws Exception { diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FilterKernelArraySample.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FilterKernelArraySample.java index eca1a6bf648..75dcf3cebfe 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FilterKernelArraySample.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FilterKernelArraySample.java @@ -1,68 +1,15 @@ package io.deephaven.engine.table.impl.select; // QueryLibrary internal version number: DEFAULT -import io.deephaven.chunk.attributes.*; import io.deephaven.engine.rowset.chunkattributes.*; import java.lang.*; -import java.util.*; -import io.deephaven.base.string.cache.CompressedString; -import io.deephaven.chunk.ByteChunk; -import io.deephaven.chunk.CharChunk; + import io.deephaven.chunk.Chunk; -import io.deephaven.chunk.DoubleChunk; -import io.deephaven.chunk.FloatChunk; -import io.deephaven.chunk.IntChunk; import io.deephaven.chunk.LongChunk; -import io.deephaven.chunk.ObjectChunk; -import io.deephaven.chunk.ShortChunk; -import io.deephaven.chunk.WritableByteChunk; -import io.deephaven.chunk.WritableCharChunk; -import io.deephaven.chunk.WritableChunk; -import io.deephaven.chunk.WritableDoubleChunk; -import io.deephaven.chunk.WritableFloatChunk; -import io.deephaven.chunk.WritableIntChunk; -import io.deephaven.chunk.WritableLongChunk; -import io.deephaven.chunk.WritableObjectChunk; -import io.deephaven.chunk.WritableShortChunk; import io.deephaven.engine.context.QueryScopeParam; -import io.deephaven.engine.rowset.RowSequence; import io.deephaven.engine.rowset.RowSet; -import io.deephaven.engine.rowset.RowSetBuilderRandom; -import io.deephaven.engine.rowset.RowSetBuilderSequential; -import io.deephaven.engine.rowset.RowSetFactory; -import io.deephaven.engine.rowset.TrackingRowSet; -import io.deephaven.engine.rowset.TrackingWritableRowSet; -import io.deephaven.engine.rowset.WritableRowSet; -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.Context; -import io.deephaven.engine.table.DataColumn; import io.deephaven.engine.table.Table; import static io.deephaven.engine.table.impl.select.ConditionFilter.FilterKernel; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; -import io.deephaven.util.datastructures.LongSizedDataStructure; -import io.deephaven.util.type.ArrayTypeUtils; -import io.deephaven.util.type.TypeUtils; -import io.deephaven.vector.VectorConversions; -import java.lang.reflect.Array; -import java.util.concurrent.ConcurrentHashMap; -import java.time.LocalTime; -import static io.deephaven.base.string.cache.CompressedString.*; import static io.deephaven.engine.table.impl.lang.QueryLanguageFunctionUtils.*; -import static io.deephaven.engine.table.impl.verify.TableAssertions.*; -import static io.deephaven.engine.util.ColorUtilImpl.*; -import static io.deephaven.function.Basic.*; -import static io.deephaven.function.BinSearch.*; -import static io.deephaven.function.BinSearchAlgo.*; -import static io.deephaven.function.Cast.*; -import static io.deephaven.function.Logic.*; -import static io.deephaven.function.Numeric.*; -import static io.deephaven.function.Parse.*; -import static io.deephaven.function.Random.*; -import static io.deephaven.function.Sort.*; -import static io.deephaven.gui.color.Color.*; -import static io.deephaven.time.DateTimeUtils.*; -import static io.deephaven.time.calendar.StaticCalendarMethods.*; -import static io.deephaven.util.QueryConstants.*; public class FilterKernelArraySample implements io.deephaven.engine.table.impl.select.ConditionFilter.FilterKernel{ diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FilterKernelSample.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FilterKernelSample.java index 14ba78c2167..b9dfe9ed1d0 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FilterKernelSample.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FilterKernelSample.java @@ -1,68 +1,17 @@ package io.deephaven.engine.table.impl.select; // QueryLibrary internal version number: DEFAULT -import io.deephaven.chunk.attributes.*; import io.deephaven.engine.rowset.chunkattributes.*; import java.lang.*; -import java.util.*; -import io.deephaven.base.string.cache.CompressedString; -import io.deephaven.chunk.ByteChunk; -import io.deephaven.chunk.CharChunk; + import io.deephaven.chunk.Chunk; import io.deephaven.chunk.DoubleChunk; -import io.deephaven.chunk.FloatChunk; -import io.deephaven.chunk.IntChunk; import io.deephaven.chunk.LongChunk; -import io.deephaven.chunk.ObjectChunk; import io.deephaven.chunk.ShortChunk; -import io.deephaven.chunk.WritableByteChunk; -import io.deephaven.chunk.WritableCharChunk; -import io.deephaven.chunk.WritableChunk; -import io.deephaven.chunk.WritableDoubleChunk; -import io.deephaven.chunk.WritableFloatChunk; -import io.deephaven.chunk.WritableIntChunk; -import io.deephaven.chunk.WritableLongChunk; -import io.deephaven.chunk.WritableObjectChunk; -import io.deephaven.chunk.WritableShortChunk; import io.deephaven.engine.context.QueryScopeParam; -import io.deephaven.engine.rowset.RowSequence; import io.deephaven.engine.rowset.RowSet; -import io.deephaven.engine.rowset.RowSetBuilderRandom; -import io.deephaven.engine.rowset.RowSetBuilderSequential; -import io.deephaven.engine.rowset.RowSetFactory; -import io.deephaven.engine.rowset.TrackingRowSet; -import io.deephaven.engine.rowset.TrackingWritableRowSet; -import io.deephaven.engine.rowset.WritableRowSet; -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.Context; -import io.deephaven.engine.table.DataColumn; import io.deephaven.engine.table.Table; import static io.deephaven.engine.table.impl.select.ConditionFilter.FilterKernel; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; -import io.deephaven.util.datastructures.LongSizedDataStructure; -import io.deephaven.util.type.ArrayTypeUtils; -import io.deephaven.util.type.TypeUtils; -import io.deephaven.vector.VectorConversions; -import java.lang.reflect.Array; -import java.util.concurrent.ConcurrentHashMap; -import java.time.LocalTime; -import static io.deephaven.base.string.cache.CompressedString.*; import static io.deephaven.engine.table.impl.lang.QueryLanguageFunctionUtils.*; -import static io.deephaven.engine.table.impl.verify.TableAssertions.*; -import static io.deephaven.engine.util.ColorUtilImpl.*; -import static io.deephaven.function.Basic.*; -import static io.deephaven.function.BinSearch.*; -import static io.deephaven.function.BinSearchAlgo.*; -import static io.deephaven.function.Cast.*; -import static io.deephaven.function.Logic.*; -import static io.deephaven.function.Numeric.*; -import static io.deephaven.function.Parse.*; -import static io.deephaven.function.Random.*; -import static io.deephaven.function.Sort.*; -import static io.deephaven.gui.color.Color.*; -import static io.deephaven.time.DateTimeUtils.*; -import static io.deephaven.time.calendar.StaticCalendarMethods.*; -import static io.deephaven.util.QueryConstants.*; public class FilterKernelSample implements io.deephaven.engine.table.impl.select.ConditionFilter.FilterKernel{ diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FormulaKernelSample.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FormulaKernelSample.java index 5d826085832..836edf09094 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FormulaKernelSample.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FormulaKernelSample.java @@ -1,68 +1,16 @@ package io.deephaven.engine.table.impl.select; // QueryLibrary internal version number: DEFAULT import io.deephaven.chunk.attributes.*; -import io.deephaven.engine.rowset.chunkattributes.*; + import java.lang.*; -import java.util.*; -import io.deephaven.base.string.cache.CompressedString; -import io.deephaven.chunk.ByteChunk; -import io.deephaven.chunk.CharChunk; + import io.deephaven.chunk.Chunk; -import io.deephaven.chunk.DoubleChunk; -import io.deephaven.chunk.FloatChunk; import io.deephaven.chunk.IntChunk; import io.deephaven.chunk.LongChunk; -import io.deephaven.chunk.ObjectChunk; -import io.deephaven.chunk.ShortChunk; -import io.deephaven.chunk.WritableByteChunk; -import io.deephaven.chunk.WritableCharChunk; import io.deephaven.chunk.WritableChunk; -import io.deephaven.chunk.WritableDoubleChunk; -import io.deephaven.chunk.WritableFloatChunk; -import io.deephaven.chunk.WritableIntChunk; import io.deephaven.chunk.WritableLongChunk; -import io.deephaven.chunk.WritableObjectChunk; -import io.deephaven.chunk.WritableShortChunk; -import io.deephaven.engine.context.QueryScopeParam; -import io.deephaven.engine.rowset.RowSequence; -import io.deephaven.engine.rowset.RowSet; -import io.deephaven.engine.rowset.RowSetBuilderRandom; -import io.deephaven.engine.rowset.RowSetBuilderSequential; -import io.deephaven.engine.rowset.RowSetFactory; -import io.deephaven.engine.rowset.TrackingRowSet; -import io.deephaven.engine.rowset.TrackingWritableRowSet; -import io.deephaven.engine.rowset.WritableRowSet; -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.Context; -import io.deephaven.engine.table.DataColumn; -import io.deephaven.engine.table.Table; -import static io.deephaven.engine.table.impl.select.ConditionFilter.FilterKernel; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; -import io.deephaven.util.datastructures.LongSizedDataStructure; -import io.deephaven.util.type.ArrayTypeUtils; -import io.deephaven.util.type.TypeUtils; -import io.deephaven.vector.VectorConversions; -import java.lang.reflect.Array; -import java.util.concurrent.ConcurrentHashMap; -import java.time.LocalTime; -import static io.deephaven.base.string.cache.CompressedString.*; + import static io.deephaven.engine.table.impl.lang.QueryLanguageFunctionUtils.*; -import static io.deephaven.engine.table.impl.verify.TableAssertions.*; -import static io.deephaven.engine.util.ColorUtilImpl.*; -import static io.deephaven.function.Basic.*; -import static io.deephaven.function.BinSearch.*; -import static io.deephaven.function.BinSearchAlgo.*; -import static io.deephaven.function.Cast.*; -import static io.deephaven.function.Logic.*; -import static io.deephaven.function.Numeric.*; -import static io.deephaven.function.Parse.*; -import static io.deephaven.function.Random.*; -import static io.deephaven.function.Sort.*; -import static io.deephaven.gui.color.Color.*; -import static io.deephaven.time.DateTimeUtils.*; -import static io.deephaven.time.calendar.StaticCalendarMethods.*; -import static io.deephaven.util.QueryConstants.*; public class FormulaKernelSample implements io.deephaven.engine.table.impl.select.formula.FormulaKernel { public static final io.deephaven.engine.table.impl.select.formula.FormulaKernelFactory __FORMULA_KERNEL_FACTORY = FormulaKernelSample::new; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FormulaSample.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FormulaSample.java index e67bc948138..48e515e7667 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FormulaSample.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/FormulaSample.java @@ -4,65 +4,22 @@ import io.deephaven.engine.rowset.chunkattributes.*; import java.lang.*; import java.util.*; -import io.deephaven.base.string.cache.CompressedString; -import io.deephaven.chunk.ByteChunk; -import io.deephaven.chunk.CharChunk; -import io.deephaven.chunk.Chunk; -import io.deephaven.chunk.DoubleChunk; -import io.deephaven.chunk.FloatChunk; + import io.deephaven.chunk.IntChunk; import io.deephaven.chunk.LongChunk; -import io.deephaven.chunk.ObjectChunk; -import io.deephaven.chunk.ShortChunk; -import io.deephaven.chunk.WritableByteChunk; -import io.deephaven.chunk.WritableCharChunk; import io.deephaven.chunk.WritableChunk; -import io.deephaven.chunk.WritableDoubleChunk; -import io.deephaven.chunk.WritableFloatChunk; import io.deephaven.chunk.WritableIntChunk; import io.deephaven.chunk.WritableLongChunk; -import io.deephaven.chunk.WritableObjectChunk; -import io.deephaven.chunk.WritableShortChunk; -import io.deephaven.engine.context.QueryScopeParam; import io.deephaven.engine.rowset.RowSequence; import io.deephaven.engine.rowset.RowSet; -import io.deephaven.engine.rowset.RowSetBuilderRandom; -import io.deephaven.engine.rowset.RowSetBuilderSequential; -import io.deephaven.engine.rowset.RowSetFactory; import io.deephaven.engine.rowset.TrackingRowSet; -import io.deephaven.engine.rowset.TrackingWritableRowSet; -import io.deephaven.engine.rowset.WritableRowSet; import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.Context; -import io.deephaven.engine.table.DataColumn; -import io.deephaven.engine.table.Table; -import static io.deephaven.engine.table.impl.select.ConditionFilter.FilterKernel; -import io.deephaven.time.DateTime; -import io.deephaven.time.DateTimeUtils; import io.deephaven.util.datastructures.LongSizedDataStructure; -import io.deephaven.util.type.ArrayTypeUtils; import io.deephaven.util.type.TypeUtils; -import io.deephaven.vector.VectorConversions; -import java.lang.reflect.Array; + import java.util.concurrent.ConcurrentHashMap; -import java.time.LocalTime; -import static io.deephaven.base.string.cache.CompressedString.*; + import static io.deephaven.engine.table.impl.lang.QueryLanguageFunctionUtils.*; -import static io.deephaven.engine.table.impl.verify.TableAssertions.*; -import static io.deephaven.engine.util.ColorUtilImpl.*; -import static io.deephaven.function.Basic.*; -import static io.deephaven.function.BinSearch.*; -import static io.deephaven.function.BinSearchAlgo.*; -import static io.deephaven.function.Cast.*; -import static io.deephaven.function.Logic.*; -import static io.deephaven.function.Numeric.*; -import static io.deephaven.function.Parse.*; -import static io.deephaven.function.Random.*; -import static io.deephaven.function.Sort.*; -import static io.deephaven.gui.color.Color.*; -import static io.deephaven.time.DateTimeUtils.*; -import static io.deephaven.time.calendar.StaticCalendarMethods.*; -import static io.deephaven.util.QueryConstants.*; public class FormulaSample extends io.deephaven.engine.table.impl.select.Formula { public static final io.deephaven.engine.table.impl.select.formula.FormulaFactory __FORMULA_FACTORY = FormulaSample::new; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestClockFilters.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestClockFilters.java index d689889fd5a..0cc9f906179 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestClockFilters.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestClockFilters.java @@ -11,7 +11,7 @@ import static io.deephaven.engine.util.TableTools.intCol; import static io.deephaven.engine.util.TableTools.merge; import static io.deephaven.engine.util.TableTools.newTable; -import static io.deephaven.time.DateTimeUtils.epochNanosToDateTime; +import static io.deephaven.time.DateTimeUtils.epochNanosToInstant; import io.deephaven.engine.testutil.StepClock; @@ -25,13 +25,13 @@ public class TestClockFilters extends RefreshingTableTestCase { private final Table testInput3; { final Table testInputRangeA = newTable( - col("Timestamp", epochNanosToDateTime(1000L), epochNanosToDateTime(2000L), epochNanosToDateTime(3000L), epochNanosToDateTime(1000L), - epochNanosToDateTime(2000L), epochNanosToDateTime(3000L)), + col("Timestamp", epochNanosToInstant(1000L), epochNanosToInstant(2000L), epochNanosToInstant(3000L), epochNanosToInstant(1000L), + epochNanosToInstant(2000L), epochNanosToInstant(3000L)), intCol("Int", 1, 2, 3, 1, 2, 3)); testInput1 = merge(testInputRangeA, testInputRangeA, testInputRangeA); final Table testInputRangeB = newTable( - col("Timestamp", epochNanosToDateTime(2000L), epochNanosToDateTime(2000L), epochNanosToDateTime(3000L), epochNanosToDateTime(2000L), - epochNanosToDateTime(2000L), epochNanosToDateTime(3000L)), + col("Timestamp", epochNanosToInstant(2000L), epochNanosToInstant(2000L), epochNanosToInstant(3000L), epochNanosToInstant(2000L), + epochNanosToInstant(2000L), epochNanosToInstant(3000L)), intCol("Int", 2, 2, 3, 2, 2, 3)); testInput2 = merge(testInputRangeA, testInputRangeB, testInputRangeA); testInput3 = merge(testInputRangeA, testInputRangeB, testInputRangeB); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestFormulaColumn.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestFormulaColumn.java index 01cd91dd828..f5a5f57f320 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestFormulaColumn.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestFormulaColumn.java @@ -11,10 +11,10 @@ import io.deephaven.engine.table.impl.lang.QueryLanguageFunctionUtils; import io.deephaven.engine.table.impl.lang.QueryLanguageParser.QueryLanguageParseException; import io.deephaven.engine.context.QueryScope; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.util.codegen.TypeAnalyzer; import io.deephaven.engine.testutil.junit4.EngineCleanup; import io.deephaven.test.types.OutOfBandTest; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import io.deephaven.util.type.TypeUtils; import org.junit.After; @@ -90,7 +90,7 @@ public void testSimpleLiterals() { @Test public void testTimestamp() { - check("'2019-04-11T09:30 NY'", new DateTime(1554989400000000000L)); + check("'2019-04-11T09:30 NY'", DateTimeUtils.epochNanosToInstant(1554989400000000000L)); } @Test @@ -313,8 +313,8 @@ public void testObjectConstruction() { result = new HashSet(); check(row, expression, result); - expression = "new io.deephaven.time.DateTime(123L)"; - result = new DateTime(123L); + expression = "DateTimeUtils.epochNanosToInstant(123L)"; + result = DateTimeUtils.epochNanosToInstant(123L); check(row, expression, result); } } diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestReinterpretedColumn.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestReinterpretedColumn.java index 1cf32e0d504..e61b7094051 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestReinterpretedColumn.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestReinterpretedColumn.java @@ -226,7 +226,7 @@ private void doReinterpretTestBasic(final Table initial, final String iColName = withRename ? "R_I" : "I"; final String zdtColName = withRename ? "R_ZDT" : "ZDT"; - // Make everything a DateTime + // Make everything the expected type Table table = reinterpreter.apply(initial, lColName + "=L"); table = reinterpreter.apply(table, iColName + "=I"); table = reinterpreter.apply(table, zdtColName + "=ZDT"); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestSimulationClock.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestSimulationClock.java index ddc0ee21696..d5d91712f7f 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestSimulationClock.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestSimulationClock.java @@ -5,17 +5,18 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.testutil.testcase.RefreshingTableTestCase; +import java.time.Instant; + /** * Quick unit test for {@link SimulationClock}. */ public class TestSimulationClock extends RefreshingTableTestCase { public void testSignal() { - final DateTime start = DateTime.now(); - final SimulationClock clock = new SimulationClock(start, DateTimeUtils.plus(start, 1), 1); + final Instant start = DateTimeUtils.now(); + final SimulationClock clock = new SimulationClock(start, start.plusNanos(1), 1); clock.start(); for (int ci = 0; ci < 2; ++ci) { UpdateGraphProcessor.DEFAULT.runWithinUnitTestCycle(clock::advance); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/WhereFilterFactoryTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/WhereFilterFactoryTest.java index 1e538d45f24..ef86e09d9c3 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/WhereFilterFactoryTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/WhereFilterFactoryTest.java @@ -7,7 +7,6 @@ import io.deephaven.engine.table.TableDefinition; import io.deephaven.engine.context.QueryScope; import io.deephaven.engine.testutil.testcase.RefreshingTableTestCase; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.testutil.TstUtils; @@ -16,6 +15,7 @@ import java.math.BigDecimal; import java.math.BigInteger; +import java.time.Instant; import java.time.ZoneId; import java.time.ZonedDateTime; import java.time.temporal.ChronoUnit; @@ -200,14 +200,13 @@ public void testBigIn() { } - public void testInDateTimes() { - DateTime wed = DateTimeUtils.parseDateTime("2018-05-02T10:00:00 NY");// not in the table + public void testInInstants() { + Instant wed = DateTimeUtils.parseInstant("2018-05-02T10:00:00 NY");// not in the table - DateTime mon = DateTimeUtils.parseDateTime("2018-04-30T10:00:00 NY"); - DateTime tues = DateTimeUtils.parseDateTime("2018-05-01T10:00:00 NY"); - DateTime thurs = DateTimeUtils.parseDateTime("2018-05-03T10:00:00 NY"); - Table t = TableTools.newTable(TableTools.col("Timestamp", new DateTime(mon.getNanos()), - new DateTime(tues.getNanos()), new DateTime(thurs.getNanos()))); + Instant mon = DateTimeUtils.parseInstant("2018-04-30T10:00:00 NY"); + Instant tues = DateTimeUtils.parseInstant("2018-05-01T10:00:00 NY"); + Instant thurs = DateTimeUtils.parseInstant("2018-05-03T10:00:00 NY"); + Table t = TableTools.newTable(TableTools.col("Timestamp", mon, tues, thurs)); // match one item WhereFilter f = WhereFilterFactory.getExpression("Timestamp in '" + mon + "'"); f.init(t.getDefinition()); @@ -288,24 +287,24 @@ public void testTypeInference() { checkResult("FALS3", false, false, false, false, false, false, false, false, false, (byte) 0, (short) 0, 0, 0, null, 0, null, '0'); - checkDateRange("18:43", makeDateTime("18:43"), makeDateTime("18:44")); - checkDateRange("18:43:40", makeDateTime("18:43:40"), makeDateTime("18:43:41")); - checkDateRange("18:43:40.100", makeDateTime("18:43:40.100"), makeDateTime("18:43:40.101")); - checkDateRange("2018-03-25 NY", DateTimeUtils.parseDateTime("2018-03-25 NY"), - DateTimeUtils.parseDateTime("2018-03-26 NY")); - checkDateRange("2018-03-25T18:00 NY", DateTimeUtils.parseDateTime("2018-03-25T18:00 NY"), - DateTimeUtils.parseDateTime("2018-03-25T18:01 NY")); - checkDateRange("2018-03-25T18:00:00 NY", DateTimeUtils.parseDateTime("2018-03-25T18:00:00 NY"), - DateTimeUtils.parseDateTime("2018-03-25T18:00:01 NY")); + checkDateRange("18:43", makeInstant("18:43"), makeInstant("18:44")); + checkDateRange("18:43:40", makeInstant("18:43:40"), makeInstant("18:43:41")); + checkDateRange("18:43:40.100", makeInstant("18:43:40.100"), makeInstant("18:43:40.101")); + checkDateRange("2018-03-25 NY", DateTimeUtils.parseInstant("2018-03-25 NY"), + DateTimeUtils.parseInstant("2018-03-26 NY")); + checkDateRange("2018-03-25T18:00 NY", DateTimeUtils.parseInstant("2018-03-25T18:00 NY"), + DateTimeUtils.parseInstant("2018-03-25T18:01 NY")); + checkDateRange("2018-03-25T18:00:00 NY", DateTimeUtils.parseInstant("2018-03-25T18:00:00 NY"), + DateTimeUtils.parseInstant("2018-03-25T18:00:01 NY")); } - private DateTime makeDateTime(String timeStr) { + private Instant makeInstant(String timeStr) { ZonedDateTime zdt = ZonedDateTime.now(ZoneId.of("America/New_York")).truncatedTo(ChronoUnit.DAYS) .plus(DateTimeUtils.parseNanos(timeStr), ChronoUnit.NANOS); - return DateTimeUtils.epochMillisToDateTime(zdt.toInstant().toEpochMilli()); + return zdt.toInstant(); } - private void checkDateRange(String input, DateTime lowerDate, DateTime upperDate) { + private void checkDateRange(String input, Instant lowerDate, Instant upperDate) { WhereFilterFactory.InferenceResult inf = new WhereFilterFactory.InferenceResult(input); assertEquals(false, inf.isByte); assertEquals(false, inf.isShort); @@ -316,8 +315,8 @@ private void checkDateRange(String input, DateTime lowerDate, DateTime upperDate assertEquals(false, inf.isBool); assertEquals(false, inf.isChar); - assertEquals(lowerDate.getNanos(), inf.dateLower.getNanos()); - assertEquals(upperDate.getNanos(), inf.dateUpper.getNanos()); + assertEquals(DateTimeUtils.epochNanos(lowerDate), DateTimeUtils.epochNanos(inf.dateLower)); + assertEquals(DateTimeUtils.epochNanos(upperDate), DateTimeUtils.epochNanos(inf.dateUpper)); } private void checkResult(String input, boolean isByte, boolean isShort, boolean isInt, boolean isLong, diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/ArrayBackedColumnSourceTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/ArrayBackedColumnSourceTest.java index 51f5ba9119c..fa84bad6588 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/ArrayBackedColumnSourceTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/ArrayBackedColumnSourceTest.java @@ -4,7 +4,6 @@ package io.deephaven.engine.table.impl.sources; import io.deephaven.engine.table.WritableColumnSource; -import io.deephaven.time.DateTime; import io.deephaven.qst.array.Array; import io.deephaven.qst.array.GenericArray; import io.deephaven.qst.array.PrimitiveArray; @@ -70,8 +69,7 @@ public void fromStringArray() { @Test public void fromInstants() { - check(ArrayBackedColumnSourceTest::checkInstant, Type.instantType(), Instant.ofEpochMilli(1), null, - Instant.ofEpochMilli(3)); + check(Type.instantType(), Instant.ofEpochMilli(1), null, Instant.ofEpochMilli(3)); } @Test @@ -115,10 +113,4 @@ private static void check(BiPredicate comparison, Type type, T assertThat(columnSource.get(ix++)).matches((Predicate) right -> comparison.test(left, right)); } } - - private static boolean checkInstant(Instant instant, Object o) { - return (instant == null && o == null) || - (instant != null && (o instanceof DateTime) - && instant.toEpochMilli() == ((DateTime) o).getMillis()); - } } diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/chunkcolumnsource/TestChunkColumnSource.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/chunkcolumnsource/TestChunkColumnSource.java index 12fb06f28f6..d338e3577fd 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/chunkcolumnsource/TestChunkColumnSource.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/chunkcolumnsource/TestChunkColumnSource.java @@ -6,12 +6,11 @@ import gnu.trove.list.array.TLongArrayList; import io.deephaven.chunk.attributes.Values; import io.deephaven.engine.table.ChunkSource; +import io.deephaven.engine.table.impl.sources.LongAsInstantColumnSource; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.chunk.util.hashing.IntChunkEquals; import io.deephaven.engine.table.impl.sources.ByteAsBooleanColumnSource; -import io.deephaven.engine.table.impl.sources.LongAsDateTimeColumnSource; import io.deephaven.chunk.*; import io.deephaven.engine.rowset.RowSequence; import io.deephaven.engine.rowset.RowSequenceFactory; @@ -23,6 +22,8 @@ import org.junit.Before; import org.junit.Test; +import java.time.Instant; + public class TestChunkColumnSource { @Before public void setUp() throws Exception { @@ -478,44 +479,44 @@ public void testBooleanWrapper() { } } - private static DateTime makeExpectDateTime(int idx) { - return DateTimeUtils.plus(DateTimeUtils.parseDateTime("2021-07-27T09:00 NY"), idx * 3600_000_000_000L); + private static Instant makeExpectedInstant(int idx) { + return DateTimeUtils.plus(DateTimeUtils.parseInstant("2021-07-27T09:00 NY"), idx * 3600_000_000_000L); } @Test - public void testDateTimeWrapper() { + public void testInstantWrapper() { final WritableLongChunk longChunk = WritableLongChunk.makeWritableChunk(32); for (int ii = 0; ii < longChunk.size(); ++ii) { - longChunk.set(ii, makeExpectDateTime(ii).getNanos()); + longChunk.set(ii, DateTimeUtils.epochNanos(makeExpectedInstant(ii))); } final LongChunkColumnSource columnSource = new LongChunkColumnSource(); columnSource.addChunk(longChunk); - final LongAsDateTimeColumnSource wrapped = new LongAsDateTimeColumnSource(columnSource); + final LongAsInstantColumnSource wrapped = new LongAsInstantColumnSource(columnSource); TestCase.assertNull(wrapped.get(-1)); TestCase.assertNull(wrapped.get(2048)); for (int ii = 0; ii < 32; ++ii) { - TestCase.assertEquals(makeExpectDateTime(ii), wrapped.get(ii)); + TestCase.assertEquals(makeExpectedInstant(ii), wrapped.get(ii)); } - final WritableObjectChunk destChunk = WritableObjectChunk.makeWritableChunk(2048); + final WritableObjectChunk destChunk = WritableObjectChunk.makeWritableChunk(2048); try (final ChunkSource.FillContext fillContext = wrapped.makeFillContext(32)) { wrapped.fillChunk(fillContext, destChunk, RowSequenceFactory.forRange(0, 31)); TestCase.assertEquals(32, destChunk.size()); for (int ii = 0; ii < 32; ++ii) { - TestCase.assertEquals(makeExpectDateTime(ii), destChunk.get(ii)); + TestCase.assertEquals(makeExpectedInstant(ii), destChunk.get(ii)); } } try (final ChunkSource.GetContext getContext = wrapped.makeGetContext(32)) { - final ObjectChunk values = + final ObjectChunk values = wrapped.getChunk(getContext, RowSequenceFactory.forRange(1, 10)).asObjectChunk(); TestCase.assertEquals(10, values.size()); for (int ii = 1; ii <= 10; ++ii) { - TestCase.assertEquals(makeExpectDateTime(ii), values.get(ii - 1)); + TestCase.assertEquals(makeExpectedInstant(ii), values.get(ii - 1)); } } } diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/regioned/TestChunkedRegionedOperations.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/regioned/TestChunkedRegionedOperations.java index 8d78afb7ce7..e034ad5836d 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/regioned/TestChunkedRegionedOperations.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/regioned/TestChunkedRegionedOperations.java @@ -11,7 +11,6 @@ import io.deephaven.stringset.StringSet; import io.deephaven.engine.context.QueryScope; import io.deephaven.engine.testutil.junit4.EngineCleanup; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.parquet.table.ParquetTools; import io.deephaven.engine.util.TableTools; @@ -39,6 +38,7 @@ import java.math.BigInteger; import java.nio.file.Files; import java.nio.file.Paths; +import java.time.Instant; import java.util.*; import java.util.stream.IntStream; import java.util.stream.Stream; @@ -186,7 +186,7 @@ public void setUp() throws Exception { "Bl = II % 8192 == 0 ? null : II % 2 == 0", "Sym = II % 64 == 0 ? null : Long.toString(II % 1000)", "Str = II % 128 == 0 ? null : Long.toString(II)", - "DT = II % 256 == 0 ? null : new DateTime(nowNanos + II)", + "DT = II % 256 == 0 ? null : DateTimeUtils.epochNanosToInstant(nowNanos + II)", "SymS = (StringSet) new ArrayStringSet(letters[((int) II) % 64], letters[(((int) II) + 7) % 64])", "Ser = II % 1024 == 0 ? null : new SimpleSerializable(II)", "Ext = II % 1024 == 0 ? null : new SimpleExternalizable(II)", @@ -270,7 +270,7 @@ public void setUp() throws Exception { ParquetInstructions.EMPTY, partitionedDataDefinition).updateView( new ReinterpretedColumn<>("Bl", Boolean.class, "Bl_R", byte.class), - new ReinterpretedColumn<>("DT", DateTime.class, "DT_R", long.class)) + new ReinterpretedColumn<>("DT", Instant.class, "DT_R", long.class)) .coalesce(); } diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/ring/RingTableToolsTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/ring/RingTableToolsTest.java index 9979e02752c..ce62e35b981 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/ring/RingTableToolsTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/sources/ring/RingTableToolsTest.java @@ -13,11 +13,12 @@ import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.testutil.junit4.EngineCleanup; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import org.junit.Rule; import org.junit.Test; import java.math.BigInteger; +import java.time.Instant; import static io.deephaven.engine.testutil.TstUtils.assertEqualsByElements; import static io.deephaven.engine.testutil.TstUtils.assertTableEquals; @@ -26,9 +27,9 @@ import static io.deephaven.engine.util.TableTools.booleanCol; import static io.deephaven.engine.util.TableTools.byteCol; import static io.deephaven.engine.util.TableTools.charCol; -import static io.deephaven.engine.util.TableTools.dateTimeCol; import static io.deephaven.engine.util.TableTools.doubleCol; import static io.deephaven.engine.util.TableTools.floatCol; +import static io.deephaven.engine.util.TableTools.instantCol; import static io.deephaven.engine.util.TableTools.intCol; import static io.deephaven.engine.util.TableTools.longCol; import static io.deephaven.engine.util.TableTools.shortCol; @@ -52,7 +53,7 @@ public void staticTableToRing() { longHolder(size), shortHolder(size), stringHolder(size), - dateTimeHolder(size), + instantHolder(size), booleanHolder(size)); for (int capacity = 1; capacity <= 256; ++capacity) { final Table tail = table.tail(capacity); @@ -88,7 +89,7 @@ private static void cycleTest(int capacity, int appendSize, int times) { longHolder(appendSize), shortHolder(appendSize), stringHolder(appendSize), - dateTimeHolder(appendSize), + instantHolder(appendSize), booleanHolder(appendSize), }; final StreamTableHelper streamHelper = new StreamTableHelper(appendSize, holders); @@ -195,12 +196,12 @@ private static ColumnHolder booleanHolder(int appendSize) { return booleanCol("X_boolean", col); } - private static ColumnHolder dateTimeHolder(int appendSize) { - DateTime[] col = new DateTime[appendSize]; + private static ColumnHolder instantHolder(int appendSize) { + Instant[] col = new Instant[appendSize]; for (int i = 0; i < appendSize; ++i) { - col[i] = new DateTime(i); + col[i] = DateTimeUtils.epochNanosToInstant(i); } - return dateTimeCol("X_datetime", col); + return instantCol("X_datetime", col); } private static class StreamTableHelper { diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestDelta.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestDelta.java index 1147fd5d47f..641d81600c3 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestDelta.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestDelta.java @@ -10,11 +10,10 @@ import io.deephaven.engine.testutil.GenerateTableUpdates; import io.deephaven.engine.testutil.TstUtils; import io.deephaven.engine.testutil.generator.CharGenerator; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.NotNull; import org.junit.Test; @@ -22,6 +21,7 @@ import java.math.BigDecimal; import java.math.BigInteger; +import java.time.Instant; import java.util.Arrays; import java.util.Random; @@ -59,9 +59,9 @@ public class TestDelta extends BaseUpdateByTest { public void testStaticZeroKey() { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, false, false, false, 0x31313131, new String[] {"timeCol", "charCol"}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; t.setRefreshing(false); @@ -94,9 +94,9 @@ public void testStaticGroupedBucketed() { private void doTestStaticBucketed(boolean grouped) { final QueryTable t = createTestTable(100000, true, grouped, false, 0x31313131, new String[] {"timeCol", "charCol"}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; t.setRefreshing(false); @@ -136,9 +136,9 @@ public void testBucketedAppendOnly() { private void doTestAppendOnly(boolean bucketed) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, new String[] {"timeCol", "charCol"}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; t.setAttribute(Table.APPEND_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); @@ -164,9 +164,9 @@ private void doTestAppendOnly(boolean bucketed) { public void testZeroKeyGeneralTicking() { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, false, false, true, 0x31313131, new String[] {"timeCol", "charCol"}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; @@ -187,9 +187,9 @@ public void testZeroKeyGeneralTicking() { public void testBucketedGeneralTicking() { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, true, false, true, 0x31313131, new String[] {"timeCol", "charCol"}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; @@ -347,13 +347,14 @@ private static long[] deltaTime(@NotNull final Object[] expected, DeltaControl c for (int ii = 0; ii < expected.length; ii++) { if (ii == 0 || expected[ii - 1] == null) { result[ii] = control.nullBehavior() == NullBehavior.ValueDominates - ? ((DateTime) expected[ii]).getNanos() + ? DateTimeUtils.epochNanos(((Instant) expected[ii])) : NULL_LONG; } else { if (expected[ii] == null) { result[ii] = NULL_LONG; } else { - result[ii] = ((DateTime) expected[ii]).getNanos() - ((DateTime) expected[ii - 1]).getNanos(); + result[ii] = DateTimeUtils.epochNanos(((Instant) expected[ii])) + - DateTimeUtils.epochNanos(((Instant) expected[ii - 1])); } } } @@ -377,7 +378,7 @@ final void assertWithDelta(final @NotNull Object expected, final @NotNull Object assertArrayEquals(delta((float[]) expected, control), (float[]) actual, .001f); } else if (expected instanceof double[]) { assertArrayEquals(delta((double[]) expected, control), (double[]) actual, .001d); - } else if (((Object[]) expected).length > 0 && ((Object[]) expected)[0] instanceof DateTime) { + } else if (((Object[]) expected).length > 0 && ((Object[]) expected)[0] instanceof Instant) { assertArrayEquals(deltaTime((Object[]) expected, control), (long[]) actual); } else if (((Object[]) expected).length > 0) { assertArrayEquals(delta((Object[]) expected, control), (Object[]) actual); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEmMinMax.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEmMinMax.java index f2471b57dd0..cc76a7f0c90 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEmMinMax.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEmMinMax.java @@ -19,11 +19,10 @@ import io.deephaven.engine.table.impl.util.ColumnHolder; import io.deephaven.engine.testutil.EvalNugget; import io.deephaven.engine.testutil.generator.CharGenerator; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.NotNull; import org.junit.Test; @@ -32,6 +31,7 @@ import java.math.BigDecimal; import java.math.BigInteger; import java.math.MathContext; +import java.time.Instant; import java.util.Arrays; import java.util.Random; @@ -99,9 +99,9 @@ public class TestEmMinMax extends BaseUpdateByTest { public void testStaticZeroKey() { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, false, false, false, 0xFFFABBBC, new String[] {"ts", "charCol"}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final OperationControl skipControl = OperationControl.builder() @@ -112,10 +112,10 @@ public void testStaticZeroKey() { .onNullValue(BadDataBehavior.RESET) .onNanValue(BadDataBehavior.RESET).build(); - final DateTime[] ts = (DateTime[]) t.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) t.getColumn("ts").getDirect(); final long[] timestamps = new long[t.intSize()]; for (int i = 0; i < t.intSize(); i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } // Test minimum @@ -186,9 +186,9 @@ public void testStaticGroupedBucketed() { private void doTestStaticBucketed(boolean grouped) { final TableDefaults t = createTestTable(STATIC_TABLE_SIZE, true, grouped, false, 0x31313131, new String[] {"ts", "charCol"}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final OperationControl skipControl = OperationControl.builder() @@ -237,10 +237,10 @@ private void doTestStaticBucketed(boolean grouped) { preOp.partitionedTransform(postOpSkipTime, (source, actual) -> { final int sourceSize = source.intSize(); - final DateTime[] ts = (DateTime[]) source.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) source.getColumn("ts").getDirect(); final long[] timestamps = new long[sourceSize]; for (int i = 0; i < sourceSize; i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } Arrays.stream(columns).forEach(col -> { final Class colType = source.getColumn(col).getType(); @@ -253,10 +253,10 @@ private void doTestStaticBucketed(boolean grouped) { preOp.partitionedTransform(postOpResetTime, (source, actual) -> { final int sourceSize = source.intSize(); - final DateTime[] ts = (DateTime[]) source.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) source.getColumn("ts").getDirect(); final long[] timestamps = new long[sourceSize]; for (int i = 0; i < sourceSize; i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } Arrays.stream(columns).forEach(col -> { final Class colType = source.getColumn(col).getType(); @@ -305,10 +305,10 @@ private void doTestStaticBucketed(boolean grouped) { preOp.partitionedTransform(postOpSkipTime, (source, actual) -> { final int sourceSize = source.intSize(); - final DateTime[] ts = (DateTime[]) source.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) source.getColumn("ts").getDirect(); final long[] timestamps = new long[sourceSize]; for (int i = 0; i < sourceSize; i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } Arrays.stream(columns).forEach(col -> { final Class colType = source.getColumn(col).getType(); @@ -321,10 +321,10 @@ private void doTestStaticBucketed(boolean grouped) { preOp.partitionedTransform(postOpResetTime, (source, actual) -> { final int sourceSize = source.intSize(); - final DateTime[] ts = (DateTime[]) source.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) source.getColumn("ts").getDirect(); final long[] timestamps = new long[sourceSize]; for (int i = 0; i < sourceSize; i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } Arrays.stream(columns).forEach(col -> { final Class colType = source.getColumn(col).getType(); @@ -418,10 +418,10 @@ public void testThrowBehaviors() { @Test public void testTimeThrowBehaviors() { final ColumnHolder ts = col("ts", - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:29:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:32:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:29:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:32:00.000 NY"), null); testThrowsInternal( @@ -480,12 +480,12 @@ public void testResetBehavior() { .build(); final ColumnHolder ts = col("ts", - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:31:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:32:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:33:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:34:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:35:00.000 NY")); + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:31:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:32:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:33:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:34:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:35:00.000 NY")); Table expected = testTable(RowSetFactory.flat(6).toTracking(), ts, doubleCol("col", 0, NULL_DOUBLE, 2, NULL_DOUBLE, 4, NULL_DOUBLE)); @@ -576,11 +576,11 @@ public void testPoison() { assertTableEquals(expected, input.updateBy(UpdateByOperation.EmMin(nanCtl, 10))); final ColumnHolder ts = col("ts", - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:31:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:31:00.000 NY"), null, - DateTimeUtils.parseDateTime("2022-03-11T09:33:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:34:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:33:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:34:00.000 NY"), null); expected = testTable(RowSetFactory.flat(6).toTracking(), ts, @@ -598,10 +598,10 @@ public void testPoison() { /** * This is a hacky, inefficient way to force nulls into the timestamps while maintaining sorted-ness otherwise */ - private class SortedIntGeneratorWithNulls extends SortedDateTimeGenerator { + private class SortedIntGeneratorWithNulls extends SortedInstantGenerator { final double nullFrac; - public SortedIntGeneratorWithNulls(DateTime minTime, DateTime maxTime, double nullFrac) { + public SortedIntGeneratorWithNulls(Instant minTime, Instant maxTime, double nullFrac) { super(minTime, maxTime); this.nullFrac = nullFrac; } @@ -612,7 +612,7 @@ public Chunk populateChunk(RowSet toAdd, Random random) { if (nullFrac == 0.0) { return retChunk; } - ObjectChunk srcChunk = retChunk.asObjectChunk(); + ObjectChunk srcChunk = retChunk.asObjectChunk(); Object[] dateArr = new Object[srcChunk.size()]; srcChunk.copyToArray(0, dateArr, 0, dateArr.length); @@ -630,8 +630,8 @@ public Chunk populateChunk(RowSet toAdd, Random random) { public void testNullTimestamps() { final CreateResult timeResult = createTestTable(100, true, false, true, 0x31313131, new String[] {"ts"}, new TestDataGenerator[] {new SortedIntGeneratorWithNulls( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"), 0.25)}); final OperationControl skipControl = OperationControl.builder() @@ -688,9 +688,9 @@ private void doTestTicking(boolean bucketed, boolean appendOnly) { new CharGenerator('A', 'z', 0.1)}); final CreateResult timeResult = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, new String[] {"ts", "charCol"}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); if (appendOnly) { diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEma.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEma.java index 7edad848b05..abdfa4814bd 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEma.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEma.java @@ -15,7 +15,7 @@ import io.deephaven.engine.table.impl.locations.TableDataException; import io.deephaven.engine.table.impl.util.ColumnHolder; import io.deephaven.engine.testutil.EvalNugget; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.util.TableDiff; @@ -24,13 +24,13 @@ import io.deephaven.numerics.movingaverages.ByEma; import io.deephaven.numerics.movingaverages.ByEmaSimple; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import org.junit.Test; import org.junit.experimental.categories.Category; import java.math.BigDecimal; import java.math.BigInteger; +import java.time.Instant; import java.util.Random; import java.util.concurrent.TimeUnit; @@ -49,9 +49,9 @@ public class TestEma extends BaseUpdateByTest { @Test public void testStaticZeroKey() { final QueryTable t = createTestTable(100000, false, false, false, 0xFFFABBBC, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}).t; + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}).t; final OperationControl skipControl = OperationControl.builder() .onNullValue(BadDataBehavior.SKIP) @@ -82,9 +82,9 @@ public void testStaticGroupedBucketed() { private void doTestStaticBucketed(boolean grouped) { final TableDefaults t = createTestTable(100000, true, grouped, false, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}).t; + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}).t; final OperationControl skipControl = OperationControl.builder() .onNullValue(BadDataBehavior.SKIP) @@ -180,10 +180,10 @@ public void testThrowBehaviors() { @Test public void testTimeThrowBehaviors() { final ColumnHolder ts = col("ts", - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:29:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:32:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:29:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:32:00.000 NY"), null); testThrowsInternal( @@ -242,12 +242,12 @@ public void testResetBehavior() { .build(); final ColumnHolder ts = col("ts", - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:31:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:32:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:33:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:34:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:35:00.000 NY")); + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:31:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:32:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:33:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:34:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:35:00.000 NY")); Table expected = testTable(RowSetFactory.flat(6).toTracking(), ts, doubleCol("col", 0, NULL_DOUBLE, 2, NULL_DOUBLE, 4, NULL_DOUBLE)); @@ -338,11 +338,11 @@ public void testPoison() { assertTableEquals(expected, input.updateBy(UpdateByOperation.Ema(nanCtl, 10))); final ColumnHolder ts = col("ts", - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:31:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:31:00.000 NY"), null, - DateTimeUtils.parseDateTime("2022-03-11T09:33:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:34:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:33:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:34:00.000 NY"), null); expected = testTable(RowSetFactory.flat(6).toTracking(), ts, @@ -360,10 +360,10 @@ public void testPoison() { /** * This is a hacky, inefficient way to force nulls into the timestamps while maintaining sorted-ness otherwise */ - private class SortedIntGeneratorWithNulls extends SortedDateTimeGenerator { + private class SortedIntGeneratorWithNulls extends SortedInstantGenerator { final double nullFrac; - public SortedIntGeneratorWithNulls(DateTime minTime, DateTime maxTime, double nullFrac) { + public SortedIntGeneratorWithNulls(Instant minTime, Instant maxTime, double nullFrac) { super(minTime, maxTime); this.nullFrac = nullFrac; } @@ -374,7 +374,7 @@ public Chunk populateChunk(RowSet toAdd, Random random) { if (nullFrac == 0.0) { return retChunk; } - ObjectChunk srcChunk = retChunk.asObjectChunk(); + ObjectChunk srcChunk = retChunk.asObjectChunk(); Object[] dateArr = new Object[srcChunk.size()]; srcChunk.copyToArray(0, dateArr, 0, dateArr.length); @@ -392,8 +392,8 @@ public Chunk populateChunk(RowSet toAdd, Random random) { public void testNullTimestamps() { final CreateResult timeResult = createTestTable(100, true, false, true, 0x31313131, new String[] {"ts"}, new TestDataGenerator[] {new SortedIntGeneratorWithNulls( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"), 0.25)}); final OperationControl skipControl = OperationControl.builder() @@ -446,9 +446,9 @@ public void testBucketedGeneral() { private void doTestTicking(boolean bucketed, boolean appendOnly) { final CreateResult tickResult = createTestTable(10000, bucketed, false, true, 0x31313131); final CreateResult timeResult = createTestTable(10000, bucketed, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); if (appendOnly) { tickResult.t.setAttribute(Table.ADD_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEms.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEms.java index f8a29f3cec0..dd17928ec77 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEms.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestEms.java @@ -17,11 +17,10 @@ import io.deephaven.engine.table.impl.util.ColumnHolder; import io.deephaven.engine.testutil.EvalNugget; import io.deephaven.engine.testutil.generator.CharGenerator; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.NotNull; import org.junit.Test; @@ -30,6 +29,7 @@ import java.math.BigDecimal; import java.math.BigInteger; import java.math.MathContext; +import java.time.Instant; import java.util.Arrays; import java.util.Random; @@ -76,9 +76,9 @@ public class TestEms extends BaseUpdateByTest { public void testStaticZeroKey() { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, false, false, false, 0xFFFABBBC, new String[] {"ts", "charCol"}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final OperationControl skipControl = OperationControl.builder() @@ -103,10 +103,10 @@ public void testStaticZeroKey() { final Table actualSkipTime = t.updateBy(UpdateByOperation.Ems(skipControl, "ts", 10 * MINUTE, columns)); final Table actualResetTime = t.updateBy(UpdateByOperation.Ems(resetControl, "ts", 10 * MINUTE, columns)); - final DateTime[] ts = (DateTime[]) t.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) t.getColumn("ts").getDirect(); final long[] timestamps = new long[t.intSize()]; for (int i = 0; i < t.intSize(); i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } for (String col : columns) { @@ -135,9 +135,9 @@ public void testStaticGroupedBucketed() { private void doTestStaticBucketed(boolean grouped) { final TableDefaults t = createTestTable(STATIC_TABLE_SIZE, true, grouped, false, 0x31313131, new String[] {"ts", "charCol"}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final OperationControl skipControl = OperationControl.builder() @@ -184,10 +184,10 @@ private void doTestStaticBucketed(boolean grouped) { preOp.partitionedTransform(postOpSkipTime, (source, actual) -> { final int sourceSize = source.intSize(); - final DateTime[] ts = (DateTime[]) source.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) source.getColumn("ts").getDirect(); final long[] timestamps = new long[sourceSize]; for (int i = 0; i < sourceSize; i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } Arrays.stream(columns).forEach(col -> { final Class colType = source.getColumn(col).getType(); @@ -200,10 +200,10 @@ private void doTestStaticBucketed(boolean grouped) { preOp.partitionedTransform(postOpResetTime, (source, actual) -> { final int sourceSize = source.intSize(); - final DateTime[] ts = (DateTime[]) source.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) source.getColumn("ts").getDirect(); final long[] timestamps = new long[sourceSize]; for (int i = 0; i < sourceSize; i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } Arrays.stream(columns).forEach(col -> { final Class colType = source.getColumn(col).getType(); @@ -296,10 +296,10 @@ public void testThrowBehaviors() { @Test public void testTimeThrowBehaviors() { final ColumnHolder ts = col("ts", - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:29:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:32:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:29:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:32:00.000 NY"), null); testThrowsInternal( @@ -358,12 +358,12 @@ public void testResetBehavior() { .build(); final ColumnHolder ts = col("ts", - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:31:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:32:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:33:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:34:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:35:00.000 NY")); + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:31:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:32:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:33:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:34:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:35:00.000 NY")); Table expected = testTable(RowSetFactory.flat(6).toTracking(), ts, doubleCol("col", 0, NULL_DOUBLE, 2, NULL_DOUBLE, 4, NULL_DOUBLE)); @@ -454,11 +454,11 @@ public void testPoison() { assertTableEquals(expected, input.updateBy(UpdateByOperation.Ems(nanCtl, 10))); final ColumnHolder ts = col("ts", - DateTimeUtils.parseDateTime("2022-03-11T09:30:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:31:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:31:00.000 NY"), null, - DateTimeUtils.parseDateTime("2022-03-11T09:33:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-11T09:34:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:33:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-11T09:34:00.000 NY"), null); expected = testTable(RowSetFactory.flat(6).toTracking(), ts, @@ -476,10 +476,10 @@ public void testPoison() { /** * This is a hacky, inefficient way to force nulls into the timestamps while maintaining sorted-ness otherwise */ - private class SortedIntGeneratorWithNulls extends SortedDateTimeGenerator { + private class SortedIntGeneratorWithNulls extends SortedInstantGenerator { final double nullFrac; - public SortedIntGeneratorWithNulls(DateTime minTime, DateTime maxTime, double nullFrac) { + public SortedIntGeneratorWithNulls(Instant minTime, Instant maxTime, double nullFrac) { super(minTime, maxTime); this.nullFrac = nullFrac; } @@ -490,7 +490,7 @@ public Chunk populateChunk(RowSet toAdd, Random random) { if (nullFrac == 0.0) { return retChunk; } - ObjectChunk srcChunk = retChunk.asObjectChunk(); + ObjectChunk srcChunk = retChunk.asObjectChunk(); Object[] dateArr = new Object[srcChunk.size()]; srcChunk.copyToArray(0, dateArr, 0, dateArr.length); @@ -508,8 +508,8 @@ public Chunk populateChunk(RowSet toAdd, Random random) { public void testNullTimestamps() { final CreateResult timeResult = createTestTable(100, true, false, true, 0x31313131, new String[] {"ts"}, new TestDataGenerator[] {new SortedIntGeneratorWithNulls( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"), 0.25)}); final OperationControl skipControl = OperationControl.builder() @@ -566,9 +566,9 @@ private void doTestTicking(boolean bucketed, boolean appendOnly) { new CharGenerator('A', 'z', 0.1)}); final CreateResult timeResult = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, new String[] {"ts", "charCol"}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); if (appendOnly) { diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingAvg.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingAvg.java index 2f531b0a178..9978ea0d9df 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingAvg.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingAvg.java @@ -11,7 +11,7 @@ import io.deephaven.engine.testutil.GenerateTableUpdates; import io.deephaven.engine.testutil.TstUtils; import io.deephaven.engine.testutil.generator.CharGenerator; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.util.TableDiff; @@ -379,9 +379,9 @@ private void doTestStaticZeroKey(final int prevTicks, final int postTicks) { private void doTestStaticZeroKeyTimed(final Duration prevTime, final Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, false, false, false, 0xFFFABBBC, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final Table actual = t.updateBy(UpdateByOperation.RollingAvg("ts", prevTime, postTime, primitiveColumns)); @@ -501,9 +501,9 @@ private void doTestStaticBucketed(boolean grouped, int prevTicks, int postTicks) private void doTestStaticBucketedTimed(boolean grouped, Duration prevTime, Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, true, grouped, false, 0xFFFABBBC, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final Table actual = @@ -697,9 +697,9 @@ private void doTestAppendOnly(boolean bucketed, int prevTicks, int postTicks) { private void doTestAppendOnlyTimed(boolean bucketed, Duration prevTime, Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; t.setAttribute(Table.APPEND_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); @@ -857,9 +857,9 @@ private void doTestTicking(final boolean bucketed, final long prevTicks, final l private void doTestTickingTimed(final boolean bucketed, final Duration prevTime, final Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; @@ -918,9 +918,9 @@ public void testBucketedGeneralTickingTimedRevRedirected() { final Duration postTime = Duration.ofMinutes(0); final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, true, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingCount.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingCount.java index 7e852070e7e..c321eb0be6f 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingCount.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingCount.java @@ -12,7 +12,7 @@ import io.deephaven.engine.testutil.GenerateTableUpdates; import io.deephaven.engine.testutil.TstUtils; import io.deephaven.engine.testutil.generator.CharGenerator; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.util.TableDiff; @@ -322,9 +322,9 @@ private void doTestStaticZeroKey(final int prevTicks, final int postTicks) { private void doTestStaticZeroKeyTimed(final Duration prevTime, final Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, false, false, false, 0xFFFABBBC, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final Table actual = t.updateBy(UpdateByOperation.RollingCount("ts", prevTime, postTime, primitiveColumns)); @@ -447,9 +447,9 @@ private void doTestStaticBucketed(boolean grouped, int prevTicks, int postTicks) private void doTestStaticBucketedTimed(boolean grouped, Duration prevTime, Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, true, grouped, false, 0xFFFABBBC, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final Table actual = @@ -642,9 +642,9 @@ private void doTestAppendOnly(boolean bucketed, int prevTicks, int postTicks) { private void doTestAppendOnlyTimed(boolean bucketed, Duration prevTime, Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; t.setAttribute(Table.APPEND_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); @@ -804,9 +804,9 @@ private void doTestTicking(final boolean bucketed, final long prevTicks, final l private void doTestTickingTimed(final boolean bucketed, final Duration prevTime, final Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; @@ -862,9 +862,9 @@ public void testBucketedGeneralTickingTimedRevRedirected() { final Duration postTime = Duration.ofMinutes(0); final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, true, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingGroup.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingGroup.java index 51ce2369945..c0e29dbbf24 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingGroup.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingGroup.java @@ -12,11 +12,10 @@ import io.deephaven.engine.testutil.EvalNugget; import io.deephaven.engine.testutil.GenerateTableUpdates; import io.deephaven.engine.testutil.TstUtils; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.vector.*; import org.jetbrains.annotations.NotNull; @@ -26,6 +25,7 @@ import java.math.BigDecimal; import java.math.BigInteger; import java.time.Duration; +import java.time.Instant; import java.util.Arrays; import java.util.List; import java.util.Objects; @@ -152,18 +152,18 @@ private void doTestStaticZeroKey(final int prevTicks, final int postTicks) { private void doTestStaticZeroKeyTimed(final Duration prevTime, final Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, false, false, false, 0xFFFABBBC, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}).t; + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}).t; final Table summed = t.updateBy(UpdateByOperation.RollingGroup("ts", prevTime, postTime, columns)); - final DateTime[] ts = (DateTime[]) t.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) t.getColumn("ts").getDirect(); final long[] timestamps = new long[t.intSize()]; for (int i = 0; i < t.intSize(); i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } for (String col : t.getDefinition().getColumnNamesArray()) { @@ -288,9 +288,9 @@ private void doTestStaticBucketed(boolean grouped, int prevTicks, int postTicks) private void doTestStaticBucketedTimed(boolean grouped, Duration prevTime, Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, true, grouped, false, 0xFFFABBBC, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}).t; + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}).t; final Table summed = t.updateBy(UpdateByOperation.RollingGroup("ts", prevTime, postTime, columns), "Sym"); @@ -302,10 +302,10 @@ private void doTestStaticBucketedTimed(boolean grouped, Duration prevTime, Durat String[] columns = t.getDefinition().getColumnStream().map(ColumnDefinition::getName).toArray(String[]::new); preOp.partitionedTransform(postOp, (source, actual) -> { - DateTime[] ts = (DateTime[]) source.getColumn("ts").getDirect(); + Instant[] ts = (Instant[]) source.getColumn("ts").getDirect(); long[] timestamps = new long[source.intSize()]; for (int i = 0; i < source.intSize(); i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } Arrays.stream(columns).forEach(col -> { assertWithRollingGroupTime(source.getColumn(col).getDirect(), actual.getColumn(col).getDirect(), @@ -499,9 +499,9 @@ protected Table e() { private void doTestAppendOnlyTimed(boolean bucketed, Duration prevTime, Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; t.setAttribute(Table.ADD_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); @@ -668,9 +668,9 @@ protected Table e() { private void doTestTickingTimed(final boolean bucketed, final Duration prevTime, final Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; @@ -730,9 +730,9 @@ public void testBucketedGeneralTickingTimedRevRedirected() { final Duration postTime = Duration.ofMinutes(0); final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, true, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; @@ -805,9 +805,9 @@ public void testUngroupOneRowTimed() { final Duration postTime = Duration.ofMinutes(0); final CreateResult result = createTestTable(STATIC_TABLE_SIZE, false, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; @@ -827,9 +827,9 @@ public void testUngroupOneRowBucketedTimed() { final Duration postTime = Duration.ofMinutes(0); final CreateResult result = createTestTable(STATIC_TABLE_SIZE, true, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; @@ -881,9 +881,9 @@ public void testUngroupFiveRowsRevTimed() { final Duration postTime = Duration.ofMinutes(0); final CreateResult result = createTestTable(STATIC_TABLE_SIZE, false, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; @@ -951,9 +951,9 @@ public void testUngroupFiveRowsFwdTimed() { final Duration postTime = Duration.ofMinutes(5); final CreateResult result = createTestTable(STATIC_TABLE_SIZE, false, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; @@ -988,9 +988,9 @@ public void testEmptyUngroupTimed() { final Duration postTime = Duration.ofMinutes(5_000_000); final CreateResult result = createTestTable(STATIC_TABLE_SIZE, false, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingMinMax.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingMinMax.java index 2c884ddeaad..04a032a52f6 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingMinMax.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingMinMax.java @@ -11,7 +11,7 @@ import io.deephaven.engine.testutil.GenerateTableUpdates; import io.deephaven.engine.testutil.TstUtils; import io.deephaven.engine.testutil.generator.CharGenerator; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.util.TableDiff; @@ -577,9 +577,9 @@ private void doTestStaticZeroKey(final int prevTicks, final int postTicks) { private void doTestStaticZeroKeyTimed(final Duration prevTime, final Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, false, false, false, 0xFFFABBBC, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final Table actualMin = t.updateBy(UpdateByOperation.RollingMin("ts", prevTime, postTime, primitiveColumns)); @@ -715,9 +715,9 @@ private void doTestStaticBucketed(boolean grouped, int prevTicks, int postTicks) private void doTestStaticBucketedTimed(boolean grouped, Duration prevTime, Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, true, grouped, false, 0xFFFABBBC, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final Table actualMin = @@ -931,9 +931,9 @@ protected Table e() { private void doTestAppendOnlyTimed(boolean bucketed, Duration prevTime, Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; t.setAttribute(Table.APPEND_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); @@ -1097,9 +1097,9 @@ private void doTestTicking(final boolean bucketed, final long prevTicks, final l private void doTestTickingTimed(final boolean bucketed, final Duration prevTime, final Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; @@ -1157,9 +1157,9 @@ public void testBucketedGeneralTickingTimedRevRedirected() { final Duration postTime = Duration.ofMinutes(0); final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, true, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingProduct.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingProduct.java index 13879758407..f40c5fc711c 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingProduct.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingProduct.java @@ -11,7 +11,7 @@ import io.deephaven.engine.testutil.GenerateTableUpdates; import io.deephaven.engine.testutil.TstUtils; import io.deephaven.engine.testutil.generator.CharGenerator; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.util.TableDiff; @@ -410,9 +410,9 @@ private void doTestStaticZeroKey(final int prevTicks, final int postTicks) { private void doTestStaticZeroKeyTimed(final Duration prevTime, final Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, false, false, false, 0xFFFABBBC, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final Table actual = t.updateBy(UpdateByOperation.RollingProduct("ts", prevTime, postTime, primitiveColumns)); @@ -535,9 +535,9 @@ private void doTestStaticBucketed(boolean grouped, int prevTicks, int postTicks) private void doTestStaticBucketedTimed(boolean grouped, Duration prevTime, Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, true, grouped, false, 0xFFFABBBC, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final Table actual = @@ -736,9 +736,9 @@ protected Table e() { private void doTestAppendOnlyTimed(boolean bucketed, Duration prevTime, Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; t.setAttribute(Table.APPEND_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); @@ -908,9 +908,9 @@ protected Table e() { private void doTestTickingTimed(final boolean bucketed, final Duration prevTime, final Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; @@ -976,9 +976,9 @@ public void testBucketedGeneralTickingTimedRevRedirected() { final Duration postTime = Duration.ofMinutes(0); final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, true, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingStd.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingStd.java index 57d3621587e..a97a367d448 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingStd.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingStd.java @@ -11,7 +11,7 @@ import io.deephaven.engine.testutil.GenerateTableUpdates; import io.deephaven.engine.testutil.TstUtils; import io.deephaven.engine.testutil.generator.CharGenerator; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.util.TableDiff; @@ -405,9 +405,9 @@ private void doTestStaticZeroKey(final int prevTicks, final int postTicks) { private void doTestStaticZeroKeyTimed(final Duration prevTime, final Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, false, false, false, 0xFFFABBBC, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final Table actual = t.updateBy(UpdateByOperation.RollingStd("ts", prevTime, postTime, primitiveColumns)); @@ -527,9 +527,9 @@ private void doTestStaticBucketed(boolean grouped, int prevTicks, int postTicks) private void doTestStaticBucketedTimed(boolean grouped, Duration prevTime, Duration postTime) { final QueryTable t = createTestTable(STATIC_TABLE_SIZE, true, grouped, false, 0xFFFABBBC, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}).t; final Table actual = @@ -723,9 +723,9 @@ private void doTestAppendOnly(boolean bucketed, int prevTicks, int postTicks) { private void doTestAppendOnlyTimed(boolean bucketed, Duration prevTime, Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; t.setAttribute(Table.APPEND_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); @@ -883,9 +883,9 @@ private void doTestTicking(final boolean bucketed, final long prevTicks, final l private void doTestTickingTimed(final boolean bucketed, final Duration prevTime, final Duration postTime) { final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; @@ -944,9 +944,9 @@ public void testBucketedGeneralTickingTimedRevRedirected() { final Duration postTime = Duration.ofMinutes(0); final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, true, false, true, 0x31313131, - new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", "charCol"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1)}); final QueryTable t = result.t; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingSum.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingSum.java index 350a85b9670..51c44714643 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingSum.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingSum.java @@ -10,12 +10,11 @@ import io.deephaven.engine.testutil.EvalNugget; import io.deephaven.engine.testutil.GenerateTableUpdates; import io.deephaven.engine.testutil.TstUtils; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.util.TableDiff; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.NotNull; import org.junit.Test; @@ -24,6 +23,7 @@ import java.math.BigDecimal; import java.math.BigInteger; import java.time.Duration; +import java.time.Instant; import java.util.Arrays; import java.util.EnumSet; import java.util.List; @@ -133,9 +133,9 @@ public void testStaticZeroKeyFwdRevWindow() { @Test public void testStaticZeroKeyTimedRev() { final QueryTable t = createTestTable(10000, false, false, false, 0xFFFABBBC, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}).t; + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}).t; final Duration prevTime = Duration.ofMinutes(10); final Duration postTime = Duration.ZERO; @@ -146,10 +146,10 @@ public void testStaticZeroKeyTimedRev() { "doubleCol", "boolCol", "bigIntCol", "bigDecimalCol")); - final DateTime[] ts = (DateTime[]) t.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) t.getColumn("ts").getDirect(); final long[] timestamps = new long[t.intSize()]; for (int i = 0; i < t.intSize(); i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } for (String col : t.getDefinition().getColumnNamesArray()) { @@ -161,9 +161,9 @@ public void testStaticZeroKeyTimedRev() { @Test public void testStaticZeroKeyTimedRevExclusive() { final QueryTable t = createTestTable(10000, false, false, false, 0xFFFABBBC, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}).t; + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}).t; final Duration prevTime = Duration.ofMinutes(10); final Duration postTime = Duration.ofMinutes(-5); @@ -174,10 +174,10 @@ public void testStaticZeroKeyTimedRevExclusive() { "doubleCol", "boolCol", "bigIntCol", "bigDecimalCol")); - final DateTime[] ts = (DateTime[]) t.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) t.getColumn("ts").getDirect(); final long[] timestamps = new long[t.intSize()]; for (int i = 0; i < t.intSize(); i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } for (String col : t.getDefinition().getColumnNamesArray()) { @@ -189,9 +189,9 @@ public void testStaticZeroKeyTimedRevExclusive() { @Test public void testStaticZeroKeyTimedFwd() { final QueryTable t = createTestTable(10000, false, false, false, 0xFFFABBBC, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}).t; + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}).t; final Duration prevTime = Duration.ZERO; final Duration postTime = Duration.ofMinutes(10); @@ -202,10 +202,10 @@ public void testStaticZeroKeyTimedFwd() { "doubleCol", "boolCol", "bigIntCol", "bigDecimalCol")); - final DateTime[] ts = (DateTime[]) t.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) t.getColumn("ts").getDirect(); final long[] timestamps = new long[t.intSize()]; for (int i = 0; i < t.intSize(); i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } for (String col : t.getDefinition().getColumnNamesArray()) { @@ -217,9 +217,9 @@ public void testStaticZeroKeyTimedFwd() { @Test public void testStaticZeroKeyTimedFwdExclusive() { final QueryTable t = createTestTable(10000, false, false, false, 0xFFFABBBC, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}).t; + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}).t; final Duration prevTime = Duration.ofMinutes(-5); final Duration postTime = Duration.ofMinutes(10); @@ -230,10 +230,10 @@ public void testStaticZeroKeyTimedFwdExclusive() { "doubleCol", "boolCol", "bigIntCol", "bigDecimalCol")); - final DateTime[] ts = (DateTime[]) t.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) t.getColumn("ts").getDirect(); final long[] timestamps = new long[t.intSize()]; for (int i = 0; i < t.intSize(); i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } for (String col : t.getDefinition().getColumnNamesArray()) { @@ -245,9 +245,9 @@ public void testStaticZeroKeyTimedFwdExclusive() { @Test public void testStaticZeroKeyTimedFwdRev() { final QueryTable t = createTestTable(10000, false, false, false, 0xFFFABBBC, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}).t; + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}).t; final Duration prevTime = Duration.ofMinutes(10); final Duration postTime = Duration.ofMinutes(10); @@ -258,10 +258,10 @@ public void testStaticZeroKeyTimedFwdRev() { "doubleCol", "boolCol", "bigIntCol", "bigDecimalCol")); - final DateTime[] ts = (DateTime[]) t.getColumn("ts").getDirect(); + final Instant[] ts = (Instant[]) t.getColumn("ts").getDirect(); final long[] timestamps = new long[t.intSize()]; for (int i = 0; i < t.intSize(); i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } for (String col : t.getDefinition().getColumnNamesArray()) { @@ -393,9 +393,9 @@ public void testStaticBucketedFwdRevWindowTimed() { private void doTestStaticBucketedTimed(boolean grouped, Duration prevTime, Duration postTime) { final QueryTable t = createTestTable(10000, true, grouped, false, 0xFFFABBBC, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}).t; + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}).t; final Table summed = t.updateBy(UpdateByOperation.RollingSum("ts", prevTime, postTime, "byteCol", "shortCol", "intCol", @@ -409,10 +409,10 @@ private void doTestStaticBucketedTimed(boolean grouped, Duration prevTime, Durat String[] columns = t.getDefinition().getColumnStream().map(ColumnDefinition::getName).toArray(String[]::new); preOp.partitionedTransform(postOp, (source, actual) -> { - DateTime[] ts = (DateTime[]) source.getColumn("ts").getDirect(); + Instant[] ts = (Instant[]) source.getColumn("ts").getDirect(); long[] timestamps = new long[source.intSize()]; for (int i = 0; i < source.intSize(); i++) { - timestamps[i] = ts[i].getNanos(); + timestamps[i] = DateTimeUtils.epochNanos(ts[i]); } Arrays.stream(columns).forEach(col -> { assertWithRollingSumTime(source.getColumn(col).getDirect(), actual.getColumn(col).getDirect(), @@ -549,9 +549,9 @@ public void testZeroKeyAppendOnlyTimedFwdRev() { private void doTestAppendOnlyTimed(boolean bucketed, Duration prevTime, Duration postTime) { final CreateResult result = createTestTable(10000, bucketed, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; t.setAttribute(Table.ADD_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); @@ -849,9 +849,9 @@ public void testBucketedGeneralTickingTimedRev() { final Duration postTime = Duration.ofMinutes(0); final CreateResult result = createTestTable(10000, true, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; @@ -882,9 +882,9 @@ public void testBucketedGeneralTickingTimedRevExclusive() { final Duration postTime = Duration.ofMinutes(-5); final CreateResult result = createTestTable(100, true, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; @@ -915,9 +915,9 @@ public void testBucketedGeneralTickingTimedFwd() { final Duration postTime = Duration.ofMinutes(10); final CreateResult result = createTestTable(10000, true, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; @@ -948,9 +948,9 @@ public void testBucketedGeneralTickingTimedFwdExclusive() { final Duration postTime = Duration.ofMinutes(10); final CreateResult result = createTestTable(10000, true, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; @@ -981,9 +981,9 @@ public void testBucketedGeneralTickingTimedFwdRev() { final Duration postTime = Duration.ofMinutes(0); final CreateResult result = createTestTable(10000, true, false, true, 0x31313131, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final QueryTable t = result.t; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingWAvg.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingWAvg.java index b56f4eb9e9d..09d0af76d42 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingWAvg.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestRollingWAvg.java @@ -576,9 +576,9 @@ private void doTestStaticTimed(boolean bucketed, Duration prevTime, Duration pos QueryTable t = createTestTable(STATIC_TABLE_SIZE, bucketed, false, false, 0xFFFABBBC, new String[] {"ts", "charCol", weightCol}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1), new DoubleGenerator(10.1, 20.1, .1) }).t; @@ -622,9 +622,9 @@ private void doTestStaticTimed(boolean bucketed, Duration prevTime, Duration pos t = createTestTable(STATIC_TABLE_SIZE, bucketed, false, false, 0xFFFABBBC, new String[] {"ts", "charCol", weightCol}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1), new ShortGenerator((short) -6000, (short) 65535, .1) }).t; @@ -661,18 +661,18 @@ private void doTestStaticTimed(boolean bucketed, Duration prevTime, Duration pos weightCol = "bigIntWeightCol"; t = createTestTable(STATIC_TABLE_SIZE, bucketed, false, false, 0x31313131, - new String[] {"ts", weightCol}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", weightCol}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new BigIntegerGenerator(BigInteger.valueOf(-10), BigInteger.valueOf(10), .1)}).t; doTestStaticTimedBigNumbers(t, prevTime, postTime, bucketed, weightCol, wavgBigIntBigInt, wavgBigDecBigInt); weightCol = "bigDecWeightCol"; t = createTestTable(STATIC_TABLE_SIZE, bucketed, false, false, 0x31313131, - new String[] {"ts", weightCol}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new String[] {"ts", weightCol}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new BigDecimalGenerator(BigInteger.valueOf(1), BigInteger.valueOf(2), 5, .1)}).t; doTestStaticTimedBigNumbers(t, prevTime, postTime, bucketed, weightCol, wavgBigIntBigDec, wavgBigDecBigDec); @@ -1081,9 +1081,9 @@ private void doTestAppendOnlyTimed(boolean bucketed, Duration prevTime, Duration final String doubleWeightCol = "doubleWeightCol"; final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0xFFFABBBC, new String[] {"ts", "charCol", doubleWeightCol}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1), new DoubleGenerator(10.1, 20.1, .1)}); @@ -1120,9 +1120,9 @@ protected Table e() { final CreateResult result2 = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0xFFFABBBC, new String[] {"ts", "charCol", shortWeightCol}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1), new ShortGenerator((short) -6000, (short) 65535, .1)}); @@ -1341,9 +1341,9 @@ private void doTestTickingTimed(final boolean bucketed, final Duration prevTime, final String doubleWeightCol = "doubleWeightCol"; final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0xFFFABBBC, new String[] {"ts", "charCol", doubleWeightCol}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1), new DoubleGenerator(10.1, 20.1, .1)}); @@ -1379,9 +1379,9 @@ protected Table e() { final CreateResult result2 = createTestTable(DYNAMIC_TABLE_SIZE, bucketed, false, true, 0xFFFABBBC, new String[] {"ts", "charCol", shortWeightCol}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1), new ShortGenerator((short) -6000, (short) 65535, .1)}); @@ -1497,9 +1497,9 @@ public void testBucketedGeneralTickingTimedRevRedirected() { final String doubleWeightCol = "doubleWeightCol"; final CreateResult result = createTestTable(DYNAMIC_TABLE_SIZE, true, false, true, 0xFFFABBBC, new String[] {"ts", "charCol", doubleWeightCol}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1), new DoubleGenerator(10.1, 20.1, .1)}); @@ -1534,9 +1534,9 @@ protected Table e() { final CreateResult result2 = createTestTable(DYNAMIC_TABLE_SIZE, true, false, true, 0xFFFABBBC, new String[] {"ts", "charCol", shortWeightCol}, new TestDataGenerator[] { - new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY")), + new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY")), new CharGenerator('A', 'z', 0.1), new ShortGenerator((short) -6000, (short) 65535, .1)}); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestUpdateByGeneral.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestUpdateByGeneral.java index 1830a872086..31b706cc35e 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestUpdateByGeneral.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/updateby/TestUpdateByGeneral.java @@ -13,7 +13,7 @@ import io.deephaven.api.updateby.UpdateByControl; import io.deephaven.engine.testutil.TstUtils; import io.deephaven.engine.testutil.generator.TestDataGenerator; -import io.deephaven.engine.testutil.generator.SortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.SortedInstantGenerator; import io.deephaven.engine.updategraph.TerminalNotification; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.util.TableDiff; @@ -93,9 +93,9 @@ public void testMixedGeneralBucketed() { private void doTestTicking(boolean redirected, boolean bucketed, boolean appendOnly, int steps, int size, int seed) { final CreateResult result = createTestTable(size, bucketed, false, true, seed, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); if (appendOnly) { result.t.setAttribute(Table.ADD_ONLY_TABLE_ATTRIBUTE, Boolean.TRUE); @@ -230,9 +230,9 @@ public void testNewBuckets() { @Test public void testInMemoryColumn() { final CreateResult result = createTestTable(1000, true, false, false, 0xFEEDFACE, - new String[] {"ts"}, new TestDataGenerator[] {new SortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2022-03-09T09:00:00.000 NY"), - DateTimeUtils.parseDateTime("2022-03-09T16:30:00.000 NY"))}); + new String[] {"ts"}, new TestDataGenerator[] {new SortedInstantGenerator( + DateTimeUtils.parseInstant("2022-03-09T09:00:00.000 NY"), + DateTimeUtils.parseInstant("2022-03-09T16:30:00.000 NY"))}); final OperationControl skipControl = OperationControl.builder() .onNullValue(BadDataBehavior.SKIP) diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestDynamicTableWriter.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestDynamicTableWriter.java index 9144377bc0d..38c5da7c41b 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestDynamicTableWriter.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestDynamicTableWriter.java @@ -6,7 +6,6 @@ import io.deephaven.engine.table.Table; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.table.impl.UpdateSourceQueryTable; import io.deephaven.engine.testutil.TstUtils; @@ -18,6 +17,7 @@ import java.io.IOException; import java.math.BigInteger; +import java.time.Instant; import static io.deephaven.engine.util.TableTools.*; @@ -29,7 +29,7 @@ public class TestDynamicTableWriter { public void testTypes() throws IOException { final String[] names = new String[] {"BC", "CC", "SC", "IC", "LC", "FC", "DC", "StrC", "BLC", "DTC", "BIC"}; final Class[] types = new Class[] {byte.class, char.class, short.class, int.class, long.class, float.class, - double.class, String.class, Boolean.class, DateTime.class, BigInteger.class}; + double.class, String.class, Boolean.class, Instant.class, BigInteger.class}; final DynamicTableWriter writer = new DynamicTableWriter(names, types); final UpdateSourceQueryTable result = writer.getTable(); @@ -42,7 +42,7 @@ public void testTypes() throws IOException { writer.getSetter("DC").setDouble(6.6); writer.getSetter("StrC", String.class).set("Seven"); writer.getSetter("BLC", Boolean.class).setBoolean(true); - writer.getSetter("DTC", DateTime.class).set(DateTimeUtils.parseDateTime("2020-09-16T07:55:00 NY")); + writer.getSetter("DTC", Instant.class).set(DateTimeUtils.parseInstant("2020-09-16T07:55:00 NY")); writer.getSetter("BIC", BigInteger.class).set(BigInteger.valueOf(8)); writer.writeRow(); UpdateGraphProcessor.DEFAULT.runWithinUnitTestCycle(result::run); @@ -56,7 +56,7 @@ public void testTypes() throws IOException { doubleCol("DC", 6.6), stringCol("StrC", "Seven"), col("BLC", true), - col("DTC", DateTimeUtils.parseDateTime("2020-09-16T07:55:00 NY")), + col("DTC", DateTimeUtils.parseInstant("2020-09-16T07:55:00 NY")), col("BIC", BigInteger.valueOf(8))); TstUtils.assertTableEquals(expected1, result); @@ -71,7 +71,7 @@ public void testTypes() throws IOException { row.getSetter("DC").setDouble(14.14); row.getSetter("StrC", String.class).set("Fifteen"); row.getSetter("BLC", Boolean.class).setBoolean(true); - row.getSetter("DTC", DateTime.class).set(DateTimeUtils.parseDateTime("2020-09-16T08:55:00 NY")); + row.getSetter("DTC", Instant.class).set(DateTimeUtils.parseInstant("2020-09-16T08:55:00 NY")); row.getSetter("BIC", BigInteger.class).set(BigInteger.valueOf(16)); row.setFlags(Row.Flags.StartTransaction); row.writeRow(); @@ -86,7 +86,7 @@ public void testTypes() throws IOException { row2.getSetter("DC").setDouble(22.22); row2.getSetter("StrC", String.class).set("Twenty Three"); row2.getSetter("BLC", Boolean.class).setBoolean(false); - row2.getSetter("DTC", DateTime.class).set(DateTimeUtils.parseDateTime("2020-09-16T09:55:00 NY")); + row2.getSetter("DTC", Instant.class).set(DateTimeUtils.parseInstant("2020-09-16T09:55:00 NY")); row2.getSetter("BIC", BigInteger.class).set(BigInteger.valueOf(24)); row2.setFlags(Row.Flags.StartTransaction); row2.writeRow(); @@ -104,7 +104,7 @@ public void testTypes() throws IOException { row3.getSetter("DC", double.class).set(30.30); row3.getSetter("StrC", String.class).set("Thirty One"); row3.getSetter("BLC", Boolean.class).set(null); - row3.getSetter("DTC", DateTime.class).set(DateTimeUtils.parseDateTime("2020-09-16T10:55:00 NY")); + row3.getSetter("DTC", Instant.class).set(DateTimeUtils.parseInstant("2020-09-16T10:55:00 NY")); row3.getSetter("BIC", BigInteger.class).set(BigInteger.valueOf(32)); row3.setFlags(Row.Flags.EndTransaction); row3.writeRow(); @@ -120,9 +120,9 @@ public void testTypes() throws IOException { doubleCol("DC", 6.6, 22.22, 30.30), stringCol("StrC", "Seven", "Twenty Three", "Thirty One"), col("BLC", true, false, null), - col("DTC", DateTimeUtils.parseDateTime("2020-09-16T07:55:00 NY"), - DateTimeUtils.parseDateTime("2020-09-16T09:55:00 NY"), - DateTimeUtils.parseDateTime("2020-09-16T10:55:00 NY")), + col("DTC", DateTimeUtils.parseInstant("2020-09-16T07:55:00 NY"), + DateTimeUtils.parseInstant("2020-09-16T09:55:00 NY"), + DateTimeUtils.parseInstant("2020-09-16T10:55:00 NY")), col("BIC", BigInteger.valueOf(8), BigInteger.valueOf(24), BigInteger.valueOf(32))); TstUtils.assertTableEquals(expected2, result); @@ -132,7 +132,7 @@ public void testTypes() throws IOException { public void testNulls() throws IOException { final String[] names = new String[] {"BC", "CC", "SC", "IC", "LC", "FC", "DC", "StrC", "BLC", "DTC", "BIC"}; final Class[] types = new Class[] {byte.class, char.class, short.class, int.class, long.class, float.class, - double.class, String.class, Boolean.class, DateTime.class, BigInteger.class}; + double.class, String.class, Boolean.class, Instant.class, BigInteger.class}; final DynamicTableWriter writer = new DynamicTableWriter(names, types); final UpdateSourceQueryTable result = writer.getTable(); @@ -152,7 +152,7 @@ public void testNulls() throws IOException { longCol("LC", 4), floatCol("FC", 5.5f), doubleCol("DC", QueryConstants.NULL_DOUBLE)) - .updateView("StrC=(String)null", "BLC=(Boolean)null", "DTC=(DateTime)null", + .updateView("StrC=(String)null", "BLC=(Boolean)null", "DTC=(Instant)null", "BIC=(java.math.BigInteger)null"); TstUtils.assertTableEquals(expected1, result); @@ -161,7 +161,7 @@ public void testNulls() throws IOException { row.getSetter("DC").setDouble(14.14); row.getSetter("StrC", String.class).set("Fifteen"); row.getSetter("BLC", Boolean.class).setBoolean(true); - row.getSetter("DTC", DateTime.class).set(DateTimeUtils.parseDateTime("2020-09-16T08:55:00 NY")); + row.getSetter("DTC", Instant.class).set(DateTimeUtils.parseInstant("2020-09-16T08:55:00 NY")); row.getSetter("BIC", BigInteger.class).set(BigInteger.valueOf(16)); row.setFlags(Row.Flags.SingleRow); row.writeRow(); @@ -177,7 +177,7 @@ public void testNulls() throws IOException { doubleCol("DC", 14.14), stringCol("StrC", "Fifteen"), col("BLC", true), - col("DTC", DateTimeUtils.parseDateTime("2020-09-16T08:55:00 NY")), + col("DTC", DateTimeUtils.parseInstant("2020-09-16T08:55:00 NY")), col("BIC", BigInteger.valueOf(16))); TstUtils.assertTableEquals(merge(expected1, expected2), result); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestFreezeBy.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestFreezeBy.java index 6aa871a6092..3031d8263c3 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestFreezeBy.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestFreezeBy.java @@ -10,11 +10,11 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.context.QueryScope; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.table.impl.*; import junit.framework.TestCase; +import java.time.Instant; import java.util.Arrays; import java.util.List; @@ -23,14 +23,14 @@ public class TestFreezeBy extends RefreshingTableTestCase { public void testSimpleTypes() { - final DateTime timeBase = DateTimeUtils.parseDateTime("2020-09-10T09:00:00 NY"); + final Instant timeBase = DateTimeUtils.parseInstant("2020-09-10T09:00:00 NY"); QueryScope.addParam("freezeByTimeBase", timeBase); final QueryTable input = TstUtils.testRefreshingTable(stringCol("Key", "A", "B", "C"), intCol("Sentinel", 1, 2, 3)); final List updates = Arrays.asList("SStr=Integer.toString(Sentinel)", "SByte=(byte)Sentinel", "SChar=(char)('A' + (char)Sentinel)", "SShort=(short)Sentinel", "SLong=(long)Sentinel", "SDouble=Sentinel/4", "SFloat=(float)(Sentinel/2)", - "SDateTime=freezeByTimeBase + (Sentinel * 3600L*1000000000L)", + "SInstant=freezeByTimeBase + (Sentinel * 3600L*1000000000L)", "SBoolean=Sentinel%3==0?true:(Sentinel%3==1?false:null)"); final Table inputUpdated = input.updateView(Selectable.from(updates)); final Table frozen = FreezeBy.freezeBy(inputUpdated, "Key"); @@ -49,7 +49,7 @@ public void testSimpleTypes() { assertEquals(long.class, frozen.getDefinition().getColumn("SLong").getDataType()); assertEquals(float.class, frozen.getDefinition().getColumn("SFloat").getDataType()); assertEquals(double.class, frozen.getDefinition().getColumn("SDouble").getDataType()); - assertEquals(DateTime.class, frozen.getDefinition().getColumn("SDateTime").getDataType()); + assertEquals(Instant.class, frozen.getDefinition().getColumn("SInstant").getDataType()); assertEquals(Boolean.class, frozen.getDefinition().getColumn("SBoolean").getDataType()); UpdateGraphProcessor.DEFAULT.runWithinUnitTestCycle(() -> { diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTailInitializationFilter.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTailInitializationFilter.java index 91be6f8e02d..87039e3ab6f 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTailInitializationFilter.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTailInitializationFilter.java @@ -7,15 +7,16 @@ import io.deephaven.engine.rowset.RowSetBuilderSequential; import io.deephaven.engine.rowset.RowSetFactory; import io.deephaven.engine.table.Table; -import io.deephaven.engine.testutil.sources.DateTimeTestSource; +import io.deephaven.engine.testutil.sources.InstantTestSource; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.testutil.testcase.RefreshingTableTestCase; import io.deephaven.engine.table.impl.QueryTable; import io.deephaven.engine.testutil.TstUtils; +import java.time.Instant; + import static io.deephaven.engine.testutil.TstUtils.assertTableEquals; public class TestTailInitializationFilter extends RefreshingTableTestCase { @@ -24,14 +25,14 @@ public void testSimple() { builder.appendRange(0, 99); builder.appendRange(1000, 1099); final long[] data = new long[200]; - final DateTime baseTime = DateTimeUtils.parseDateTime("2020-08-20T07:00:00 NY"); - final DateTime baseTime2 = DateTimeUtils.parseDateTime("2020-08-20T06:00:00 NY"); + final Instant baseTime = DateTimeUtils.parseInstant("2020-08-20T07:00:00 NY"); + final Instant baseTime2 = DateTimeUtils.parseInstant("2020-08-20T06:00:00 NY"); for (int ii = 0; ii < 100; ii++) { - data[ii] = baseTime.getNanos() + (DateTimeUtils.secondsToNanos(60) * (ii / 2)); - data[100 + ii] = baseTime2.getNanos() + (DateTimeUtils.secondsToNanos(60) * (ii / 2)); + data[ii] = DateTimeUtils.epochNanos(baseTime) + (DateTimeUtils.secondsToNanos(60) * (ii / 2)); + data[100 + ii] = DateTimeUtils.epochNanos(baseTime2) + (DateTimeUtils.secondsToNanos(60) * (ii / 2)); } - final DateTime threshold1 = new DateTime(data[99] - DateTimeUtils.secondsToNanos(600)); - final DateTime threshold2 = new DateTime(data[199] - DateTimeUtils.secondsToNanos(600)); + final Instant threshold1 = DateTimeUtils.epochNanosToInstant(data[99] - DateTimeUtils.secondsToNanos(600)); + final Instant threshold2 = DateTimeUtils.epochNanosToInstant(data[199] - DateTimeUtils.secondsToNanos(600)); final QueryTable input = TstUtils.testRefreshingTable(builder.build().toTracking(), ColumnHolder.getInstantColumnHolder("Timestamp", false, data)); @@ -46,14 +47,14 @@ public void testSimple() { assertTableEquals(filtered, expected); UpdateGraphProcessor.DEFAULT.runWithinUnitTestCycle(() -> { - final DateTime[] data2 = new DateTime[4]; - data2[0] = DateTimeUtils.parseDateTime("2020-08-20T06:00:00 NY"); - data2[1] = DateTimeUtils.parseDateTime("2020-08-20T06:30:00 NY"); - data2[0] = DateTimeUtils.parseDateTime("2020-08-20T07:00:00 NY"); - data2[1] = DateTimeUtils.parseDateTime("2020-08-20T08:30:00 NY"); + final Instant[] data2 = new Instant[4]; + data2[0] = DateTimeUtils.parseInstant("2020-08-20T06:00:00 NY"); + data2[1] = DateTimeUtils.parseInstant("2020-08-20T06:30:00 NY"); + data2[0] = DateTimeUtils.parseInstant("2020-08-20T07:00:00 NY"); + data2[1] = DateTimeUtils.parseInstant("2020-08-20T08:30:00 NY"); final RowSet newRowSet = RowSetFactory.fromKeys(100, 101, 1100, 1101); input.getRowSet().writableCast().insert(newRowSet); - ((DateTimeTestSource) input.getColumnSource("Timestamp")).add(newRowSet, data2); + ((InstantTestSource) input.getColumnSource("Timestamp")).add(newRowSet, data2); input.notifyListeners(newRowSet, TstUtils.i(), TstUtils.i()); }); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTimeSeriesFilter.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTimeSeriesFilter.java index a62f64a459e..1e5cf51a4b8 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTimeSeriesFilter.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTimeSeriesFilter.java @@ -8,17 +8,18 @@ import io.deephaven.engine.testutil.generator.DateGenerator; import io.deephaven.engine.testutil.generator.IntGenerator; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.testutil.EvalNugget; import io.deephaven.engine.testutil.testcase.RefreshingTableTestCase; import io.deephaven.engine.table.impl.QueryTable; import io.deephaven.engine.testutil.TstUtils; import io.deephaven.engine.table.impl.select.TimeSeriesFilter; +import io.deephaven.time.DateTimeUtils; import java.lang.ref.WeakReference; import java.text.ParseException; import java.text.SimpleDateFormat; +import java.time.Instant; import java.util.ArrayList; import java.util.Date; import java.util.Random; @@ -28,11 +29,11 @@ public class TestTimeSeriesFilter extends RefreshingTableTestCase { public void testSimple() { - DateTime[] times = new DateTime[10]; + Instant[] times = new Instant[10]; final long startTime = System.currentTimeMillis() - (10 * times.length); for (int ii = 0; ii < times.length; ++ii) { - times[ii] = new DateTime((startTime + (ii * 1000)) * 1000000L); + times[ii] = DateTimeUtils.epochNanosToInstant((startTime + (ii * 1000)) * 1000000L); } Table source = TableTools.newTable(TableTools.col("Timestamp", times)); @@ -93,7 +94,7 @@ public Table e() { new UnitTestTimeSeriesFilter(unitTestTimeSeriesFilter); filtersToRefresh.add(new WeakReference<>(unitTestTimeSeriesFilter1)); return UpdateGraphProcessor.DEFAULT.exclusiveLock() - .computeLocked(() -> table.update("Date=new DateTime(Date.getTime() * 1000000L)") + .computeLocked(() -> table.update("Date=DateTimeUtils.epochNanosToInstant(Date.getTime() * 1000000L)") .where(unitTestTimeSeriesFilter1)); } }, diff --git a/engine/table/src/test/java/io/deephaven/engine/util/TestCalendarMethodsFromTable.java b/engine/table/src/test/java/io/deephaven/engine/util/TestCalendarMethodsFromTable.java index 9e24c73c0ef..a8595a25f06 100644 --- a/engine/table/src/test/java/io/deephaven/engine/util/TestCalendarMethodsFromTable.java +++ b/engine/table/src/test/java/io/deephaven/engine/util/TestCalendarMethodsFromTable.java @@ -7,7 +7,6 @@ import io.deephaven.engine.context.ExecutionContext; import io.deephaven.engine.table.Table; import io.deephaven.engine.context.QueryScope; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.time.calendar.BusinessCalendar; import io.deephaven.time.calendar.Calendars; @@ -16,6 +15,7 @@ import io.deephaven.test.types.OutOfBandTest; import org.junit.experimental.categories.Category; +import java.time.Instant; import java.time.LocalDate; import static io.deephaven.engine.util.TableTools.emptyTable; @@ -41,8 +41,8 @@ protected void tearDown() throws Exception { } private final BusinessCalendar calendar = Calendars.calendar(); - private final DateTime time1 = DateTimeUtils.parseDateTime("2002-01-01T01:00:00.000000000 NY"); - private final DateTime time2 = DateTimeUtils.parseDateTime("2002-01-21T01:00:00.000000000 NY"); + private final Instant time1 = DateTimeUtils.parseInstant("2002-01-01T01:00:00.000000000 NY"); + private final Instant time2 = DateTimeUtils.parseInstant("2002-01-21T01:00:00.000000000 NY"); private final String date1 = "2017-08-01"; private final String date2 = "2017-08-05"; diff --git a/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java b/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java index 71f0bd07a2e..e5e5250d679 100644 --- a/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java +++ b/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java @@ -32,7 +32,7 @@ import io.deephaven.engine.updategraph.LogicalClock; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.ExceptionDetails; import io.deephaven.util.QueryConstants; import io.deephaven.util.SafeCloseable; @@ -42,6 +42,7 @@ import org.junit.Before; import org.junit.experimental.categories.Category; +import java.time.Instant; import java.util.*; import java.util.function.Consumer; @@ -318,33 +319,33 @@ public void testRoundDecimalColumns() { } } - public void testDateTimeColumnHolder() { + public void testInstantColumnHolder() { // create two columns with the same data - final DateTime[] data = new DateTime[] {new DateTime(100), new DateTime(100), null}; + final Instant[] data = new Instant[] {DateTimeUtils.epochNanosToInstant(100), DateTimeUtils.epochNanosToInstant(100), null}; final long[] longData = Arrays.stream(data) - .mapToLong(dt -> dt == null ? QueryConstants.NULL_LONG : dt.getNanos()) + .mapToLong(dt -> dt == null ? QueryConstants.NULL_LONG : DateTimeUtils.epochNanos(dt)) .toArray(); - final ColumnHolder dateTimeCol = col("DateTimeColumn", data); - final ColumnHolder dateTimeCol2 = ColumnHolder.getInstantColumnHolder("DateTimeColumn2", false, longData); + final ColumnHolder instantCol = col("InstantColumn", data); + final ColumnHolder instantCol2 = ColumnHolder.getInstantColumnHolder("InstantColumn2", false, longData); - final Table table = TableTools.newTable(dateTimeCol, dateTimeCol2); + final Table table = TableTools.newTable(instantCol, instantCol2); - // make sure both columns are in fact DateTime columns + // make sure both columns are in fact Instant columns final Table meta = table.getMeta(); - Assert.assertEquals(DateTime.class.getCanonicalName(), meta.getColumn("DataType").get(0)); - Assert.assertEquals(DateTime.class.getCanonicalName(), meta.getColumn("DataType").get(1)); + Assert.assertEquals(Instant.class.getCanonicalName(), meta.getColumn("DataType").get(0)); + Assert.assertEquals(Instant.class.getCanonicalName(), meta.getColumn("DataType").get(1)); // make sure this doesn't crash showWithRowSet(table); - // validate column1 (backed with DateTime objects) + // validate column1 (backed with Instant objects) Assert.assertEquals(data[0], table.getColumn(0).get(0)); Assert.assertEquals(data[1], table.getColumn(0).get(1)); Assert.assertEquals(data[2], table.getColumn(0).get(2)); - // validate column2 (backed with longs, but should be get-able as DateTimes as well) + // validate column2 (backed with longs, but should be get-able as Instants as well) Assert.assertEquals(data[0], table.getColumn(1).get(0)); Assert.assertEquals(data[1], table.getColumn(1).get(1)); Assert.assertEquals(data[2], table.getColumn(1).get(2)); diff --git a/engine/table/src/test/java/io/deephaven/engine/util/TestTypeUtils.java b/engine/table/src/test/java/io/deephaven/engine/util/TestTypeUtils.java index df2802d85ad..b66bf595cea 100644 --- a/engine/table/src/test/java/io/deephaven/engine/util/TestTypeUtils.java +++ b/engine/table/src/test/java/io/deephaven/engine/util/TestTypeUtils.java @@ -4,11 +4,11 @@ package io.deephaven.engine.util; import io.deephaven.base.verify.Require; -import io.deephaven.time.DateTime; import junit.framework.TestCase; import org.apache.commons.lang3.ArrayUtils; import java.io.IOException; +import java.time.Instant; import java.util.Arrays; import java.util.Date; @@ -129,34 +129,34 @@ public void testTypesSetOrdering() { } public void testIsType() { - assertFalse(io.deephaven.util.type.TypeUtils.isPrimitiveNumeric(DateTime.class)); + assertFalse(io.deephaven.util.type.TypeUtils.isPrimitiveNumeric(Instant.class)); assertFalse(io.deephaven.util.type.TypeUtils.isPrimitiveNumeric(Date.class)); assertTrue(io.deephaven.util.type.TypeUtils.isPrimitiveNumeric(int.class)); assertFalse(io.deephaven.util.type.TypeUtils.isPrimitiveNumeric(Double.class)); - assertFalse(io.deephaven.util.type.TypeUtils.isBoxedNumeric(DateTime.class)); + assertFalse(io.deephaven.util.type.TypeUtils.isBoxedNumeric(Instant.class)); assertFalse(io.deephaven.util.type.TypeUtils.isBoxedNumeric(Date.class)); assertFalse(io.deephaven.util.type.TypeUtils.isBoxedNumeric(int.class)); assertTrue(io.deephaven.util.type.TypeUtils.isBoxedNumeric(Double.class)); - assertFalse(io.deephaven.util.type.TypeUtils.isNumeric(DateTime.class)); + assertFalse(io.deephaven.util.type.TypeUtils.isNumeric(Instant.class)); assertFalse(io.deephaven.util.type.TypeUtils.isNumeric(Date.class)); assertTrue(io.deephaven.util.type.TypeUtils.isNumeric(int.class)); assertTrue(io.deephaven.util.type.TypeUtils.isNumeric(Double.class)); - assertFalse(io.deephaven.util.type.TypeUtils.isCharacter(DateTime.class)); + assertFalse(io.deephaven.util.type.TypeUtils.isCharacter(Instant.class)); assertFalse(io.deephaven.util.type.TypeUtils.isCharacter(Date.class)); assertFalse(io.deephaven.util.type.TypeUtils.isCharacter(int.class)); assertTrue(io.deephaven.util.type.TypeUtils.isCharacter(char.class)); assertTrue(io.deephaven.util.type.TypeUtils.isCharacter(Character.class)); - assertFalse(io.deephaven.util.type.TypeUtils.isPrimitiveChar(DateTime.class)); + assertFalse(io.deephaven.util.type.TypeUtils.isPrimitiveChar(Instant.class)); assertFalse(io.deephaven.util.type.TypeUtils.isPrimitiveChar(Date.class)); assertFalse(io.deephaven.util.type.TypeUtils.isPrimitiveChar(int.class)); assertTrue(io.deephaven.util.type.TypeUtils.isPrimitiveChar(char.class)); assertFalse(io.deephaven.util.type.TypeUtils.isPrimitiveChar(Character.class)); - assertFalse(io.deephaven.util.type.TypeUtils.isBoxedChar(DateTime.class)); + assertFalse(io.deephaven.util.type.TypeUtils.isBoxedChar(Instant.class)); assertFalse(io.deephaven.util.type.TypeUtils.isBoxedChar(Date.class)); assertFalse(io.deephaven.util.type.TypeUtils.isBoxedChar(int.class)); assertFalse(io.deephaven.util.type.TypeUtils.isBoxedChar(char.class)); diff --git a/engine/table/src/test/java/io/deephaven/engine/util/TestWindowCheck.java b/engine/table/src/test/java/io/deephaven/engine/util/TestWindowCheck.java index 5581824d46a..6657ad93075 100644 --- a/engine/table/src/test/java/io/deephaven/engine/util/TestWindowCheck.java +++ b/engine/table/src/test/java/io/deephaven/engine/util/TestWindowCheck.java @@ -17,13 +17,12 @@ import io.deephaven.engine.testutil.GenerateTableUpdates; import io.deephaven.engine.testutil.TstUtils; import io.deephaven.engine.testutil.generator.IntGenerator; -import io.deephaven.engine.testutil.generator.UnsortedDateTimeGenerator; +import io.deephaven.engine.testutil.generator.UnsortedInstantGenerator; import io.deephaven.engine.testutil.testcase.RefreshingTableTestCase; import io.deephaven.engine.updategraph.LogicalClock; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.testutil.junit4.EngineCleanup; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.annotations.ReferentialIntegrity; import junit.framework.TestCase; @@ -34,6 +33,7 @@ import java.io.PrintWriter; import java.io.StringWriter; +import java.time.Instant; import java.util.Arrays; import java.util.Map; import java.util.Random; @@ -71,22 +71,22 @@ private void testWindowCheckIterative(int seed) { final ColumnInfo[] columnInfo; final int size = 100; - final DateTime startTime = DateTimeUtils.parseDateTime("2018-02-23T09:30:00 NY"); - final DateTime endTime; + final Instant startTime = DateTimeUtils.parseInstant("2018-02-23T09:30:00 NY"); + final Instant endTime; if (SHORT_TESTS) { - endTime = DateTimeUtils.parseDateTime("2018-02-23T10:30:00 NY"); + endTime = DateTimeUtils.parseInstant("2018-02-23T10:30:00 NY"); } else { - endTime = DateTimeUtils.parseDateTime("2018-02-23T16:00:00 NY"); + endTime = DateTimeUtils.parseInstant("2018-02-23T16:00:00 NY"); } final QueryTable table = getTable(size, random, columnInfo = initColumnInfos(new String[] {"Timestamp", "C1"}, - new UnsortedDateTimeGenerator(startTime, endTime, 0.01), + new UnsortedInstantGenerator(startTime, endTime, 0.01), new IntGenerator(1, 100))); // Use a smaller step size so that the random walk on tableSize doesn't become unwieldy given the large number // of steps. final int stepSize = (int) Math.ceil(Math.sqrt(size)); final TestClock clock = new TestClock(); - clock.now = startTime.getNanos(); + clock.now = DateTimeUtils.epochNanos(startTime); final WindowEvalNugget[] en; UpdateGraphProcessor.DEFAULT.exclusiveLock().lock(); @@ -102,7 +102,7 @@ private void testWindowCheckIterative(int seed) { int step = 0; - while (clock.now < endTime.getNanos() + 600 * DateTimeUtils.SECOND) { + while (clock.now < DateTimeUtils.epochNanos(endTime) + 600 * DateTimeUtils.SECOND) { ++step; final boolean combined = combinedRandom.nextBoolean(); @@ -116,7 +116,7 @@ private void testWindowCheckIterative(int seed) { } else { UpdateGraphProcessor.DEFAULT.runWithinUnitTestCycle(() -> advanceTime(clock, en)); if (RefreshingTableTestCase.printTableUpdates) { - TstUtils.validate("Step = " + step + " time = " + new DateTime(clock.now), en); + TstUtils.validate("Step = " + step + " time = " + DateTimeUtils.epochNanosToInstant(clock.now), en); } for (int ii = 0; ii < stepsPerTick; ++ii) { @@ -133,7 +133,7 @@ private void testWindowCheckIterative(int seed) { private void advanceTime(TestClock clock, WindowEvalNugget[] en) { clock.now += 5 * DateTimeUtils.SECOND; if (RefreshingTableTestCase.printTableUpdates) { - System.out.println("Ticking time to " + new DateTime(clock.now)); + System.out.println("Ticking time to " + DateTimeUtils.epochNanosToInstant(clock.now)); } for (final WindowEvalNugget wen : en) { wen.windowed.second.run(); @@ -145,12 +145,12 @@ public void testWindowCheckEmptyInitial() { base.setExpectError(false); final TestClock clock = new TestClock(); - final DateTime startTime = DateTimeUtils.parseDateTime("2018-02-23T09:30:00 NY"); - clock.now = startTime.getNanos(); + final Instant startTime = DateTimeUtils.parseInstant("2018-02-23T09:30:00 NY"); + clock.now = DateTimeUtils.epochNanos(startTime); - final DateTime[] emptyDateTimeArray = new DateTime[0]; + final Instant[] emptyInstantArray = new Instant[0]; final QueryTable tableToCheck = testRefreshingTable(i().toTracking(), - col("Timestamp", emptyDateTimeArray), intCol("Sentinel")); + col("Timestamp", emptyInstantArray), intCol("Sentinel")); final Pair windowed = UpdateGraphProcessor.DEFAULT.sharedLock() .computeLocked(() -> WindowCheck.addTimeWindowInternal(clock, tableToCheck, "Timestamp", @@ -165,12 +165,12 @@ public void testWindowCheckEmptyInitial() { @Test public void testWindowCheckGetPrev() { final TestClock timeProvider = new TestClock(); - final DateTime startTime = DateTimeUtils.parseDateTime("2022-07-14T09:30:00 NY"); - timeProvider.now = startTime.getNanos(); + final Instant startTime = DateTimeUtils.parseInstant("2022-07-14T09:30:00 NY"); + timeProvider.now = DateTimeUtils.epochNanos(startTime); - final DateTime[] initialValues = Stream.concat(Arrays.stream( + final Instant[] initialValues = Stream.concat(Arrays.stream( new String[] {"2022-07-14T09:25:00 NY", "2022-07-14T09:30:00 NY", "2022-07-14T09:35:00 NY"}) - .map(DateTimeUtils::parseDateTime), Stream.of((DateTime) null)).toArray(DateTime[]::new); + .map(DateTimeUtils::parseInstant), Stream.of((Instant) null)).toArray(Instant[]::new); final QueryTable tableToCheck = testRefreshingTable(i(0, 1, 2, 3).toTracking(), col("Timestamp", initialValues), intCol("Sentinel", 1, 2, 3, 4)); @@ -197,7 +197,7 @@ public void testWindowCheckGetPrev() { UpdateGraphProcessor.DEFAULT.startCycleForUnitTests(); - timeProvider.now = DateTimeUtils.parseDateTime("2022-07-14T09:34:00 NY").getNanos(); + timeProvider.now = DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2022-07-14T09:34:00 NY")); windowed.second.run(); while (((QueryTable) windowed.first).getLastNotificationStep() < LogicalClock.DEFAULT.currentStep()) { @@ -220,12 +220,12 @@ public void testWindowCheckGetPrev() { public void testWindowCheckStatic() { final TestClock timeProvider = new TestClock(); - final DateTime startTime = DateTimeUtils.parseDateTime("2022-07-14T09:30:00 NY"); - timeProvider.now = startTime.getNanos(); + final Instant startTime = DateTimeUtils.parseInstant("2022-07-14T09:30:00 NY"); + timeProvider.now = DateTimeUtils.epochNanos(startTime); - final DateTime[] initialValues = Stream.concat(Arrays.stream( + final Instant[] initialValues = Stream.concat(Arrays.stream( new String[] {"2022-07-14T09:25:00 NY", "2022-07-14T09:30:00 NY", "2022-07-14T09:35:00 NY"}) - .map(DateTimeUtils::parseDateTime), Stream.of((DateTime) null)).toArray(DateTime[]::new); + .map(DateTimeUtils::parseInstant), Stream.of((Instant) null)).toArray(Instant[]::new); final QueryTable tableToCheck = testTable(i(0, 1, 2, 3).toTracking(), col("Timestamp", initialValues), intCol("Sentinel", 1, 2, 3, 4)); @@ -253,7 +253,7 @@ public void testWindowCheckStatic() { UpdateGraphProcessor.DEFAULT.startCycleForUnitTests(); - timeProvider.now = DateTimeUtils.parseDateTime("2022-07-14T09:34:00 NY").getNanos(); + timeProvider.now = DateTimeUtils.epochNanos(DateTimeUtils.parseInstant("2022-07-14T09:34:00 NY")); windowed.second.run(); while (((QueryTable) windowed.first).getLastNotificationStep() < LogicalClock.DEFAULT.currentStep()) { @@ -351,20 +351,20 @@ public void validate(String msg) { } } - final ColumnSource timestamp = table.getColumnSource("Timestamp"); + final ColumnSource timestamp = table.getColumnSource("Timestamp"); final ColumnSource inWindow = windowed.first.getColumnSource("InWindow"); final long now = clock.now; for (final RowSet.Iterator it = windowed.first.getRowSet().iterator(); it.hasNext();) { final long key = it.nextLong(); - final DateTime tableTime = timestamp.get(key); + final Instant tableTime = timestamp.get(key); final Boolean actual = inWindow.get(key); if (tableTime == null) { TestCase.assertNull(actual); } else { - final boolean expected = now - tableTime.getNanos() < windowNanos; + final boolean expected = now - DateTimeUtils.epochNanos(tableTime) < windowNanos; TestCase.assertEquals((boolean) actual, expected); } } diff --git a/engine/table/src/test/java/io/deephaven/engine/util/TimeTableTest.java b/engine/table/src/test/java/io/deephaven/engine/util/TimeTableTest.java index fdc2a3befa5..80fb897df2e 100644 --- a/engine/table/src/test/java/io/deephaven/engine/util/TimeTableTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/util/TimeTableTest.java @@ -19,11 +19,11 @@ import io.deephaven.engine.table.impl.sources.FillUnordered; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.updategraph.UpdateSourceCombiner; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import org.junit.Assert; import org.junit.Test; +import java.time.Instant; import java.util.Arrays; import java.util.Map; @@ -107,7 +107,7 @@ public void testNoStartTimeLowerBounds() { @Test public void testProvidedStartTimeOnBoundary() { build(TimeTable.newBuilder() - .startTime(DateTimeUtils.epochNanosToDateTime(10)) + .startTime(DateTimeUtils.epochNanosToInstant(10)) .period(10)); tick(9); @@ -121,7 +121,7 @@ public void testProvidedStartTimeOnBoundary() { @Test public void testProvidedStartTimeOffsetPeriod() { build(TimeTable.newBuilder() - .startTime(DateTimeUtils.epochNanosToDateTime(15)) + .startTime(DateTimeUtils.epochNanosToInstant(15)) .period(10)); tick(14); @@ -173,7 +173,7 @@ public void testStreamNoStartTimeLowerBounds() { public void testStreamProvidedStartTimeOnBoundary() { build(TimeTable.newBuilder() .streamTable(true) - .startTime(DateTimeUtils.epochNanosToDateTime(10)) + .startTime(DateTimeUtils.epochNanosToInstant(10)) .period(10)); tick(9); @@ -188,7 +188,7 @@ public void testStreamProvidedStartTimeOnBoundary() { public void testStreamProvidedStartTimeOffsetPeriod() { build(TimeTable.newBuilder() .streamTable(true) - .startTime(DateTimeUtils.epochNanosToDateTime(15)) + .startTime(DateTimeUtils.epochNanosToInstant(15)) .period(10)); tick(14); @@ -207,15 +207,15 @@ public void testStreamProvidedStartTimeOffsetPeriod() { @Test public void testColumnSourceMatch() { build(TimeTable.newBuilder().period(10)); - final ColumnSource dtColumn = timeTable.getColumnSource("Timestamp"); + final ColumnSource dtColumn = timeTable.getColumnSource("Timestamp"); tick(0); tick(2000); Assert.assertEquals(timeTable.size(), 201); final Long[] longKeys = new Long[] {null, 1000L, 1050L, 1100L, 1025L}; - final DateTime[] keys = Arrays.stream(longKeys) - .map(l -> l == null ? null : DateTimeUtils.epochNanosToDateTime(l)) - .toArray(DateTime[]::new); + final Instant[] keys = Arrays.stream(longKeys) + .map(l -> l == null ? null : DateTimeUtils.epochNanosToInstant(l)) + .toArray(Instant[]::new); try (final RowSet match = dtColumn.match(false, false, false, RowSetFactory.fromRange(100, 110), (Object[]) keys)) { Assert.assertEquals(match, RowSetFactory.fromKeys(100, 105, 110)); @@ -238,12 +238,12 @@ public void testColumnSourceMatch() { @Test public void testGetValuesMapping() { build(TimeTable.newBuilder().period(10)); - final ColumnSource dtColumn = timeTable.getColumnSource("Timestamp"); + final ColumnSource dtColumn = timeTable.getColumnSource("Timestamp"); tick(0); tick(2000); Assert.assertEquals(timeTable.size(), 201); - final Map dtMap = dtColumn.getValuesMapping(RowSetFactory.fromRange(100, 109)); + final Map dtMap = dtColumn.getValuesMapping(RowSetFactory.fromRange(100, 109)); Assert.assertEquals(dtMap.size(), 10); dtMap.forEach((tm, rows) -> { Assert.assertEquals(rows.size(), 1); @@ -261,7 +261,7 @@ public void testGetValuesMapping() { @Test public void testFillChunkUnordered() { build(TimeTable.newBuilder().period(10)); - final ColumnSource dtColumn = timeTable.getColumnSource("Timestamp"); + final ColumnSource dtColumn = timeTable.getColumnSource("Timestamp"); tick(0); tick(2000); Assert.assertEquals(timeTable.size(), 201); @@ -283,9 +283,9 @@ public void testFillChunkUnordered() { keys.add(106); keys.add(100); - // curr DateTime + // curr Instant try (final ChunkSource.FillContext context = dtColumn.makeFillContext(10); - final WritableObjectChunk dest = WritableObjectChunk.makeWritableChunk(10)) { + final WritableObjectChunk dest = WritableObjectChunk.makeWritableChunk(10)) { fillDtColumn.fillChunkUnordered(context, dest, keys); Assert.assertEquals(dest.size(), keys.size()); for (int ii = 0; ii < keys.size(); ++ii) { @@ -293,9 +293,9 @@ public void testFillChunkUnordered() { } } - // prev DateTime + // prev Instant try (final ChunkSource.FillContext context = dtColumn.makeFillContext(10); - final WritableObjectChunk dest = WritableObjectChunk.makeWritableChunk(10)) { + final WritableObjectChunk dest = WritableObjectChunk.makeWritableChunk(10)) { fillDtColumn.fillPrevChunkUnordered(context, dest, keys); Assert.assertEquals(dest.size(), keys.size()); for (int ii = 0; ii < keys.size(); ++ii) { diff --git a/engine/table/src/test/java/io/deephaven/stream/TestStreamToTableAdapter.java b/engine/table/src/test/java/io/deephaven/stream/TestStreamToTableAdapter.java index 5a8a25e083b..f0b6f1973ab 100644 --- a/engine/table/src/test/java/io/deephaven/stream/TestStreamToTableAdapter.java +++ b/engine/table/src/test/java/io/deephaven/stream/TestStreamToTableAdapter.java @@ -12,7 +12,6 @@ import io.deephaven.engine.testutil.TstUtils; import io.deephaven.time.DateTimeUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; import io.deephaven.engine.table.ModifiedColumnSet; import io.deephaven.engine.table.impl.SimpleListener; @@ -25,6 +24,7 @@ import org.junit.Before; import org.junit.Test; +import java.time.Instant; import java.util.List; import static io.deephaven.engine.util.TableTools.*; @@ -220,8 +220,8 @@ public void testSimple() { @Test public void testWrappedTypes() { final TableDefinition tableDefinition = TableDefinition.from( - List.of("S", "B", "D"), - List.of(String.class, Boolean.class, DateTime.class)); + List.of("S", "B", "T"), + List.of(String.class, Boolean.class, Instant.class)); final Table empty = TableTools.newTable(tableDefinition); final StreamPublisher streamPublisher = new DummyStreamPublisher(); @@ -251,12 +251,12 @@ public void testWrappedTypes() { wic.set(2, BooleanUtils.booleanAsByte(null)); final WritableLongChunk wlc = WritableLongChunk.makeWritableChunk(3); chunks[2] = wlc; - final DateTime dt1 = DateTimeUtils.parseDateTime("2021-04-28T12:00:00 NY"); - wlc.set(0, dt1.getNanos()); - final DateTime dt2 = DateTimeUtils.parseDateTime("2012-08-25T12:00:00 NY"); - wlc.set(1, dt2.getNanos()); - final DateTime dt3 = DateTimeUtils.parseDateTime("2030-01-20T12:00:00 NY"); - wlc.set(2, dt3.getNanos()); + final Instant instant1 = DateTimeUtils.parseInstant("2021-04-28T12:00:00 NY"); + wlc.set(0, DateTimeUtils.epochNanos(instant1)); + final Instant instant2 = DateTimeUtils.parseInstant("2012-08-25T12:00:00 NY"); + wlc.set(1, DateTimeUtils.epochNanos(instant2)); + final Instant instant3 = DateTimeUtils.parseInstant("2030-01-20T12:00:00 NY"); + wlc.set(2, DateTimeUtils.epochNanos(instant3)); adapter.accept(chunks); @@ -272,7 +272,7 @@ public void testWrappedTypes() { TestCase.assertEquals(ModifiedColumnSet.EMPTY, listener.getUpdate().modifiedColumnSet()); final Table expect1 = TableTools.newTable(col("S", "Collins", "Armstrong", "Aldrin"), - col("B", true, false, null), col("D", dt1, dt2, dt3)); + col("B", true, false, null), col("T", instant1, instant2, instant3)); TstUtils.assertTableEquals(expect1, result); listener.reset(); diff --git a/engine/table/src/test/resources/io/deephaven/engine/table/impl/fuzzertest.groovy b/engine/table/src/test/resources/io/deephaven/engine/table/impl/fuzzertest.groovy index a4d04fe7221..fd65a9ec9d8 100644 --- a/engine/table/src/test/resources/io/deephaven/engine/table/impl/fuzzertest.groovy +++ b/engine/table/src/test/resources/io/deephaven/engine/table/impl/fuzzertest.groovy @@ -34,7 +34,7 @@ if (useRandomNullPoints) { } randomValues1 = emptyTable(size) - .update("Timestamp= i%nullPoints[0] == 0 ? null : new DateTime(i*1_000_000_000L)") + .update("Timestamp= i%nullPoints[0] == 0 ? null : DateTimeUtils.epochNanosToInstant(i*1_000_000_000L)") .update("MyString=(i%nullPoints[1] == 0 ? null : `a`+ (tableRandom.nextInt(scale*2) - scale) )", "MyInt=(i%nullPoints[2] == 0 ? null : tableRandom.nextInt(scale*2) - scale )", "MyLong=(i%nullPoints[3] ==0 ? null : (long)(tableRandom.nextInt(scale*2) - scale))", diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/ColumnInfo.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/ColumnInfo.java index 5e00dc95b21..b0dc84258e8 100644 --- a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/ColumnInfo.java +++ b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/ColumnInfo.java @@ -7,7 +7,6 @@ import io.deephaven.engine.table.impl.util.ColumnHolder; import io.deephaven.engine.testutil.generator.TestDataGenerator; import io.deephaven.engine.testutil.sources.ImmutableColumnHolder; -import io.deephaven.time.DateTime; import java.time.Instant; import java.util.Arrays; @@ -41,7 +40,7 @@ public ColumnInfo(TestDataGenerator generator, String name, ColAttributes. public ColumnHolder generateInitialColumn(RowSet rowSet, Random random) { final Chunk initialData = generator.populateChunk(rowSet, random); - if (dataType == Long.class && (type == DateTime.class || type == Instant.class)) { + if (dataType == Long.class && type == Instant.class) { Require.eqFalse(immutable, "immutable"); Require.eqFalse(grouped, "grouped"); return ColumnHolder.getInstantColumnHolder(name, false, initialData); diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/TstUtils.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/TstUtils.java index b6c999f6600..5fad76300ff 100644 --- a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/TstUtils.java +++ b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/TstUtils.java @@ -21,15 +21,12 @@ import io.deephaven.engine.table.impl.QueryTable; import io.deephaven.engine.table.impl.util.ColumnHolder; import io.deephaven.engine.testutil.generator.TestDataGenerator; -import io.deephaven.engine.testutil.junit4.EngineCleanup; import io.deephaven.engine.testutil.rowset.RowSetTstUtils; import io.deephaven.engine.testutil.sources.ByteTestSource; -import io.deephaven.engine.testutil.sources.DateTimeTestSource; import io.deephaven.engine.testutil.sources.DoubleTestSource; import io.deephaven.engine.testutil.sources.FloatTestSource; import io.deephaven.engine.testutil.sources.ImmutableByteTestSource; import io.deephaven.engine.testutil.sources.ImmutableCharTestSource; -import io.deephaven.engine.testutil.sources.ImmutableDateTimeTestSource; import io.deephaven.engine.testutil.sources.ImmutableColumnHolder; import io.deephaven.engine.testutil.sources.CharTestSource; import io.deephaven.engine.testutil.sources.ImmutableDoubleTestSource; @@ -50,7 +47,7 @@ import io.deephaven.engine.util.TableTools; import io.deephaven.stringset.HashStringSet; import io.deephaven.stringset.StringSet; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import io.deephaven.util.SafeCloseable; import io.deephaven.util.type.TypeUtils; @@ -150,7 +147,7 @@ public static void addToTable(final Table table, final RowSet rowSet, final Colu + rowSet.size() + ", arraySize=" + columnHolder.size()); } - if (!(columnSource instanceof DateTimeTestSource && columnHolder.dataType == long.class) + if (!(columnSource instanceof InstantTestSource && columnHolder.dataType == long.class) && !(columnSource.getType() == Boolean.class && columnHolder.dataType == Boolean.class) && (columnSource.getType() != TypeUtils.getUnboxedTypeIfBoxed(columnHolder.dataType))) { throw new UnsupportedOperationException(columnHolder.name + ": Adding invalid type: source.getType()=" @@ -401,10 +398,10 @@ public static ColumnHolder getRandomBigDecimalCol(String colName, in return TableTools.col(colName, data); } - public static ColumnHolder getRandomDateTimeCol(String colName, int size, Random random) { - final DateTime[] data = new DateTime[size]; + public static ColumnHolder getRandomInstantCol(String colName, int size, Random random) { + final Instant[] data = new Instant[size]; for (int i = 0; i < data.length; i++) { - data[i] = new DateTime(random.nextLong()); + data[i] = DateTimeUtils.epochAutoToInstant(random.nextLong()); } return ColumnHolder.createColumnHolder(colName, false, data); } @@ -629,9 +626,6 @@ private static ColumnSource getTestColumnSourceFromChunk( } else if (unboxedType == double.class) { // noinspection unchecked result = (AbstractColumnSource) new ImmutableDoubleTestSource(rowSet, chunkData); - } else if (unboxedType == DateTime.class) { - // noinspection unchecked - result = (AbstractColumnSource) new ImmutableDateTimeTestSource(rowSet, chunkData); } else if (unboxedType == Instant.class) { // noinspection unchecked result = (AbstractColumnSource) new ImmutableInstantTestSource(rowSet, chunkData); @@ -661,9 +655,6 @@ private static ColumnSource getTestColumnSourceFromChunk( } else if (unboxedType == double.class) { // noinspection unchecked result = (AbstractColumnSource) new DoubleTestSource(rowSet, chunkData); - } else if (unboxedType == DateTime.class) { - // noinspection unchecked - result = (AbstractColumnSource) new DateTimeTestSource(rowSet, chunkData); } else if (unboxedType == Instant.class) { // noinspection unchecked result = (AbstractColumnSource) new InstantTestSource(rowSet, chunkData); diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/SortedDateTimeGenerator.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/SortedDateTimeGenerator.java deleted file mode 100644 index eb6a32ac0c7..00000000000 --- a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/SortedDateTimeGenerator.java +++ /dev/null @@ -1,38 +0,0 @@ -package io.deephaven.engine.testutil.generator; - -import io.deephaven.time.DateTime; - -import java.util.Random; - -public class SortedDateTimeGenerator extends AbstractSortedGenerator { - private final DateTime minTime; - private final DateTime maxTime; - - public SortedDateTimeGenerator(DateTime minTime, DateTime maxTime) { - this.minTime = minTime; - this.maxTime = maxTime; - } - - DateTime maxValue() { - return maxTime; - } - - DateTime minValue() { - return minTime; - } - - DateTime makeValue(DateTime floor, DateTime ceiling, Random random) { - final long longFloor = floor.getNanos(); - final long longCeiling = ceiling.getNanos(); - - final long range = longCeiling - longFloor + 1L; - final long nextLong = Math.abs(random.nextLong()) % range; - - return new DateTime(longFloor + (nextLong % range)); - } - - @Override - public Class getType() { - return DateTime.class; - } -} diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/SortedInstantGenerator.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/SortedInstantGenerator.java new file mode 100644 index 00000000000..7f0f930ab4c --- /dev/null +++ b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/SortedInstantGenerator.java @@ -0,0 +1,40 @@ +package io.deephaven.engine.testutil.generator; + +import io.deephaven.time.DateTimeUtils; + +import java.time.Instant; +import java.util.Random; + +public class SortedInstantGenerator extends AbstractSortedGenerator { + + private final Instant minTime; + private final Instant maxTime; + + public SortedInstantGenerator(Instant minTime, Instant maxTime) { + this.minTime = minTime; + this.maxTime = maxTime; + } + + Instant maxValue() { + return maxTime; + } + + Instant minValue() { + return minTime; + } + + Instant makeValue(Instant floor, Instant ceiling, Random random) { + final long longFloor = DateTimeUtils.epochNanos(floor); + final long longCeiling = DateTimeUtils.epochNanos(ceiling); + + final long range = longCeiling - longFloor + 1L; + final long nextLong = Math.abs(random.nextLong()) % range; + + return DateTimeUtils.epochNanosToInstant(longFloor + nextLong); + } + + @Override + public Class getType() { + return Instant.class; + } +} diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedDateTimeGenerator.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedDateTimeGenerator.java deleted file mode 100644 index 366cca3e748..00000000000 --- a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedDateTimeGenerator.java +++ /dev/null @@ -1,40 +0,0 @@ -package io.deephaven.engine.testutil.generator; - -import io.deephaven.time.DateTime; - -import java.util.Random; - -public class UnsortedDateTimeGenerator extends AbstractGenerator { - private final DateTime minTime; - private final DateTime maxTime; - private final double nullFrac; - - public UnsortedDateTimeGenerator(DateTime minTime, DateTime maxTime) { - this(minTime, maxTime, 0); - } - - public UnsortedDateTimeGenerator(DateTime minTime, DateTime maxTime, double nullFrac) { - this.minTime = minTime; - this.maxTime = maxTime; - this.nullFrac = nullFrac; - } - - @Override - public Class getType() { - return DateTime.class; - } - - @Override - public DateTime nextValue(Random random) { - if (nullFrac > 0 && random.nextDouble() < nullFrac) { - return null; - } - final long longFloor = minTime.getNanos(); - final long longCeiling = maxTime.getNanos(); - - final long range = longCeiling - longFloor + 1L; - final long nextLong = Math.abs(random.nextLong()) % range; - - return new DateTime(longFloor + (nextLong % range)); - } -} diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedDateTimeLongGenerator.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedDateTimeLongGenerator.java deleted file mode 100644 index 801802a658d..00000000000 --- a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedDateTimeLongGenerator.java +++ /dev/null @@ -1,45 +0,0 @@ -package io.deephaven.engine.testutil.generator; - -import io.deephaven.time.DateTime; - -import java.util.Random; - -public class UnsortedDateTimeLongGenerator extends AbstractReinterpretedGenerator { - private final DateTime minTime; - private final DateTime maxTime; - private final double nullFrac; - - public UnsortedDateTimeLongGenerator(DateTime minTime, DateTime maxTime) { - this(minTime, maxTime, 0); - } - - public UnsortedDateTimeLongGenerator(DateTime minTime, DateTime maxTime, double nullFrac) { - this.minTime = minTime; - this.maxTime = maxTime; - this.nullFrac = nullFrac; - } - - @Override - public Class getType() { - return Long.class; - } - - @Override - public Class getColumnType() { - return DateTime.class; - } - - @Override - Long nextValue(Random random) { - if (nullFrac > 0 && random.nextDouble() < nullFrac) { - return null; - } - final long longFloor = minTime.getNanos(); - final long longCeiling = maxTime.getNanos(); - - final long range = longCeiling - longFloor + 1L; - final long nextLong = Math.abs(random.nextLong()) % range; - - return new DateTime(longFloor + (nextLong % range)).getNanos(); - } -} diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedInstantGenerator.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedInstantGenerator.java new file mode 100644 index 00000000000..e7d2b6d759a --- /dev/null +++ b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedInstantGenerator.java @@ -0,0 +1,42 @@ +package io.deephaven.engine.testutil.generator; + +import io.deephaven.time.DateTimeUtils; + +import java.time.Instant; +import java.util.Random; + +public class UnsortedInstantGenerator extends AbstractGenerator { + + private final Instant minTime; + private final Instant maxTime; + private final double nullFrac; + + public UnsortedInstantGenerator(Instant minTime, Instant maxTime) { + this(minTime, maxTime, 0); + } + + public UnsortedInstantGenerator(Instant minTime, Instant maxTime, double nullFrac) { + this.minTime = minTime; + this.maxTime = maxTime; + this.nullFrac = nullFrac; + } + + @Override + public Class getType() { + return Instant.class; + } + + @Override + public Instant nextValue(Random random) { + if (nullFrac > 0 && random.nextDouble() < nullFrac) { + return null; + } + final long longFloor = DateTimeUtils.epochNanos(minTime); + final long longCeiling = DateTimeUtils.epochNanos(maxTime); + + final long range = longCeiling - longFloor + 1L; + final long nextLong = Math.abs(random.nextLong()) % range; + + return DateTimeUtils.epochNanosToInstant(longFloor + nextLong); + } +} diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedInstantLongGenerator.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedInstantLongGenerator.java new file mode 100644 index 00000000000..e0e6e305986 --- /dev/null +++ b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/generator/UnsortedInstantLongGenerator.java @@ -0,0 +1,46 @@ +package io.deephaven.engine.testutil.generator; + +import io.deephaven.time.DateTimeUtils; + +import java.time.Instant; +import java.util.Random; + +public class UnsortedInstantLongGenerator extends AbstractReinterpretedGenerator { + private final Instant minTime; + private final Instant maxTime; + private final double nullFrac; + + public UnsortedInstantLongGenerator(Instant minTime, Instant maxTime) { + this(minTime, maxTime, 0); + } + + public UnsortedInstantLongGenerator(Instant minTime, Instant maxTime, double nullFrac) { + this.minTime = minTime; + this.maxTime = maxTime; + this.nullFrac = nullFrac; + } + + @Override + public Class getType() { + return Long.class; + } + + @Override + public Class getColumnType() { + return Instant.class; + } + + @Override + Long nextValue(Random random) { + if (nullFrac > 0 && random.nextDouble() < nullFrac) { + return null; + } + final long longFloor = DateTimeUtils.epochNanos(minTime); + final long longCeiling = DateTimeUtils.epochNanos(maxTime); + + final long range = longCeiling - longFloor + 1L; + final long nextLong = Math.abs(random.nextLong()) % range; + + return longFloor + (nextLong % range); + } +} diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/DateTimeTestSource.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/DateTimeTestSource.java deleted file mode 100644 index 533c72a5b26..00000000000 --- a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/DateTimeTestSource.java +++ /dev/null @@ -1,155 +0,0 @@ -package io.deephaven.engine.testutil.sources; - -import io.deephaven.chunk.Chunk; -import io.deephaven.chunk.ChunkType; -import io.deephaven.chunk.LongChunk; -import io.deephaven.chunk.ObjectChunk; -import io.deephaven.chunk.attributes.Values; -import io.deephaven.engine.rowset.RowSet; -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.impl.AbstractColumnSource; -import io.deephaven.engine.table.impl.MutableColumnSourceGetDefaults; -import io.deephaven.time.DateTime; -import io.deephaven.util.QueryConstants; -import io.deephaven.util.type.TypeUtils; -import org.jetbrains.annotations.NotNull; - -/** - * DateTime column source that wraps and delegates the storage to an {@code TreeMapSource}. This also provides an - * interface so this column can be interpreted as a long column (through UnboxedDateTimeTreeMapSource). - */ -public class DateTimeTestSource extends AbstractColumnSource - implements MutableColumnSourceGetDefaults.ForObject, TestColumnSource { - - private final LongTestSource longTestSource; - private final UnboxedDateTimeTestSource alternateColumnSource; - - /** - * Create a new DateTimeTreeMapSource with no initial data. - */ - public DateTimeTestSource() { - super(DateTime.class); - this.longTestSource = new LongTestSource(); - this.alternateColumnSource = new UnboxedDateTimeTestSource(this, longTestSource); - } - - /** - * Create a new DateTimeTreeMapSource with the given rowSet and data. - * - * @param rowSet The row keys for the initial data - * @param data The initial data - */ - public DateTimeTestSource(RowSet rowSet, DateTime[] data) { - super(DateTime.class); - this.longTestSource = new LongTestSource(rowSet, mapData(data)); - this.alternateColumnSource = new UnboxedDateTimeTestSource(this, longTestSource); - } - - /** - * Create a new DateTimeTreeMapSource with the given rowSet and data. - * - * @param rowSet The row keys for the initial data - * @param data The initial data - */ - public DateTimeTestSource(RowSet rowSet, Chunk data) { - super(DateTime.class); - if (data.getChunkType() == ChunkType.Long) { - this.longTestSource = new LongTestSource(rowSet, data.asLongChunk()); - } else { - this.longTestSource = new LongTestSource(rowSet, mapData(data.asObjectChunk())); - } - - this.alternateColumnSource = new UnboxedDateTimeTestSource(this, longTestSource); - } - - private LongChunk mapData(DateTime[] data) { - final long[] result = new long[data.length]; - for (int ii = 0; ii < result.length; ++ii) { - final DateTime dt = data[ii]; - result[ii] = dt == null ? QueryConstants.NULL_LONG : dt.getNanos(); - } - return LongChunk.chunkWrap(result); - } - - private LongChunk mapData(ObjectChunk data) { - final long[] result = new long[data.size()]; - if (result.length > 0 && data.get(0) instanceof Long) { - final ObjectChunk boxedLongChunk = data.asObjectChunk(); - for (int ii = 0; ii < result.length; ++ii) { - result[ii] = TypeUtils.unbox(boxedLongChunk.get(ii)); - } - } else { - final ObjectChunk dtc = data.asObjectChunk(); - for (int ii = 0; ii < result.length; ++ii) { - final DateTime dt = dtc.get(ii); - result[ii] = dt == null ? QueryConstants.NULL_LONG : dt.getNanos(); - } - } - return LongChunk.chunkWrap(result); - } - - public void add(RowSet rowSet, DateTime[] data) { - longTestSource.add(rowSet, mapData(data)); - } - - @Override - public void add(RowSet rowSet, Chunk data) { - if (data.getChunkType() == ChunkType.Long) { - longTestSource.add(rowSet, data.asLongChunk()); - } else if (data.getChunkType() == ChunkType.Object) { - longTestSource.add(rowSet, mapData(data.asObjectChunk())); - } else { - throw new IllegalArgumentException(); - } - } - - @Override - public void remove(RowSet rowSet) { - longTestSource.remove(rowSet); - } - - @Override - public void shift(long startKeyInclusive, long endKeyInclusive, long shiftDelta) { - longTestSource.shift(startKeyInclusive, endKeyInclusive, shiftDelta); - } - - @Override - public DateTime get(long rowKey) { - final Long v = longTestSource.get(rowKey); - return v == null ? null : new DateTime(v); - } - - @Override - public boolean isImmutable() { - return false; - } - - @Override - public long getLong(long rowKey) { - return longTestSource.getLong(rowKey); - } - - @Override - public DateTime getPrev(long rowKey) { - final Long v = longTestSource.getPrev(rowKey); - return v == null ? null : new DateTime(v); - } - - @Override - public long getPrevLong(long rowKey) { - return longTestSource.getPrevLong(rowKey); - } - - @Override - public boolean allowsReinterpret( - @NotNull final Class alternateDataType) { - return alternateDataType == long.class; - } - - @Override - public ColumnSource doReinterpret( - @NotNull final Class alternateDataType) throws IllegalArgumentException { - // noinspection unchecked - return (ColumnSource) alternateColumnSource; - } -} diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/ImmutableDateTimeTestSource.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/ImmutableDateTimeTestSource.java deleted file mode 100644 index 9ca2656dcdd..00000000000 --- a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/ImmutableDateTimeTestSource.java +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Copyright (c) 2016-2022 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.engine.testutil.sources; - -import io.deephaven.chunk.Chunk; -import io.deephaven.chunk.ChunkType; -import io.deephaven.chunk.LongChunk; -import io.deephaven.chunk.ObjectChunk; -import io.deephaven.chunk.attributes.Values; -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.impl.AbstractColumnSource; -import io.deephaven.engine.table.impl.MutableColumnSourceGetDefaults; -import io.deephaven.time.DateTime; -import io.deephaven.engine.rowset.RowSet; -import io.deephaven.util.QueryConstants; -import io.deephaven.util.type.TypeUtils; -import org.jetbrains.annotations.NotNull; - -/** - * DateTime column source that wraps and delegates the storage to an {@code ImmutableLongTestSource}. This also - * provides an interface so this column can be interpreted as a long column (through UnboxedDateTimeTestSource). - */ -public class ImmutableDateTimeTestSource extends AbstractColumnSource - implements MutableColumnSourceGetDefaults.ForObject, TestColumnSource { - - private final ImmutableLongTestSource longTestSource; - private final UnboxedDateTimeTestSource alternateColumnSource; - - /** - * Create a new ImmutableDateTimeTestSource with no initial data. - */ - public ImmutableDateTimeTestSource() { - super(DateTime.class); - this.longTestSource = new ImmutableLongTestSource(); - this.alternateColumnSource = new UnboxedDateTimeTestSource(this, longTestSource); - } - - /** - * Create a new DateTimeTreeMapSource with the given rowSet and data. - * - * @param rowSet The row indexes for the initial data - * @param data The initial data - */ - public ImmutableDateTimeTestSource(RowSet rowSet, Chunk data) { - super(DateTime.class); - if (data.getChunkType() == ChunkType.Long) { - this.longTestSource = new ImmutableLongTestSource(rowSet, data.asLongChunk()); - } else { - this.longTestSource = new ImmutableLongTestSource(rowSet, mapData(data.asObjectChunk())); - } - this.alternateColumnSource = new UnboxedDateTimeTestSource(this, longTestSource); - } - - private LongChunk mapData(ObjectChunk data) { - final long[] result = new long[data.size()]; - if (result.length > 0 && data.get(0) instanceof Long) { - final ObjectChunk boxedLongChunk = data.asObjectChunk(); - for (int ii = 0; ii < result.length; ++ii) { - result[ii] = TypeUtils.unbox(boxedLongChunk.get(ii)); - } - } else { - final ObjectChunk dtc = data.asObjectChunk(); - for (int ii = 0; ii < result.length; ++ii) { - final DateTime dt = dtc.get(ii); - result[ii] = dt == null ? QueryConstants.NULL_LONG : dt.getNanos(); - } - } - return LongChunk.chunkWrap(result); - } - - @Override - public void add(RowSet rowSet, Chunk data) { - if (data.getChunkType() == ChunkType.Long) { - longTestSource.add(rowSet, data.asLongChunk()); - } else if (data.getChunkType() == ChunkType.Object) { - longTestSource.add(rowSet, mapData(data.asObjectChunk())); - } else { - throw new IllegalArgumentException(); - } - } - - @Override - public void remove(RowSet rowSet) { - longTestSource.remove(rowSet); - } - - public void shift(long startKeyInclusive, long endKeyInclusive, long shiftDelta) { - longTestSource.shift(startKeyInclusive, endKeyInclusive, shiftDelta); - } - - @Override - public DateTime get(long index) { - final Long v = longTestSource.get(index); - return v == null ? null : new DateTime(v); - } - - @Override - public boolean isImmutable() { - return false; - } - - @Override - public long getLong(long index) { - return longTestSource.getLong(index); - } - - @Override - public DateTime getPrev(long index) { - final Long v = longTestSource.getPrev(index); - return v == null ? null : new DateTime(v); - } - - @Override - public long getPrevLong(long rowKey) { - return longTestSource.getPrevLong(rowKey); - } - - @Override - public boolean allowsReinterpret( - @NotNull final Class alternateDataType) { - return alternateDataType == long.class; - } - - @Override - public ColumnSource doReinterpret( - @NotNull final Class alternateDataType) throws IllegalArgumentException { - // noinspection unchecked - return (ColumnSource) alternateColumnSource; - } -} diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/ImmutableInstantTestSource.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/ImmutableInstantTestSource.java index 59088154bcb..470e023bd1b 100644 --- a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/ImmutableInstantTestSource.java +++ b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/ImmutableInstantTestSource.java @@ -21,7 +21,7 @@ /** * DateTime column source that wraps and delegates the storage to an {@code ImmutableLongTestSource}. This also - * provides an interface so this column can be interpreted as a long column (through UnboxedDateTimeTestSource). + * provides an interface so this column can be interpreted as a long column (through UnboxedInstantTestSource). */ public class ImmutableInstantTestSource extends AbstractColumnSource implements MutableColumnSourceGetDefaults.ForObject, TestColumnSource { diff --git a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/UnboxedDateTimeTestSource.java b/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/UnboxedDateTimeTestSource.java deleted file mode 100644 index e702d6ad687..00000000000 --- a/engine/test-utils/src/main/java/io/deephaven/engine/testutil/sources/UnboxedDateTimeTestSource.java +++ /dev/null @@ -1,39 +0,0 @@ -package io.deephaven.engine.testutil.sources; - -import io.deephaven.chunk.Chunk; -import io.deephaven.chunk.attributes.Values; -import io.deephaven.engine.rowset.RowSet; -import io.deephaven.engine.table.ColumnSource; -import io.deephaven.engine.table.impl.sources.UnboxedLongBackedColumnSource; -import io.deephaven.time.DateTime; - -/** - * Wrap a regular {@link TestColumnSource} to make it reinterpretable as a DateTime column source. - */ -public class UnboxedDateTimeTestSource extends UnboxedLongBackedColumnSource - implements TestColumnSource { - - // the actual data storage - private final TestColumnSource longTestSource; - - public UnboxedDateTimeTestSource(ColumnSource alternateColumnSource, - TestColumnSource testColumnSource) { - super(alternateColumnSource); - this.longTestSource = testColumnSource; - } - - @Override - public void add(RowSet rowSet, Chunk data) { - longTestSource.add(rowSet, data); - } - - @Override - public void remove(RowSet rowSet) { - longTestSource.remove(rowSet); - } - - @Override - public void shift(long startKeyInclusive, long endKeyInclusive, long shiftDelta) { - longTestSource.shift(startKeyInclusive, endKeyInclusive, shiftDelta); - } -} diff --git a/engine/time/src/main/java/io/deephaven/time/DateTime.java b/engine/time/src/main/java/io/deephaven/time/DateTime.java deleted file mode 100644 index 7c98d93b663..00000000000 --- a/engine/time/src/main/java/io/deephaven/time/DateTime.java +++ /dev/null @@ -1,321 +0,0 @@ -/** - * Copyright (c) 2016-2023 Deephaven Data Labs and Patent Pending - */ -package io.deephaven.time; - -import io.deephaven.base.clock.Clock; -import io.deephaven.util.annotations.ReflexiveUse; -import io.deephaven.util.type.TypeUtils; -import org.jetbrains.annotations.NotNull; - -import java.io.Externalizable; -import java.io.IOException; -import java.io.ObjectInput; -import java.io.ObjectOutput; -import java.time.*; -import java.time.zone.ZoneRulesException; -import java.util.Date; - -/** - * A point on the timeline. - * - * The time represents a zone-less, precise timepoint without respect to timezones. - * It is stored as a signed 64-bit long, representing nanoseconds since the epoch (January 1, 1970, 00:00:00 GMT). - * This provides a range from 1677-09-21T00:12:43.146-775807 UTC to 2262-04-11T23:47:16.854775807 UTC. - * The minimum long value is reserved for representing null values and therefore is not permitted as a valid time. - * - * @see DateTimeUtils - */ -@Deprecated -@TypeUtils.IsDateTime -@ReflexiveUse(referrers = "io.deephaven.gui.table.filters.StringFilterData") -public final class DateTime implements Comparable, Externalizable { - - private static final long serialVersionUID = -9077991715632523353L; - - private long nanos; - - // region Constructors - - /** - * Create a new DateTime initialized to the epoch. - */ - public DateTime() { - // for Externalizable - } - - /** - * Create a new DateTime initialized to the provided nanoseconds since the epoch. - * - * @param nanos the number of nanoseconds since the epoch - */ - public DateTime(long nanos) { - this.nanos = nanos; - } - - /** - * Create a new date time from an {@link Instant}. - * - * @param instant instant in time. - * @return the date time. - */ - public static DateTime of(Instant instant) { - return new DateTime(DateTimeUtils.epochNanos(instant)); - } - - /** - * Create a new date from a {@link Clock}. - * - * If nanosecond resolution is not necessary, consider using {@link #ofMillis(Clock)}. - * - * @param clock the clock - * @return the date time - * @see #ofMillis(Clock) - */ - public static DateTime of(Clock clock) { - return new DateTime(clock.currentTimeNanos()); - } - - /** - * Create a new date time with millisecond resolution from a {@link Clock}. - * - * @param clock the clock - * @return the date time - * @see #of(Clock) - */ - public static DateTime ofMillis(Clock clock) { - return new DateTime(Math.multiplyExact(clock.currentTimeMillis(), 1_000_000)); - } - - /** - * Create a new DateTime initialized to the current system time. - * - * The precision of DateTime is nanoseconds, but the resolution of this method depends on the time resolution - * provided by the JVM. - * - * If nanosecond resolution is not necessary, consider using {@link #nowMillis()}. - * - * @return the date time initialized to the current system time. - * @see #of(Clock) - * @see Clock#system() - */ - public static DateTime now() { - return of(Clock.system()); - } - - /** - * Create a new DateTime initialized to the current system time with millisecond resolution. - * - * @return the date time initialized to the current system time with millisecond resolution. - * @see #ofMillis(Clock) - * @see Clock#system() - */ - public static DateTime nowMillis() { - return ofMillis(Clock.system()); - } - - // endregion - - // region Object hashing / comparison - - @Override - public boolean equals(final Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (!(that instanceof DateTime)) { - return false; - } - return nanos == ((DateTime) that).nanos; - } - - public int hashCode() { - return (int) (nanos ^ (nanos >>> 32)); - } - - public int compareTo(DateTime dateTime) { - return Long.compare(nanos, dateTime.nanos); - } - - // endregion - - // region Epoch accessors - - /** - * Get this time represented as nanoseconds since the epoch - * - * @return the number of nanoseconds since the epoch - */ - public long getNanos() { - return nanos; - } - - /** - * Get this time represented as microseconds since the epoch - * - * @return the number of microseconds since the epoch - */ - public long getMicros() { - return nanos / 1000; - } - - /** - * Get this time represented as milliseconds since the epoch - * - * @return the number of milliseconds since the epoch - */ - public long getMillis() { - return nanos / 1000000; - } - - /** - * Get the number of nanoseconds since the top of the millisecond. - * This number will always be between 0 and 999,999 - * - * @return the number of nanoseconds since the top of the millisecond. - */ - public long getNanosPartial() { - return nanos % 1000000; - } - - // endregion - - // region Time conversions - - /** - * Convert this DateTime to an {@link Instant}. - * - * @return an instant in time - */ - @NotNull - public Instant toInstant() { - return Instant.ofEpochSecond(0, nanos); - } - - /** - * Convert this DateTime to a {@link ZonedDateTime} with the specified time zone. - * - * @param timeZone time zone. - * @return a {@link ZonedDateTime} - */ - @NotNull - public ZonedDateTime toZonedDateTime(@NotNull final ZoneId timeZone) { - // noinspection ConstantConditions - if (timeZone == null) { - throw new IllegalArgumentException("timeZone cannot be null"); - } - return ZonedDateTime.ofInstant(toInstant(), timeZone); - } - - /** - * Convert this DateTime to a {@link LocalDate} with the specified time zone. - * - * @param timeZone time zone. - * @return the {@link LocalDate} - */ - @NotNull - public LocalDate toLocalDate(@NotNull final ZoneId timeZone) { - return toZonedDateTime(timeZone).toLocalDate(); - } - - /** - * Convert this DateTime to a {@link LocalTime} with the specified time zone. - * - * @param timeZone time zone. - * @return the {@link LocalTime} - */ - @NotNull - public LocalTime toLocalTime(@NotNull final ZoneId timeZone) { - return toZonedDateTime(timeZone).toLocalTime(); - } - - /** - * Convert this DateTime to a {@link Date}. The date time will be truncated to millisecond resolution. - * - * @return a {@link Date} - * @deprecated use {@link #toZonedDateTime(ZoneId)} ()} or {@link #toInstant()} instead. - */ - @Deprecated - @NotNull - public Date toDate() { - return new Date(getMillis()); - } - - // endregion - - // region String formatting - - @Override - public String toString() { - return toString(ZoneId.systemDefault()); - } - - /** - * Converts this DateTime into a String using the provided time zone. - * - * The date time will be formatted as {@code yyyy-MM-DDThh:mm:ss.SSSSSSSSS TZ}, for example - * {@code 2020-05-27T13:37:57.780853000 NY} or {@code 2020-05-27T17:37:42.763641000 UTC}. - * - * @param timeZone the time zone for formatting the string - * @return a string representation of this DateTime - * @see DateTimeUtils#formatDateTime(DateTime, ZoneId) - */ - @NotNull - public String toString(@NotNull final ZoneId timeZone) { - // noinspection ConstantConditions - if (timeZone == null) { - throw new IllegalArgumentException("timeZone cannot be null"); - } - //noinspection ConstantConditions - return DateTimeUtils.formatDateTime(DateTimeUtils.epochNanosToInstant(this.getNanos()), timeZone); - } - - /** - * Converts this DateTime into a date String using the default time zone. - * - * The date will be formatted as {@code yyyy-MM-DD}, for example {@code 2020-05-27} or {@code 2020-05-27}. - * - * @return a date string representation of this DateTime in the default time zone. - * @see ZoneId#systemDefault() - */ - @NotNull - public String toDateString() { - return toDateString(ZoneId.systemDefault()); - } - - /** - * Converts this DateTime into a date String using the provided time zone. - * - * The date will be formatted as {@code yyyy-MM-DD}, for example {@code 2020-05-27} or {@code 2020-05-27}. - * - * @param timeZone the time zone for formatting the string - * @return a date string representation of this DateTime in the provided time zone. - * @see DateTimeUtils#formatDate(DateTime, ZoneId) - */ - @NotNull - public String toDateString(@NotNull final ZoneId timeZone) { - // noinspection ConstantConditions - if (timeZone == null) { - throw new IllegalArgumentException("timeZone cannot be null"); - } - //noinspection ConstantConditions - return DateTimeUtils.formatDate(DateTimeUtils.epochNanosToInstant(this.getNanos()), timeZone); - } - - // endregion - - // region Externalizable - - public void writeExternal(ObjectOutput out) throws IOException { - out.writeLong(nanos); - } - - public void readExternal(ObjectInput in) throws IOException { - nanos = in.readLong(); - } - - // endregion -} diff --git a/engine/time/src/main/java/io/deephaven/time/DateTimeFormatter.java b/engine/time/src/main/java/io/deephaven/time/DateTimeFormatter.java index fc225121e33..ce3f4610cb4 100644 --- a/engine/time/src/main/java/io/deephaven/time/DateTimeFormatter.java +++ b/engine/time/src/main/java/io/deephaven/time/DateTimeFormatter.java @@ -13,7 +13,7 @@ import java.util.Map; /** - * String formatter for {@link Instant}. + * String formatter for {@link Instant} and {@link ZonedDateTime}. */ public class DateTimeFormatter { @@ -61,7 +61,7 @@ private java.time.format.DateTimeFormatter getFormatter(ZoneId tz) { /** * Returns a ZonedDateTime formatted as a string. * - * @param dateTime time to format as a string. + * @param dateTime date time to format as a string. * @return date time formatted as a string. */ @NotNull @@ -72,25 +72,25 @@ public String format(@NotNull final ZonedDateTime dateTime) { /** * Returns an Instant formatted as a string. * - * @param dateTime time to format as a string. + * @param instant time to format as a string. * @param timeZone time zone to use when formatting the string. * @return date time formatted as a string. */ @NotNull - public String format(@NotNull final Instant dateTime, @NotNull final ZoneId timeZone) { - return format(dateTime.atZone(timeZone)); + public String format(@NotNull final Instant instant, @NotNull final ZoneId timeZone) { + return format(instant.atZone(timeZone)); } /** * Returns an Instant formatted as a string using the default time zone. * - * @param dateTime time to format as a string. + * @param instant time to format as a string. * @return date time formatted as a string. * @see ZoneId#systemDefault() */ @NotNull - public String format(@NotNull final Instant dateTime) { - return format(dateTime, ZoneId.systemDefault()); + public String format(@NotNull final Instant instant) { + return format(instant, ZoneId.systemDefault()); } @Override diff --git a/engine/time/src/main/java/io/deephaven/time/calendar/AbstractCalendar.java b/engine/time/src/main/java/io/deephaven/time/calendar/AbstractCalendar.java index 3ce043c67cb..80fb189f45c 100644 --- a/engine/time/src/main/java/io/deephaven/time/calendar/AbstractCalendar.java +++ b/engine/time/src/main/java/io/deephaven/time/calendar/AbstractCalendar.java @@ -3,7 +3,6 @@ */ package io.deephaven.time.calendar; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; diff --git a/engine/time/src/main/java/io/deephaven/time/calendar/BusinessCalendar.java b/engine/time/src/main/java/io/deephaven/time/calendar/BusinessCalendar.java index 1833998023a..7bbcf5a61e9 100644 --- a/engine/time/src/main/java/io/deephaven/time/calendar/BusinessCalendar.java +++ b/engine/time/src/main/java/io/deephaven/time/calendar/BusinessCalendar.java @@ -624,7 +624,7 @@ default String nextNonBusinessDay(int days) { * holiday has zero business time and will therefore return 0.0. A normal business day will be of the standard * length and will therefore return 1.0. A half day holiday will return 0.5. * - * @see BusinessCalendar#fractionOfBusinessDayRemaining(DateTime) + * @see BusinessCalendar#fractionOfBusinessDayRemaining(Instant) * @return ratio of the business day length and the standard business day length for the current day */ default double fractionOfStandardBusinessDay() { diff --git a/engine/time/src/main/java/io/deephaven/time/calendar/Calendar.java b/engine/time/src/main/java/io/deephaven/time/calendar/Calendar.java index 5163b058d41..5786c8469f8 100644 --- a/engine/time/src/main/java/io/deephaven/time/calendar/Calendar.java +++ b/engine/time/src/main/java/io/deephaven/time/calendar/Calendar.java @@ -16,7 +16,7 @@ * To comply with the ISO-8601 standard for Dates, Strings should be of the form "yyyy-MM-dd", * * - * Methods on Instant may not be precisely defined enough to return a DateTime, e.g nextDay(). In these cases, the + * Methods on Instant may not be precisely defined enough to return an Instant, e.g nextDay(). In these cases, the * method will return a String as discussed above. * * @@ -24,9 +24,9 @@ * a different time zone is considered a different calendar. * * - * Frequently, the default implementation for methods on DateTimes is to call the corresponding method on a String with - * {@code DateTime.toDateString}. This can be slower than methods written explicitly for DateTimes. If performance is an - * issue, consider overriding these methods with other behavior. + * Frequently, the default implementation for methods on Instants is to call the corresponding method on a String with + * {@code DateTimeUtils.formatDate}. This can be slower than methods written explicitly for DateTimes. If performance + * is an issue, consider overriding these methods with other behavior. */ public interface Calendar { diff --git a/engine/time/src/test/java/io/deephaven/time/TestDateTimeUtils.java b/engine/time/src/test/java/io/deephaven/time/TestDateTimeUtils.java index 1127ebc74b3..c8804a8f0e7 100644 --- a/engine/time/src/test/java/io/deephaven/time/TestDateTimeUtils.java +++ b/engine/time/src/test/java/io/deephaven/time/TestDateTimeUtils.java @@ -1278,7 +1278,7 @@ public Instant instantNanos() { @Override public Instant instantMillis() { - return Instant.ofEpochMilli(nanos/DateTimeUtils.MILLI); + return Instant.ofEpochMilli(nanos/ DateTimeUtils.MILLI); } }; DateTimeUtils.setClock(clock); @@ -1765,7 +1765,7 @@ public void testDiffMillis() { public void testDiffSeconds() { final Instant i1 = DateTimeUtils.epochNanosToInstant(12345678987654321L); final Instant i2 = DateTimeUtils.epochNanosToInstant(98765432123456789L); - final double delta = (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double)DateTimeUtils.SECOND; + final double delta = (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double) DateTimeUtils.SECOND; TestCase.assertEquals(delta, DateTimeUtils.diffSeconds(i1, i2)); TestCase.assertEquals(-delta, DateTimeUtils.diffSeconds(i2, i1)); @@ -1784,7 +1784,7 @@ public void testDiffSeconds() { public void testDiffMinutes() { final Instant i1 = DateTimeUtils.epochNanosToInstant(12345678987654321L); final Instant i2 = DateTimeUtils.epochNanosToInstant(98765432123456789L); - final double delta = (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double)DateTimeUtils.MINUTE; + final double delta = (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double) DateTimeUtils.MINUTE; TestCase.assertEquals(delta, DateTimeUtils.diffMinutes(i1, i2)); TestCase.assertEquals(-delta, DateTimeUtils.diffMinutes(i2, i1)); @@ -1803,7 +1803,7 @@ public void testDiffMinutes() { public void testDiffDays() { final Instant i1 = DateTimeUtils.epochNanosToInstant(12345678987654321L); final Instant i2 = DateTimeUtils.epochNanosToInstant(98765432123456789L); - final double delta = (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double)DateTimeUtils.DAY; + final double delta = (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double) DateTimeUtils.DAY; TestCase.assertEquals(delta, DateTimeUtils.diffDays(i1, i2)); TestCase.assertEquals(-delta, DateTimeUtils.diffDays(i2, i1)); @@ -1822,7 +1822,7 @@ public void testDiffDays() { public void testDiffYears() { final Instant i1 = DateTimeUtils.epochNanosToInstant(12345678987654321L); final Instant i2 = DateTimeUtils.epochNanosToInstant(98765432123456789L); - final double delta = (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double)DateTimeUtils.YEAR; + final double delta = (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double) DateTimeUtils.YEAR; TestCase.assertEquals(delta, DateTimeUtils.diffYears(i1, i2)); TestCase.assertEquals(-delta, DateTimeUtils.diffYears(i2, i1)); diff --git a/engine/tuple/src/main/java/io/deephaven/tuple/serialization/SerializationUtils.java b/engine/tuple/src/main/java/io/deephaven/tuple/serialization/SerializationUtils.java index 8df8f061e50..a41d1bb2a94 100644 --- a/engine/tuple/src/main/java/io/deephaven/tuple/serialization/SerializationUtils.java +++ b/engine/tuple/src/main/java/io/deephaven/tuple/serialization/SerializationUtils.java @@ -3,9 +3,9 @@ */ package io.deephaven.tuple.serialization; -import io.deephaven.time.DateTime; import gnu.trove.map.TIntObjectMap; import gnu.trove.map.hash.TIntObjectHashMap; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.function.ThrowingConsumer; import io.deephaven.util.function.ThrowingSupplier; import org.jetbrains.annotations.NotNull; @@ -15,6 +15,7 @@ import java.io.ObjectInput; import java.io.ObjectOutput; import java.lang.reflect.Constructor; +import java.time.Instant; import java.util.Date; /** @@ -61,8 +62,8 @@ public static Writer getWriter(@NotNull final Class out.writeUTF((String) k); } - if (itemClass == DateTime.class) { - return k -> out.writeLong(((DateTime) k).getNanos()); + if (itemClass == Instant.class) { + return k -> out.writeLong(DateTimeUtils.epochNanos(((Instant) k))); } if (itemClass == Date.class) { return k -> out.writeLong(((Date) k).getTime()); @@ -117,8 +118,8 @@ public static Reader getReader(@NotNull final Class (ITEM_TYPE) in.readUTF(); } - if (itemClass == DateTime.class) { - return () -> (ITEM_TYPE) new DateTime(in.readLong()); + if (itemClass == Instant.class) { + return () -> (ITEM_TYPE) DateTimeUtils.epochNanosToInstant(in.readLong()); } if (itemClass == Date.class) { return () -> (ITEM_TYPE) new Date(in.readLong()); diff --git a/engine/tuple/src/test/java/io/deephaven/tuple/serialization/TestSerializationUtils.java b/engine/tuple/src/test/java/io/deephaven/tuple/serialization/TestSerializationUtils.java index 039ba6a8779..12b6dafb5b4 100644 --- a/engine/tuple/src/test/java/io/deephaven/tuple/serialization/TestSerializationUtils.java +++ b/engine/tuple/src/test/java/io/deephaven/tuple/serialization/TestSerializationUtils.java @@ -3,7 +3,7 @@ */ package io.deephaven.tuple.serialization; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import io.deephaven.tuple.ArrayTuple; import io.deephaven.tuple.generated.ObjectObjectObjectTuple; import io.deephaven.tuple.generated.ObjectObjectTuple; @@ -97,7 +97,7 @@ private void readObject(@NotNull final ObjectInputStream in) throws IOException public void testAllTypes() throws Exception { // noinspection AutoBoxing final ArrayTuple fullInput = new ArrayTuple((byte) 1, (short) 2, 3, 4L, 5.0F, 6.0D, true, '7', "08", - new DateTime(9), new Date(10), + DateTimeUtils.epochNanosToInstant(9), new Date(10), new ObjectObjectTuple("11-A", "11-B"), new ObjectObjectObjectTuple("12-X", "12-Y", "12-Z"), new EE(13), new SE(14)); diff --git a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/TupleSourceCreatorImpl.java b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/TupleSourceCreatorImpl.java index 4c5f13f56e0..4e4b24eeef8 100644 --- a/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/TupleSourceCreatorImpl.java +++ b/engine/tuplesource/src/main/java/io/deephaven/engine/table/impl/tuplesource/TupleSourceCreatorImpl.java @@ -8,12 +8,12 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.TupleSource; import io.deephaven.engine.table.impl.TupleSourceFactory; -import io.deephaven.time.DateTime; import io.deephaven.util.type.TypeUtils; import org.jetbrains.annotations.NotNull; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; +import java.time.Instant; import java.util.Arrays; import java.util.Map; import java.util.stream.Collectors; @@ -94,7 +94,7 @@ public TupleSource makeTupleSource(@NotNull final Colum } private static final Map, Class> TYPE_TO_REINTERPRETED = - Map.of(Boolean.class, byte.class, DateTime.class, long.class); + Map.of(Boolean.class, byte.class, Instant.class, long.class); private static Pair columnSourceToTypeNameAndInternalSource( @NotNull final ColumnSource columnSource) { diff --git a/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowInstantColumnSource.java b/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowInstantColumnSource.java index 224215bf1d0..0ba3b97287c 100644 --- a/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowInstantColumnSource.java +++ b/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowInstantColumnSource.java @@ -15,40 +15,42 @@ import io.deephaven.engine.table.ChunkSource; import io.deephaven.engine.table.impl.ImmutableColumnSourceGetDefaults; import io.deephaven.extensions.arrow.ArrowWrapperTools; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import org.apache.arrow.vector.TimeStampVector; import org.apache.arrow.vector.types.pojo.Field; import org.jetbrains.annotations.NotNull; +import java.time.Instant; + /** * Arrow Vector: {@link TimeStampVector} - * Deephaven Type: io.deephaven.time.DateTime + * Deephaven Type: io.deephaven.time.Instant */ -public class ArrowInstantColumnSource extends AbstractArrowColumnSource implements ImmutableColumnSourceGetDefaults.ForObject { +public class ArrowInstantColumnSource extends AbstractArrowColumnSource implements ImmutableColumnSourceGetDefaults.ForObject { public ArrowInstantColumnSource(final int highBit, final @NotNull Field field, final ArrowWrapperTools. @NotNull ArrowTableContext arrowTableContext) { - super(DateTime.class, highBit, field, arrowTableContext); + super(Instant.class, highBit, field, arrowTableContext); } @Override public void fillChunk(final ChunkSource. @NotNull FillContext context, final @NotNull WritableChunk destination, final @NotNull RowSequence rowSequence) { - final WritableObjectChunk chunk = destination.asWritableObjectChunk(); + final WritableObjectChunk chunk = destination.asWritableObjectChunk(); final ArrowWrapperTools.FillContext arrowContext = (ArrowWrapperTools.FillContext) context; chunk.setSize(0); fillChunk(arrowContext, rowSequence, rowKey -> chunk.add(extract(getPositionInBlock(rowKey), arrowContext.getVector(field)))); } @Override - public final DateTime get(final long rowKey) { + public final Instant get(final long rowKey) { try (ArrowWrapperTools.FillContext fc = (ArrowWrapperTools.FillContext) makeFillContext(0)) { fc.ensureLoadingBlock(getBlockNo(rowKey)); return extract(getPositionInBlock(rowKey), fc.getVector(field)); } } - private DateTime extract(final int posInBlock, final TimeStampVector vector) { - return vector.isSet(posInBlock) == 0 ? null : new DateTime(vector.get(posInBlock)); + private Instant extract(final int posInBlock, final TimeStampVector vector) { + return vector.isSet(posInBlock) == 0 ? null : DateTimeUtils.epochNanosToInstant(vector.get(posInBlock)); } } diff --git a/extensions/arrow/src/test/java/io/deephaven/extensions/arrow/ArrowTimestampVectorTest.java b/extensions/arrow/src/test/java/io/deephaven/extensions/arrow/ArrowTimestampVectorTest.java index 6895770cf80..f9c11feb00a 100644 --- a/extensions/arrow/src/test/java/io/deephaven/extensions/arrow/ArrowTimestampVectorTest.java +++ b/extensions/arrow/src/test/java/io/deephaven/extensions/arrow/ArrowTimestampVectorTest.java @@ -14,11 +14,13 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.QueryTable; import io.deephaven.engine.testutil.junit4.EngineCleanup; -import io.deephaven.time.DateTime; import java.io.File; +import java.time.Instant; import java.util.ArrayList; import java.util.Arrays; import java.util.List; + +import io.deephaven.time.DateTimeUtils; import org.apache.commons.lang3.mutable.MutableInt; import org.junit.Assert; import org.junit.Rule; @@ -27,7 +29,14 @@ public class ArrowTimestampVectorTest { private static final List expectedRows = Arrays.asList(0L, 1L, 2L, 4L, 8L, 9L); - private static final DateTime[] expectedValues = new DateTime[] {new DateTime(1670443801), new DateTime(1570443532), null, new DateTime(0), new DateTime(170443801), new DateTime(-72309740)}; + private static final Instant[] expectedValues = new Instant[] { + DateTimeUtils.epochNanosToInstant(1670443801), + DateTimeUtils.epochNanosToInstant(1570443532), + null, + DateTimeUtils.epochNanosToInstant(0), + DateTimeUtils.epochNanosToInstant(170443801), + DateTimeUtils.epochNanosToInstant(-72309740) + }; @Rule public final EngineCleanup framework = new EngineCleanup(); @@ -50,7 +59,7 @@ public void testReadArrowFile() { Assert.assertEquals(1, table.getColumnSources().size()); // noinspection OptionalGetWithoutIsPresent, unchecked; - final ColumnSource cs = (ColumnSource)table.getColumnSources().stream().findFirst().get(); + final ColumnSource cs = (ColumnSource)table.getColumnSources().stream().findFirst().get(); ArrowWrapperTools.Shareable.resetNumBlocksLoaded(); final MutableInt pos = new MutableInt(); @@ -63,10 +72,10 @@ public void testFillChunk() { final QueryTable table = loadTable(); // noinspection OptionalGetWithoutIsPresent, unchecked; - final ColumnSource cs = (ColumnSource)table.getColumnSources().stream().findFirst().get(); + final ColumnSource cs = (ColumnSource)table.getColumnSources().stream().findFirst().get(); try (final ChunkSource.FillContext fillContext = cs.makeFillContext(table.intSize()); - final WritableObjectChunk chunk = WritableObjectChunk.makeWritableChunk(table.intSize())) { + final WritableObjectChunk chunk = WritableObjectChunk.makeWritableChunk(table.intSize())) { ArrowWrapperTools.Shareable.resetNumBlocksLoaded(); cs.fillChunk(fillContext, chunk, table.getRowSet()); diff --git a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarragePerformanceLog.java b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarragePerformanceLog.java index b90be30e9d3..0061e529cd5 100644 --- a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarragePerformanceLog.java +++ b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarragePerformanceLog.java @@ -10,23 +10,25 @@ import io.deephaven.engine.table.impl.QueryTable; import io.deephaven.internal.log.LoggerFactory; import io.deephaven.io.logger.Logger; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.io.IOException; +import java.time.Instant; +import java.util.Map; import java.util.function.Supplier; /** * Enable barrage performance metrics by setting the {@code BarragePerformanceLog.enableAll} configuration property, or * by adding the {@link io.deephaven.engine.table.Table#BARRAGE_PERFORMANCE_KEY_ATTRIBUTE table key} as an - * {@link io.deephaven.engine.table.Table#setAttribute(String, Object) attribute} to the table. + * {@link io.deephaven.engine.table.Table#withAttributes(Map) attribute} to the table. */ public class BarragePerformanceLog { /** * If all barrage performance logging is enabled by default, then table's description is used as TableKey unless * overridden with the {@link io.deephaven.engine.table.Table#BARRAGE_PERFORMANCE_KEY_ATTRIBUTE table key} - * {@link io.deephaven.engine.table.Table#setAttribute(String, Object) attribute}. + * {@link io.deephaven.engine.table.Table#withAttributes(Map) attribute}. */ public static final boolean ALL_PERFORMANCE_ENABLED = Configuration.getInstance().getBooleanForClassWithDefault( BarragePerformanceLog.class, "enableAll", true); @@ -115,7 +117,7 @@ public interface WriteMetricsConsumer { } public static class SnapshotMetricsHelper implements WriteMetricsConsumer { - private final DateTime requestTm = DateTime.now(); + private final Instant requestTm = DateTimeUtils.now(); public String tableId; public String tableKey; public long queueNanos; diff --git a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageSnapshotPerformanceLogger.java b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageSnapshotPerformanceLogger.java index 01be8e609ec..7e10817baf3 100644 --- a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageSnapshotPerformanceLogger.java +++ b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageSnapshotPerformanceLogger.java @@ -9,9 +9,9 @@ import io.deephaven.tablelogger.Row; import io.deephaven.tablelogger.RowSetter; import io.deephaven.tablelogger.WritableRowContainer; -import io.deephaven.time.DateTime; import java.io.IOException; +import java.time.Instant; public class BarrageSnapshotPerformanceLogger extends MemoryTableLogger { @@ -24,7 +24,7 @@ public BarrageSnapshotPerformanceLogger() { @SuppressWarnings("rawtypes") interface ISetter extends WritableRowContainer { - void log(Row.Flags flags, String tableId, String tableKey, DateTime time, + void log(Row.Flags flags, String tableId, String tableKey, Instant time, long queueTm, long snapshotTm, long writeTm, long bytesWritten) throws IOException; } @@ -37,7 +37,7 @@ public static String getDefaultTableName() { class DirectSetter extends BaseSetter implements ISetter { RowSetter TableId; RowSetter TableKey; - RowSetter RequestTime; + RowSetter RequestTime; RowSetter QueueMillis; RowSetter SnapshotMillis; RowSetter WriteMillis; @@ -46,7 +46,7 @@ class DirectSetter extends BaseSetter implements ISetter { DirectSetter() { TableId = row.getSetter("TableId", String.class); TableKey = row.getSetter("TableKey", String.class); - RequestTime = row.getSetter("RequestTime", DateTime.class); + RequestTime = row.getSetter("RequestTime", Instant.class); QueueMillis = row.getSetter("QueueMillis", double.class); SnapshotMillis = row.getSetter("SnapshotMillis", double.class); WriteMillis = row.getSetter("WriteMillis", double.class); @@ -54,7 +54,7 @@ class DirectSetter extends BaseSetter implements ISetter { } @Override - public void log(Row.Flags flags, String tableId, String tableKey, DateTime requestTime, + public void log(Row.Flags flags, String tableId, String tableKey, Instant requestTime, long queueNanos, long snapshotNanos, long writeNanons, long bytesWritten) throws IOException { setRowFlags(flags); @@ -81,7 +81,7 @@ protected String threadName() { final ColumnsSpecHelper cols = new ColumnsSpecHelper() .add("TableId", String.class) .add("TableKey", String.class) - .add("RequestTime", DateTime.class) + .add("RequestTime", Instant.class) .add("QueueMillis", double.class) .add("SnapshotMillis", double.class) @@ -101,7 +101,7 @@ protected ISetter createSetter() { } public void log( - String tableId, String tableKey, DateTime requestTime, + String tableId, String tableKey, Instant requestTime, long queueNanos, long snapshotNanos, long writeNanos, long bytesWritten) throws IOException { log(DEFAULT_INTRADAY_LOGGER_FLAGS, tableId, tableKey, requestTime, @@ -109,7 +109,7 @@ public void log( } public void log( - Row.Flags flags, String tableId, String tableKey, DateTime requestTime, + Row.Flags flags, String tableId, String tableKey, Instant requestTime, long queueNanos, long snapshotNanos, long writeNanos, long bytesWritten) throws IOException { verifyCondition(isInitialized(), "init() must be called before calling log()"); diff --git a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageSubscriptionPerformanceLogger.java b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageSubscriptionPerformanceLogger.java index 26a6cd425ab..a58b79b0351 100644 --- a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageSubscriptionPerformanceLogger.java +++ b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/BarrageSubscriptionPerformanceLogger.java @@ -9,9 +9,9 @@ import io.deephaven.tablelogger.Row; import io.deephaven.tablelogger.RowSetter; import io.deephaven.tablelogger.WritableRowContainer; -import io.deephaven.time.DateTime; import java.io.IOException; +import java.time.Instant; public class BarrageSubscriptionPerformanceLogger extends MemoryTableLogger { @@ -24,7 +24,7 @@ public BarrageSubscriptionPerformanceLogger() { @SuppressWarnings("rawtypes") interface ISetter extends WritableRowContainer { - void log(Row.Flags flags, String tableId, String tableKey, String statType, DateTime time, + void log(Row.Flags flags, String tableId, String tableKey, String statType, Instant time, long count, double pct50, double pct75, double pct90, double pct95, double pct99, double max) throws IOException; } @@ -38,7 +38,7 @@ class DirectSetter extends BaseSetter implements ISetter { RowSetter TableId; RowSetter TableKey; RowSetter StatType; - RowSetter Time; + RowSetter Time; RowSetter Count; RowSetter Pct50; RowSetter Pct75; @@ -51,7 +51,7 @@ class DirectSetter extends BaseSetter implements ISetter { TableId = row.getSetter("TableId", String.class); TableKey = row.getSetter("TableKey", String.class); StatType = row.getSetter("StatType", String.class); - Time = row.getSetter("Time", DateTime.class); + Time = row.getSetter("Time", Instant.class); Count = row.getSetter("Count", long.class); Pct50 = row.getSetter("Pct50", double.class); Pct75 = row.getSetter("Pct75", double.class); @@ -62,7 +62,7 @@ class DirectSetter extends BaseSetter implements ISetter { } @Override - public void log(Row.Flags flags, String tableId, String tableKey, String statType, DateTime time, + public void log(Row.Flags flags, String tableId, String tableKey, String statType, Instant time, long count, double pct50, double pct75, double pct90, double pct95, double pct99, double max) throws IOException { setRowFlags(flags); @@ -94,7 +94,7 @@ protected String threadName() { .add("TableId", String.class) .add("TableKey", String.class) .add("StatType", String.class) - .add("Time", DateTime.class) + .add("Time", Instant.class) .add("Count", long.class) .add("Pct50", double.class) @@ -117,7 +117,7 @@ protected ISetter createSetter() { } public void log( - String tableId, String tableKey, String statType, DateTime time, + String tableId, String tableKey, String statType, Instant time, long count, double pct50, double pct75, double pct90, double pct95, double pct99, double max) throws IOException { log(DEFAULT_INTRADAY_LOGGER_FLAGS, tableId, tableKey, statType, time, @@ -125,7 +125,7 @@ public void log( } public void log( - Row.Flags flags, String tableId, String tableKey, String statType, DateTime time, + Row.Flags flags, String tableId, String tableKey, String statType, Instant time, long count, double pct50, double pct75, double pct90, double pct95, double pct99, double max) throws IOException { verifyCondition(isInitialized(), "init() must be called before calling log()"); diff --git a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/chunk/ChunkInputStreamGenerator.java b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/chunk/ChunkInputStreamGenerator.java index d605dc9aa42..82d563c7c28 100644 --- a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/chunk/ChunkInputStreamGenerator.java +++ b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/chunk/ChunkInputStreamGenerator.java @@ -14,9 +14,7 @@ import io.deephaven.extensions.barrage.ColumnConversionMode; import io.deephaven.extensions.barrage.util.DefensiveDrainable; import io.deephaven.extensions.barrage.util.StreamReaderOptions; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; -import io.deephaven.time.TimeZoneAliases; import io.deephaven.util.datastructures.LongSizedDataStructure; import io.deephaven.chunk.Chunk; import io.deephaven.chunk.ChunkType; @@ -93,18 +91,6 @@ static ChunkInputStreamGenerator makeInputStreamGenerator( out.write(normal.unscaledValue().toByteArray()); }); } - if (type == DateTime.class) { - // This code path is utilized for arrays and vectors of DateTimes, which cannot be reinterpreted. - ObjectChunk objChunk = chunk.asObjectChunk(); - WritableLongChunk outChunk = WritableLongChunk.makeWritableChunk(objChunk.size()); - for (int i = 0; i < objChunk.size(); ++i) { - outChunk.set(i, DateTimeUtils.epochNanos(objChunk.get(i))); - } - if (chunk instanceof PoolableChunk) { - ((PoolableChunk) chunk).close(); - } - return new LongChunkInputStreamGenerator(outChunk, Long.BYTES, rowOffset); - } if (type == Instant.class) { // This code path is utilized for arrays and vectors of Instant, which cannot be reinterpreted. ObjectChunk objChunk = chunk.asObjectChunk(); @@ -253,12 +239,6 @@ static WritableChunk extractChunkFromInputStream( outChunk, outOffset, totalRows ); } - if (type == DateTime.class) { - return FixedWidthChunkInputStreamGenerator.extractChunkFromInputStreamWithTypeConversion( - Long.BYTES, options, io -> DateTimeUtils.epochNanosToDateTime(io.readLong()), - fieldNodeIter, bufferInfoIter, is, outChunk, outOffset, totalRows - ); - } if (type == Instant.class) { return FixedWidthChunkInputStreamGenerator.extractChunkFromInputStreamWithTypeConversion( Long.BYTES, options, io -> DateTimeUtils.epochNanosToInstant(io.readLong()), diff --git a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/table/BarrageTable.java b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/table/BarrageTable.java index 76fafe6cc71..18ae8bc1a98 100644 --- a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/table/BarrageTable.java +++ b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/table/BarrageTable.java @@ -32,13 +32,14 @@ import io.deephaven.io.log.LogEntry; import io.deephaven.io.log.LogLevel; import io.deephaven.io.logger.Logger; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.annotations.InternalUseOnly; import org.HdrHistogram.Histogram; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.io.IOException; +import java.time.Instant; import java.util.*; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; @@ -547,7 +548,7 @@ public void stop() { @Override public void run() { - final DateTime now = DateTime.now(); + final Instant now = DateTimeUtils.now(); final BarrageSubscriptionPerformanceLogger logger = BarragePerformanceLog.getInstance().getSubscriptionLogger(); @@ -564,8 +565,8 @@ public void run() { } } - private void flush(final DateTime now, final BarrageSubscriptionPerformanceLogger logger, final Histogram hist, - final String statType) throws IOException { + private void flush(final Instant now, final BarrageSubscriptionPerformanceLogger logger, final Histogram hist, + final String statType) throws IOException { if (hist.getTotalCount() == 0) { return; } diff --git a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/BarrageUtil.java b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/BarrageUtil.java index 6790214d388..49213c056dd 100755 --- a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/BarrageUtil.java +++ b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/util/BarrageUtil.java @@ -33,7 +33,6 @@ import io.deephaven.proto.flight.util.MessageHelper; import io.deephaven.proto.flight.util.SchemaHelper; import io.deephaven.proto.util.Exceptions; -import io.deephaven.time.DateTime; import io.deephaven.api.util.NameValidator; import io.deephaven.engine.util.ColumnFormatting; import io.deephaven.engine.util.config.MutableInputTable; @@ -112,7 +111,7 @@ public class BarrageUtil { BigDecimal.class, BigInteger.class, String.class, - DateTime.class, + Instant.class, Boolean.class)); public static ByteString schemaBytesFromTable(@NotNull final Table table) { @@ -312,7 +311,7 @@ private static Class getDefaultType(final ArrowType arrowType, final Converte final TimeUnit timestampUnit = timestampType.getUnit(); if (tz == null || "UTC".equals(tz)) { if (maybeConvertForTimeUnit(timestampUnit, result, i)) { - return DateTime.class; + return Instant.class; } } throw Exceptions.statusRuntimeException(Code.INVALID_ARGUMENT, exMsg + @@ -342,7 +341,7 @@ public static class ConvertedArrowSchema { public final int nCols; public TableDefinition tableDef; // a multiplicative factor to apply when reading; useful for eg converting arrow timestamp time units - // to the expected nanos value for DateTime. + // to the expected nanos value for Instant. public int[] conversionFactors; public Map attributes; @@ -573,7 +572,7 @@ private static ArrowType arrowTypeFor(Class type) { || type == BigInteger.class) { return Types.MinorType.VARBINARY.getType(); } - if (type == DateTime.class || type == Instant.class || type == ZonedDateTime.class) { + if (type == Instant.class || type == ZonedDateTime.class) { return NANO_SINCE_EPOCH_TYPE; } diff --git a/extensions/barrage/src/test/java/io/deephaven/extensions/barrage/chunk/BarrageColumnRoundTripTest.java b/extensions/barrage/src/test/java/io/deephaven/extensions/barrage/chunk/BarrageColumnRoundTripTest.java index 76f28f8bd1e..986d928b52d 100644 --- a/extensions/barrage/src/test/java/io/deephaven/extensions/barrage/chunk/BarrageColumnRoundTripTest.java +++ b/extensions/barrage/src/test/java/io/deephaven/extensions/barrage/chunk/BarrageColumnRoundTripTest.java @@ -24,7 +24,6 @@ import io.deephaven.chunk.WritableObjectChunk; import io.deephaven.chunk.WritableShortChunk; import io.deephaven.extensions.barrage.util.BarrageProtoUtil; -import io.deephaven.time.DateTime; import io.deephaven.util.BooleanUtils; import io.deephaven.util.QueryConstants; import io.deephaven.util.SafeCloseable; @@ -264,18 +263,6 @@ public void testDoubleChunkSerialization() throws IOException { } } - public void testDateTimeChunkSerialization() throws IOException { - final Random random = new Random(0); - for (final BarrageSubscriptionOptions opts : options) { - testRoundTripSerialization(opts, DateTime.class, (utO) -> { - final WritableObjectChunk chunk = utO.asWritableObjectChunk(); - for (int i = 0; i < chunk.size(); ++i) { - chunk.set(i, i % 7 == 0 ? null : new DateTime(random.nextLong())); - } - }, new ObjectIdentityValidator<>()); - } - } - public void testInstantChunkSerialization() throws IOException { final Random random = new Random(0); for (final BarrageSubscriptionOptions opts : options) { diff --git a/extensions/csv/src/test/java/io/deephaven/csv/DeephavenCsvTest.java b/extensions/csv/src/test/java/io/deephaven/csv/DeephavenCsvTest.java index 9a370958965..05aec1ceb80 100644 --- a/extensions/csv/src/test/java/io/deephaven/csv/DeephavenCsvTest.java +++ b/extensions/csv/src/test/java/io/deephaven/csv/DeephavenCsvTest.java @@ -6,26 +6,24 @@ import io.deephaven.csv.util.CsvReaderException; import io.deephaven.engine.table.Table; import io.deephaven.engine.util.TableTools; -import io.deephaven.time.DateTime; import org.apache.commons.io.input.ReaderInputStream; -import org.assertj.core.api.Assertions; import org.junit.Test; import java.io.StringReader; import java.nio.charset.StandardCharsets; +import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneId; import static io.deephaven.engine.testutil.TstUtils.assertTableEquals; public class DeephavenCsvTest { + @Test - public void dateTimeCustomTimezone() throws CsvReaderException { + public void instantCustomTimezone() throws CsvReaderException { final ZoneId nycId = ZoneId.of("America/New_York"); - final DateTime DATETIME_A = - DateTime.of(LocalDateTime.of(2019, 5, 2, 19, 33, 12, 123456789).atZone(nycId).toInstant()); - final DateTime DATETIME_B = - DateTime.of(LocalDateTime.of(2017, 2, 2, 3, 18, 55, 987654321).atZone(nycId).toInstant()); + Instant INSTANT_A = LocalDateTime.of(2019, 5, 2, 19, 33, 12, 123456789).atZone(nycId).toInstant(); + Instant INSTANT_B = LocalDateTime.of(2017, 2, 2, 3, 18, 55, 987654321).atZone(nycId).toInstant(); final String input = "" + "Timestamp\n" + @@ -33,8 +31,7 @@ public void dateTimeCustomTimezone() throws CsvReaderException { "\n" + "2017-02-02T03:18:55.987654321 NY\n"; - final Table expected = TableTools.newTable( - TableTools.col("Timestamp", DATETIME_A, null, DATETIME_B)); + final Table expected = TableTools.newTable(TableTools.col("Timestamp", INSTANT_A, null, INSTANT_B)); invokeTest(input, CsvTools.builder().build(), expected); } diff --git a/extensions/csv/src/test/java/io/deephaven/csv/TestCsvTools.java b/extensions/csv/src/test/java/io/deephaven/csv/TestCsvTools.java index 33441ef4d67..78e184f7232 100644 --- a/extensions/csv/src/test/java/io/deephaven/csv/TestCsvTools.java +++ b/extensions/csv/src/test/java/io/deephaven/csv/TestCsvTools.java @@ -9,10 +9,9 @@ import io.deephaven.engine.table.TableDefinition; import io.deephaven.engine.table.impl.InMemoryTable; import io.deephaven.engine.testutil.TstUtils; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.TableTools; import io.deephaven.test.types.OutOfBandTest; -import io.deephaven.time.TimeZoneAliases; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import org.apache.commons.compress.archivers.tar.TarArchiveEntry; import org.apache.commons.compress.archivers.tar.TarArchiveOutputStream; @@ -27,6 +26,7 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.nio.file.Files; +import java.time.Instant; import java.time.ZoneId; import java.util.Scanner; import java.util.regex.Pattern; @@ -211,8 +211,9 @@ public void testWriteCsv() throws Exception { new String[] {"key11", "key11", "key21", "key21", "key22"}, new int[] {1, 2, 2, NULL_INT, 3}, new double[] {2.342, 0.0932, Double.NaN, NULL_DOUBLE, 3}, - new DateTime[] {new DateTime(100), new DateTime(10000), null, - new DateTime(100000), new DateTime(1000000)} + new Instant[] { + DateTimeUtils.epochNanosToInstant(100), DateTimeUtils.epochNanosToInstant(10000), null, + DateTimeUtils.epochNanosToInstant(100000), DateTimeUtils.epochNanosToInstant(1000000)} }); long numRows = tableToTest.size(); diff --git a/extensions/jdbc/src/main/java/io/deephaven/jdbc/JdbcTypeMapper.java b/extensions/jdbc/src/main/java/io/deephaven/jdbc/JdbcTypeMapper.java index 3809780c4ca..36d01c7f1ca 100644 --- a/extensions/jdbc/src/main/java/io/deephaven/jdbc/JdbcTypeMapper.java +++ b/extensions/jdbc/src/main/java/io/deephaven/jdbc/JdbcTypeMapper.java @@ -21,13 +21,14 @@ import io.deephaven.chunk.WritableShortChunk; import io.deephaven.chunk.attributes.Values; import io.deephaven.jdbc.util.ArrayParser; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import org.jetbrains.annotations.NotNull; import java.math.BigDecimal; import java.sql.*; import java.sql.Date; +import java.time.Instant; import java.time.LocalDate; import java.time.LocalTime; import java.util.*; @@ -115,7 +116,7 @@ public boolean isStrict() { * *

      * Note that more than one type mapping is possible for each SQL type - a DATE might be converted to either a - * LocalDate or a DateTime for example. And the same is true for the target type - a DateTime might be sourced from + * LocalDate oran Instant for example. And the same is true for the target type -an Instant might be sourced from * a SQL DATE or TIMESTAMP value. *

      * @@ -128,11 +129,11 @@ public boolean isStrict() { *

      * *

      - * DateTime values have a different problem - SQL and Deephaven DateTime values are conceptually different. + * Instant values have a different problem - SQL and Deephaven Instant values are conceptually different. * TIMESTAMP columns in SQL databases typically do not store timezone information. They are equivalent to a java - * LocalDateTime in this respect. However, Deephaven usually stores timestamps in DateTime columns, internally + * LocalDateTime in this respect. However, Deephaven usually stores timestamps in Instant columns, internally * represented as nanos-since-the-epoch. This means JDBC timestamps usually require the "context" of a timezone in - * order to be converted to a DateTime properly. Writing a DateTime to a JDBC datasource (via the bind mechanism) + * order to be converted toan Instant properly. Writingan Instant to a JDBC datasource (via the bind mechanism) * has the same issue. Unfortunately this time-zone context issue applies even when mapping JDBC DATETIME values * "directly" to LocalDate, because most JDBC drivers require all Date related values to pass through a * java.sql.Date object, which is also epoch-based, not "local". The latest JDBC standard deals with this problem @@ -713,59 +714,60 @@ public void bindFromChunk( } } - public static class DateDateTimeDataTypeMapping extends DataTypeMapping { - DateDateTimeDataTypeMapping() { - super(Types.DATE, DateTime.class, java.sql.Date.class); + public static class DateInstantDataTypeMapping extends DataTypeMapping { + DateInstantDataTypeMapping() { + super(Types.DATE, Instant.class, java.sql.Date.class); } @Override public void bindToChunk( WritableChunk destChunk, int destOffset, ResultSet resultSet, int columnIndex, Context context) throws SQLException { - final WritableObjectChunk objectChunk = destChunk.asWritableObjectChunk(); + final WritableObjectChunk objectChunk = destChunk.asWritableObjectChunk(); final java.sql.Date date = resultSet.getDate(columnIndex, context.getSourceCalendar()); - objectChunk.set(destOffset, date == null ? null : new DateTime(date.getTime() * MILLIS_TO_NANOS)); + objectChunk.set(destOffset, date == null ? null : DateTimeUtils.epochNanosToInstant( + date.getTime() * MILLIS_TO_NANOS)); } @Override public void bindFromChunk(Chunk srcChunk, int srcOffset, PreparedStatement stmt, int parameterIndex, Context context) throws SQLException { - final ObjectChunk objectChunk = srcChunk.asObjectChunk(); - final DateTime value = objectChunk.get(srcOffset); + final ObjectChunk objectChunk = srcChunk.asObjectChunk(); + final Instant value = objectChunk.get(srcOffset); if (value == null) { stmt.setNull(parameterIndex, sqlType); } else { - stmt.setDate(parameterIndex, new Date(value.getMillis()), context.getSourceCalendar()); + stmt.setDate(parameterIndex, new Date(value.toEpochMilli()), context.getSourceCalendar()); } } } - public static class TimestampDateTimeDataTypeMapping extends DataTypeMapping { - TimestampDateTimeDataTypeMapping(int sqlType) { - super(sqlType, DateTime.class, java.sql.Timestamp.class); + public static class TimestampInstantDataTypeMapping extends DataTypeMapping { + TimestampInstantDataTypeMapping(int sqlType) { + super(sqlType, Instant.class, java.sql.Timestamp.class); } @Override public void bindToChunk( WritableChunk destChunk, int destOffset, ResultSet resultSet, int columnIndex, Context context) throws SQLException { - final WritableObjectChunk objectChunk = destChunk.asWritableObjectChunk(); + final WritableObjectChunk objectChunk = destChunk.asWritableObjectChunk(); final java.sql.Timestamp timestamp = resultSet.getTimestamp(columnIndex, context.getSourceCalendar()); - objectChunk.set(destOffset, timestamp == null ? null - : new DateTime(timestamp.getTime() * MILLIS_TO_NANOS + timestamp.getNanos() % 1_000_000)); + objectChunk.set(destOffset, timestamp == null ? null : DateTimeUtils.epochNanosToInstant( + timestamp.getTime() * MILLIS_TO_NANOS + timestamp.getNanos() % 1_000_000)); } @Override public void bindFromChunk( Chunk srcChunk, int srcOffset, PreparedStatement stmt, int parameterIndex, Context context) throws SQLException { - final ObjectChunk objectChunk = srcChunk.asObjectChunk(); - final DateTime value = objectChunk.get(srcOffset); + final ObjectChunk objectChunk = srcChunk.asObjectChunk(); + final Instant value = objectChunk.get(srcOffset); if (value == null) { stmt.setNull(parameterIndex, sqlType); } else { - final Timestamp ts = new Timestamp(value.getMillis()); - ts.setNanos((int) (value.getNanos() % 1_000_000_000L)); + final Timestamp ts = new Timestamp(value.toEpochMilli()); + ts.setNanos((int) (DateTimeUtils.epochNanos(value) % 1_000_000_000L)); stmt.setTimestamp(parameterIndex, ts, context.getSourceCalendar()); } } @@ -1002,21 +1004,21 @@ MappingCollection build() { Map.entry(Types.BLOB, new MappingCollection(byte[].class, new ByteArrayDataTypeMapping(Types.BLOB))), Map.entry(Types.DATE, MappingCollection.builder(LocalDate.class) .mapping(LocalDate.class, new DateLocalDateDataTypeMapping()) - .mapping(DateTime.class, new DateDateTimeDataTypeMapping()) + .mapping(Instant.class, new DateInstantDataTypeMapping()) // provides the option to treat a DATE column as a String .mapping(String.class, new StringDataTypeMapping(Types.DATE)) .build()), // TODO: map to LocalDateTime? - Map.entry(Types.TIMESTAMP, MappingCollection.builder(DateTime.class) - .mapping(DateTime.class, new TimestampDateTimeDataTypeMapping(Types.TIMESTAMP)) + Map.entry(Types.TIMESTAMP, MappingCollection.builder(Instant.class) + .mapping(Instant.class, new TimestampInstantDataTypeMapping(Types.TIMESTAMP)) // provides the option to treat a TIMESTAMP column as a String .mapping(String.class, new StringDataTypeMapping(Types.TIMESTAMP)) .build()), // TODO: map to OffsetDateTime? - Map.entry(Types.TIMESTAMP_WITH_TIMEZONE, MappingCollection.builder(DateTime.class) - .mapping(DateTime.class, new TimestampDateTimeDataTypeMapping(Types.TIMESTAMP_WITH_TIMEZONE)) + Map.entry(Types.TIMESTAMP_WITH_TIMEZONE, MappingCollection.builder(Instant.class) + .mapping(Instant.class, new TimestampInstantDataTypeMapping(Types.TIMESTAMP_WITH_TIMEZONE)) // provides the option to treat a TIMESTAMP_WITH_TIMEZONE column as a String .mapping(String.class, new StringDataTypeMapping(Types.TIMESTAMP_WITH_TIMEZONE)) .build()), @@ -1051,8 +1053,8 @@ static class SqlServerTypes { try { // special DATETIMEOFFSET type for SQL Server final Map sqlServerMap = new HashMap<>(); - sqlServerMap.put(SqlServerTypes.DATETIMEOFFSET, MappingCollection.builder(DateTime.class) - .mapping(DateTime.class, new TimestampDateTimeDataTypeMapping(SqlServerTypes.DATETIMEOFFSET)) + sqlServerMap.put(SqlServerTypes.DATETIMEOFFSET, MappingCollection.builder(Instant.class) + .mapping(Instant.class, new TimestampInstantDataTypeMapping(SqlServerTypes.DATETIMEOFFSET)) .build()); driverSpecificDataTypeMappings.put( diff --git a/extensions/jdbc/src/test/java/io/deephaven/jdbc/JdbcToTableAdapterTest.java b/extensions/jdbc/src/test/java/io/deephaven/jdbc/JdbcToTableAdapterTest.java index 400fd5ccba9..32c3052952c 100644 --- a/extensions/jdbc/src/test/java/io/deephaven/jdbc/JdbcToTableAdapterTest.java +++ b/extensions/jdbc/src/test/java/io/deephaven/jdbc/JdbcToTableAdapterTest.java @@ -6,9 +6,9 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.Table; import io.deephaven.engine.util.TableTools; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeFormatter; import io.deephaven.time.DateTimeFormatters; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import io.deephaven.util.function.ThrowingRunnable; import org.junit.After; @@ -22,10 +22,7 @@ import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; -import java.time.LocalDate; -import java.time.LocalTime; -import java.time.ZoneId; -import java.time.ZoneOffset; +import java.time.*; import java.util.InputMismatchException; import java.util.Set; import java.util.TimeZone; @@ -68,7 +65,7 @@ public void setUp() throws SQLException { ", " + (ii % 256 == 3 ? "NULL" : ii - numRows / 2) + // long ", " + (ii % 256 == 4 ? "NULL" : (ii - numRows / 2) / 256.0) + // float ", " + (ii % 256 == 5 ? "NULL" : "'" + ii + "'") + // string - ", " + (ii % 256 == 6 ? "NULL" : "'" + dtf.format(new DateTime(ii * 100_000L), TZ_UTC) + "Z'") + // date + ", " + (ii % 256 == 6 ? "NULL" : "'" + dtf.format(DateTimeUtils.epochNanosToInstant(ii * 100_000L), TZ_UTC) + "Z'") + // date ");"); } } @@ -189,7 +186,7 @@ public void testDefaultResultTypes() throws SQLException { final ColumnSource big_int_type = result.getColumnSource("big_int_type"); final ColumnSource decimal_type = result.getColumnSource("decimal_type"); final ColumnSource string_type = result.getColumnSource("string_type"); - final ColumnSource datetime_type = result.getColumnSource("datetime_type"); + final ColumnSource instant_type = result.getColumnSource("instant_type"); // check expected column sources types Assert.assertEquals(Boolean.class, bool_type.getType()); @@ -199,7 +196,7 @@ public void testDefaultResultTypes() throws SQLException { Assert.assertEquals(long.class, big_int_type.getType()); Assert.assertEquals(double.class, decimal_type.getType()); Assert.assertEquals(String.class, string_type.getType()); - Assert.assertEquals(DateTime.class, datetime_type.getType()); + Assert.assertEquals(Instant.class, instant_type.getType()); // Check table values for (long ii = 0; ii < result.size(); ++ii) { @@ -249,11 +246,11 @@ public void testDefaultResultTypes() throws SQLException { } if (ii % 256 == 6) { - Assert.assertNull(datetime_type.get(ii)); + Assert.assertNull(instant_type.get(ii)); } else { - final DateTime dt = datetime_type.get(ii); + final Instant dt = instant_type.get(ii); // is only accurate - Assert.assertEquals(ii * 100_000L, dt.getMillis()); + Assert.assertEquals(ii * 100_000L, dt.toEpochMilli()); } } } @@ -569,14 +566,14 @@ public void testDateTypeMapping() throws SQLException { Assert.assertEquals(expectedDate, ldcs.get(0)); Assert.assertNull(ldcs.get(1)); - // Convert to DateTime - options.columnTargetType("DateCol", DateTime.class); + // Convert to Instant + options.columnTargetType("DateCol", Instant.class); options.sourceTimeZone(TimeZone.getTimeZone("UTC")); result = JdbcToTableAdapter.readJdbc(stmt.executeQuery("SELECT * FROM SingleTestTable"), options); - ColumnSource dtcs = result.getColumnSource("DateCol"); + ColumnSource dtcs = result.getColumnSource("DateCol"); final long epochTm = expectedDate.atStartOfDay().toEpochSecond(ZoneOffset.UTC); - Assert.assertEquals(epochTm, dtcs.get(0).getMillis() / 1000); + Assert.assertEquals(epochTm, dtcs.get(0).toEpochMilli() / 1000); Assert.assertNull(dtcs.get(1)); } diff --git a/extensions/kafka/src/main/java/io/deephaven/kafka/KafkaTools.java b/extensions/kafka/src/main/java/io/deephaven/kafka/KafkaTools.java index 607b9b86a0d..f398aa1ee3f 100644 --- a/extensions/kafka/src/main/java/io/deephaven/kafka/KafkaTools.java +++ b/extensions/kafka/src/main/java/io/deephaven/kafka/KafkaTools.java @@ -35,7 +35,6 @@ import io.deephaven.kafka.KafkaTools.TableType.Ring; import io.deephaven.kafka.KafkaTools.TableType.Stream; import io.deephaven.kafka.KafkaTools.TableType.Visitor; -import io.deephaven.time.DateTime; import io.deephaven.engine.liveness.LivenessScope; import io.deephaven.engine.liveness.LivenessScopeStack; import io.deephaven.engine.table.impl.StreamTableTools; @@ -72,6 +71,7 @@ import java.io.IOException; import java.io.Serializable; import java.math.BigDecimal; +import java.time.Instant; import java.util.*; import java.util.concurrent.ExecutionException; import java.util.function.*; @@ -238,7 +238,7 @@ private static SchemaBuilder.FieldAssembler addFieldForColDef( fass = base.doubleType().noDefault(); } else if (type == String.class) { fass = base.stringType().noDefault(); - } else if (type == DateTime.class) { + } else if (type == Instant.class) { fass = base.longBuilder().prop(logicalTypeName, "timestamp-micros").endLong().noDefault(); } else if (type == BigDecimal.class) { final BigDecimalUtils.PropertyNames propertyNames = @@ -374,7 +374,7 @@ private static void pushColumnTypesFromAvroField( final LogicalType logicalType = getEffectiveLogicalType(fieldName, elementTypeSchema); if (LogicalTypes.timestampMicros().equals(logicalType) || LogicalTypes.timestampMillis().equals(logicalType)) { - columnsOut.add(ColumnDefinition.fromGenericType(mappedNameForColumn, DateTime[].class)); + columnsOut.add(ColumnDefinition.fromGenericType(mappedNameForColumn, Instant[].class)); } else { columnsOut.add(ColumnDefinition.fromGenericType(mappedNameForColumn, long[].class)); } @@ -2010,7 +2010,7 @@ private static int getCommonCols( consumerProperties, TIMESTAMP_COLUMN_NAME_PROPERTY, TIMESTAMP_COLUMN_NAME_DEFAULT, - (final String colName) -> ColumnDefinition.fromGenericType(colName, DateTime.class)); + (final String colName) -> ColumnDefinition.fromGenericType(colName, Instant.class)); return c; } diff --git a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/GenericRecordChunkAdapter.java b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/GenericRecordChunkAdapter.java index 5b87738413f..f0efcb4f71d 100644 --- a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/GenericRecordChunkAdapter.java +++ b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/GenericRecordChunkAdapter.java @@ -4,15 +4,14 @@ package io.deephaven.kafka.ingest; import io.deephaven.engine.table.TableDefinition; -import io.deephaven.time.DateTime; import io.deephaven.chunk.*; import org.apache.avro.LogicalType; import org.apache.avro.LogicalTypes; import org.apache.avro.Schema; -import org.apache.avro.generic.GenericContainer; import org.apache.avro.generic.GenericRecord; import java.math.BigDecimal; +import java.time.Instant; import java.util.*; import java.util.function.IntFunction; import java.util.regex.Pattern; @@ -98,11 +97,11 @@ private static FieldCopier makeFieldCopier( case Int: return new GenericRecordIntFieldCopier(fieldPathStr, separator, schema); case Long: - if (dataType == DateTime.class) { + if (dataType == Instant.class) { final LogicalType logicalType = getLogicalType(schema, fieldPathStr, separator); if (logicalType == null) { throw new IllegalArgumentException( - "Can not map field without a logical type to DateTime: field=" + fieldPathStr); + "Can not map field without a logical type to Instant: field=" + fieldPathStr); } if (logicalType instanceof LogicalTypes.TimestampMillis) { return new GenericRecordLongFieldCopierWithMultiplier(fieldPathStr, separator, schema, @@ -112,7 +111,7 @@ private static FieldCopier makeFieldCopier( return new GenericRecordLongFieldCopierWithMultiplier(fieldPathStr, separator, schema, 1000L); } throw new IllegalArgumentException( - "Can not map field with unknown logical type to DateTime: field=" + fieldPathStr + "Can not map field with unknown logical type to Instant: field=" + fieldPathStr + ", logical type=" + logicalType); } @@ -140,21 +139,21 @@ private static FieldCopier makeFieldCopier( "field=" + fieldPathStr + ", logical type=" + logicalType); } if (dataType.isArray()) { - if (DateTime.class.isAssignableFrom(componentType)) { + if (Instant.class.isAssignableFrom(componentType)) { final LogicalType logicalType = getArrayTypeLogicalType(schema, fieldPathStr, separator); if (logicalType == null) { throw new IllegalArgumentException( - "Can not map field without a logical type to DateTime[]: field=" + fieldPathStr); + "Can not map field without a logical type to Instant[]: field=" + fieldPathStr); } if (logicalType instanceof LogicalTypes.TimestampMillis) { - return new GenericRecordDateTimeArrayFieldCopier(fieldPathStr, separator, schema, + return new GenericRecordInstantArrayFieldCopier(fieldPathStr, separator, schema, 1000_000L); } if (logicalType instanceof LogicalTypes.TimestampMicros) { - return new GenericRecordDateTimeArrayFieldCopier(fieldPathStr, separator, schema, 1000L); + return new GenericRecordInstantArrayFieldCopier(fieldPathStr, separator, schema, 1000L); } throw new IllegalArgumentException( - "Can not map field with unknown logical type to DateTime[]: field=" + fieldPathStr + "Can not map field with unknown logical type to Instant[]: field=" + fieldPathStr + ", logical type=" + logicalType); } diff --git a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/GenericRecordDateTimeArrayFieldCopier.java b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/GenericRecordInstantArrayFieldCopier.java similarity index 85% rename from extensions/kafka/src/main/java/io/deephaven/kafka/ingest/GenericRecordDateTimeArrayFieldCopier.java rename to extensions/kafka/src/main/java/io/deephaven/kafka/ingest/GenericRecordInstantArrayFieldCopier.java index 8c8089a99e9..0b679ccb0c9 100644 --- a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/GenericRecordDateTimeArrayFieldCopier.java +++ b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/GenericRecordInstantArrayFieldCopier.java @@ -7,7 +7,6 @@ import io.deephaven.chunk.WritableChunk; import io.deephaven.chunk.WritableObjectChunk; import io.deephaven.chunk.attributes.Values; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import org.apache.avro.Schema; import org.apache.avro.generic.GenericArray; @@ -16,9 +15,9 @@ import java.time.Instant; import java.util.regex.Pattern; -public class GenericRecordDateTimeArrayFieldCopier extends GenericRecordFieldCopier { +public class GenericRecordInstantArrayFieldCopier extends GenericRecordFieldCopier { private final long multiplier; - public GenericRecordDateTimeArrayFieldCopier(final String fieldPathStr, final Pattern separator, final Schema schema, final long multiplier) { + public GenericRecordInstantArrayFieldCopier(final String fieldPathStr, final Pattern separator, final Schema schema, final long multiplier) { super(fieldPathStr, separator, schema); this.multiplier = multiplier; } @@ -28,7 +27,7 @@ private static Instant[] convertArray(final GenericArray ga, final long multi if (gaSize == 0) { return DateTimeUtils.ZERO_LENGTH_INSTANT_ARRAY; } - final Instant[] out = new Instant[][ga.size()]; + final Instant[] out = new Instant[ga.size()]; int i = 0; for (Object o : ga) { out[i] = DateTimeUtils.epochNanosToInstant(multiplier * (long) o); diff --git a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeChunkAdapter.java b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeChunkAdapter.java index 7ffd41e0d63..948fa416775 100644 --- a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeChunkAdapter.java +++ b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeChunkAdapter.java @@ -5,9 +5,9 @@ import io.deephaven.UncheckedDeephavenException; import io.deephaven.engine.table.TableDefinition; -import io.deephaven.time.DateTime; import io.deephaven.chunk.ChunkType; +import java.time.Instant; import java.util.Map; import java.util.function.IntFunction; @@ -54,8 +54,8 @@ private static FieldCopier makeFieldCopier( case Int: return new JsonNodeIntFieldCopier(fieldName); case Long: - if (dataType == DateTime.class) { - return new JsonNodeDateTimeFieldCopier(fieldName); + if (dataType == Instant.class) { + return new JsonNodeInstantFieldCopier(fieldName); } return new JsonNodeLongFieldCopier(fieldName); case Float: diff --git a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeDateTimeFieldCopier.java b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeInstantFieldCopier.java similarity index 77% rename from extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeDateTimeFieldCopier.java rename to extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeInstantFieldCopier.java index 6d393032bd4..aabcb904dc4 100644 --- a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeDateTimeFieldCopier.java +++ b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeInstantFieldCopier.java @@ -7,13 +7,14 @@ import com.fasterxml.jackson.databind.JsonNode; import io.deephaven.chunk.*; import io.deephaven.chunk.attributes.Values; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; -public class JsonNodeDateTimeFieldCopier implements FieldCopier { +import java.time.Instant; + +public class JsonNodeInstantFieldCopier implements FieldCopier { private final JsonPointer fieldPointer; - public JsonNodeDateTimeFieldCopier(final String fieldPointerStr) { + public JsonNodeInstantFieldCopier(final String fieldPointerStr) { this.fieldPointer = JsonPointer.compile(fieldPointerStr); } @@ -27,8 +28,8 @@ public void copyField( final WritableLongChunk output = publisherChunk.asWritableLongChunk(); for (int ii = 0; ii < length; ++ii) { final JsonNode node = (JsonNode) inputChunk.get(ii + sourceOffset); - final DateTime dateTime = JsonNodeUtil.getDateTime(node, fieldPointer, true, true); - output.set(ii + destOffset, DateTimeUtils.epochNanos(dateTime)); + final Instant instant = JsonNodeUtil.getInstant(node, fieldPointer, true, true); + output.set(ii + destOffset, DateTimeUtils.epochNanos(instant)); } } } diff --git a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeUtil.java b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeUtil.java index 75b77978357..576b525b757 100644 --- a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeUtil.java +++ b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeUtil.java @@ -10,7 +10,6 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.JsonNodeFactory; import io.deephaven.UncheckedDeephavenException; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import org.jetbrains.annotations.NotNull; @@ -18,6 +17,7 @@ import java.math.BigDecimal; import java.math.BigInteger; +import java.time.Instant; public class JsonNodeUtil { private static final ObjectMapper objectMapper = new ObjectMapper() @@ -690,47 +690,47 @@ public static Object getValue(final JsonNode node) { } /** - * Returns a {@link DateTime} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed + * Returnsan {@link Instant} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed * using {@link DateTimeUtils} autoEpochToTime. If the value in the JSON record is not numeric, this method will - * attempt to parse it as a Deephaven DateTime string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ). + * attempt to parse it as a Deephaven Instant string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ). * * @param node The {@link JsonNode} from which to retrieve the value. * @param key The String key of the value to retrieve. - * @return A {@link DateTime} + * @returnan {@link Instant} */ @Nullable - public static DateTime getDateTime(@NotNull final JsonNode node, @NotNull final String key, + public static Instant getInstant(@NotNull final JsonNode node, @NotNull final String key, final boolean allowMissingKeys, final boolean allowNullValues) { final JsonNode tmpNode = checkAllowMissingOrNull(node, key, allowMissingKeys, allowNullValues); - return getDateTime(tmpNode); + return getInstant(tmpNode); } /** - * Returns a {@link DateTime} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed + * Returnsan {@link Instant} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed * using {@link DateTimeUtils} autoEpochToTime. If the value in the JSON record is not numeric, this method will - * attempt to parse it as a Deephaven DateTime string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ). + * attempt to parse it as a Deephaven Instant string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ). * * @param node The {@link JsonNode} from which to retrieve the value. * @param ptr A JsonPointer to the node for the value to retrieve. - * @return A {@link DateTime} + * @returnan {@link Instant} */ @Nullable - public static DateTime getDateTime(@NotNull final JsonNode node, @NotNull final JsonPointer ptr, + public static Instant getInstant(@NotNull final JsonNode node, @NotNull final JsonPointer ptr, final boolean allowMissingKeys, final boolean allowNullValues) { final JsonNode tmpNode = checkAllowMissingOrNull(node, ptr, allowMissingKeys, allowNullValues); - return getDateTime(tmpNode); + return getInstant(tmpNode); } /** - * Returns a {@link DateTime} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed + * Returnsan {@link Instant} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed * using {@link DateTimeUtils} autoEpochToTime. If the value in the JSON record is not numeric, this method will - * attempt to parse it as a Deephaven DateTime string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ). + * attempt to parse it as a Deephaven Instant string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ). * * @param node The {@link JsonNode} from which to retrieve the value. - * @return A {@link DateTime} + * @returnan {@link Instant} */ @Nullable - public static DateTime getDateTime(final JsonNode node) { + public static Instant getInstant(final JsonNode node) { if (isNullOrMissingField(node)) { return null; } @@ -738,9 +738,9 @@ public static DateTime getDateTime(final JsonNode node) { // ISO Zoned String, millis (small number), or nanos (large number) if (node.isLong() || node.isInt()) { final long value = node.asLong(); - return DateTimeUtils.epochAutoToDateTime(value); + return DateTimeUtils.epochAutoToInstant(value); } else { - return DateTimeUtils.parseDateTime(node.asText()); + return DateTimeUtils.parseInstant(node.asText()); } } } diff --git a/extensions/kafka/src/main/java/io/deephaven/kafka/publish/GenericRecordKeyOrValueSerializer.java b/extensions/kafka/src/main/java/io/deephaven/kafka/publish/GenericRecordKeyOrValueSerializer.java index 1274bb73e6c..4b3cde7eb0e 100644 --- a/extensions/kafka/src/main/java/io/deephaven/kafka/publish/GenericRecordKeyOrValueSerializer.java +++ b/extensions/kafka/src/main/java/io/deephaven/kafka/publish/GenericRecordKeyOrValueSerializer.java @@ -9,11 +9,11 @@ import io.deephaven.engine.table.Table; import io.deephaven.engine.util.BigDecimalUtils; import io.deephaven.kafka.KafkaSchemaUtils; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.string.StringUtils; import io.deephaven.engine.table.ColumnSource; import io.deephaven.chunk.*; import io.deephaven.engine.rowset.RowSequence; +import io.deephaven.time.DateTimeUtils; import io.deephaven.util.QueryConstants; import io.deephaven.util.SafeCloseable; import io.deephaven.util.type.TypeUtils; @@ -28,6 +28,7 @@ import java.math.MathContext; import java.math.RoundingMode; import java.nio.ByteBuffer; +import java.time.Instant; import java.util.*; import java.util.concurrent.TimeUnit; @@ -288,22 +289,22 @@ private static GenericRecordFieldProcessor makeObjectFieldProcessor( (final int ii, final ObjectChunk inputChunk) -> inputChunk.get(ii)); } - private static GenericRecordFieldProcessor makeDateTimeToMillisFieldProcessor( + private static GenericRecordFieldProcessor makeInstantToMillisFieldProcessor( final String fieldName, final ColumnSource chunkSource) { return makeGenericFieldProcessor( fieldName, chunkSource, - (final int ii, final ObjectChunk inputChunk) -> ((DateTime) inputChunk.get(ii)).getMillis()); + (final int ii, final ObjectChunk inputChunk) -> ((Instant) inputChunk.get(ii)).toEpochMilli()); } - private static GenericRecordFieldProcessor makeDateTimeToMicrosFieldProcessor( + private static GenericRecordFieldProcessor makeInstantToMicrosFieldProcessor( final String fieldName, final ColumnSource chunkSource) { return makeGenericFieldProcessor( fieldName, chunkSource, - (final int ii, final ObjectChunk inputChunk) -> ((DateTime) inputChunk.get(ii)).getMicros()); + (final int ii, final ObjectChunk inputChunk) -> DateTimeUtils.epochMicros((Instant) inputChunk.get(ii))); } private static BigInteger toBigIntegerAtPrecisionAndScale( @@ -380,7 +381,7 @@ private GenericRecordFieldProcessor getLongProcessor( final Class columnType, final ColumnSource src) { final Schema fieldSchema = field.schema(); - if (columnType == DateTime.class && fieldSchema.getType() == Schema.Type.LONG) { + if (columnType == Instant.class && fieldSchema.getType() == Schema.Type.LONG) { final LogicalType logicalType = fieldSchema.getLogicalType(); if (LogicalTypes.timestampMicros().equals(logicalType)) { return makeLongFieldProcessorWithInverseFactor(fieldName, src, 1000); @@ -447,17 +448,17 @@ private GenericRecordFieldProcessor getFieldProcessorForType( if (type == double.class) { return makeDoubleFieldProcessor(fieldName, src); } - if (type == DateTime.class) { + if (type == Instant.class) { final String logicalType = getLogicalType(fieldName, field); if (logicalType == null) { throw new IllegalArgumentException( "field " + fieldName + " for column " + columnName + " has no logical type."); } if (logicalType.equals("timestamp-millis")) { - return makeDateTimeToMillisFieldProcessor(fieldName, src); + return makeInstantToMillisFieldProcessor(fieldName, src); } if (logicalType.equals("timestamp-micros")) { - return makeDateTimeToMicrosFieldProcessor(fieldName, src); + return makeInstantToMicrosFieldProcessor(fieldName, src); } throw new IllegalArgumentException("field " + fieldName + " for column " + columnName + " has unrecognized logical type " + logicalType); diff --git a/extensions/kafka/src/test/java/io/deephaven/kafka/ingest/TestAvroAdapter.java b/extensions/kafka/src/test/java/io/deephaven/kafka/ingest/TestAvroAdapter.java index 6d52cc6c081..fce56f3b70d 100644 --- a/extensions/kafka/src/test/java/io/deephaven/kafka/ingest/TestAvroAdapter.java +++ b/extensions/kafka/src/test/java/io/deephaven/kafka/ingest/TestAvroAdapter.java @@ -5,7 +5,6 @@ import io.deephaven.chunk.attributes.Values; import io.deephaven.engine.table.TableDefinition; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.chunk.*; import io.deephaven.util.BooleanUtils; @@ -20,6 +19,7 @@ import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; +import java.time.Instant; import java.util.Arrays; import java.util.HashMap; import java.util.Map; @@ -92,19 +92,19 @@ public void testTimestamp() throws IOException { final String[] names = new String[] {"last_name", "number", "truthiness", "timestamp", "timestampMicros", "timeMillis", "timeMicros"}; - final Class[] types = new Class[] {String.class, int.class, boolean.class, DateTime.class, DateTime.class, + final Class[] types = new Class[] {String.class, int.class, boolean.class, Instant.class, Instant.class, int.class, long.class}; final TableDefinition definition = TableDefinition.from(Arrays.asList(names), Arrays.asList(types)); - final DateTime dt1 = DateTimeUtils.parseDateTime("2021-08-23T12:00:00.123456789 NY"); - final DateTime dt2 = DateTimeUtils.parseDateTime("2021-08-23T13:00:00.500600700 NY"); + final Instant dt1 = DateTimeUtils.parseInstant("2021-08-23T12:00:00.123456789 NY"); + final Instant dt2 = DateTimeUtils.parseInstant("2021-08-23T13:00:00.500600700 NY"); final GenericData.Record genericRecord1 = new GenericData.Record(avroSchema); genericRecord1.put("last_name", "LN1"); genericRecord1.put("number", 32); genericRecord1.put("truthiness", false); - genericRecord1.put("timestamp", dt1.getMillis()); - genericRecord1.put("timestampMicros", dt1.getMicros()); + genericRecord1.put("timestamp", dt1.toEpochMilli()); + genericRecord1.put("timestampMicros", DateTimeUtils.epochMicros(dt1)); genericRecord1.put("timeMillis", 10000); genericRecord1.put("timeMicros", 100000L); @@ -112,8 +112,8 @@ public void testTimestamp() throws IOException { genericRecord2.put("last_name", null); genericRecord2.put("number", 64); genericRecord2.put("truthiness", true); - genericRecord2.put("timestamp", dt2.getMillis()); - genericRecord2.put("timestampMicros", dt2.getMicros()); + genericRecord2.put("timestamp", dt2.toEpochMilli()); + genericRecord2.put("timestampMicros", DateTimeUtils.epochMicros(dt2)); genericRecord2.put("timeMillis", 20000); genericRecord2.put("timeMicros", 200000L); @@ -165,16 +165,20 @@ public void testTimestamp() throws IOException { TestCase.assertEquals("LN1", output[0].asObjectChunk().get(0)); TestCase.assertEquals(32, output[1].asIntChunk().get(0)); TestCase.assertEquals(BooleanUtils.FALSE_BOOLEAN_AS_BYTE, output[2].asByteChunk().get(0)); - TestCase.assertEquals(DateTimeUtils.millisToNanos(dt1.getMillis()), output[3].asLongChunk().get(0)); - TestCase.assertEquals(DateTimeUtils.microsToNanos(dt1.getMicros()), output[4].asLongChunk().get(0)); + TestCase.assertEquals(DateTimeUtils.millisToNanos(DateTimeUtils.epochMillis(dt1)), + output[3].asLongChunk().get(0)); + TestCase.assertEquals(DateTimeUtils.microsToNanos(DateTimeUtils.epochMicros(dt1)), + output[4].asLongChunk().get(0)); TestCase.assertEquals(10000, output[5].asIntChunk().get(0)); TestCase.assertEquals(100000, output[6].asLongChunk().get(0)); TestCase.assertNull(output[0].asObjectChunk().get(1)); TestCase.assertEquals(64, output[1].asIntChunk().get(1)); TestCase.assertEquals(BooleanUtils.TRUE_BOOLEAN_AS_BYTE, output[2].asByteChunk().get(1)); - TestCase.assertEquals(DateTimeUtils.millisToNanos(dt2.getMillis()), output[3].asLongChunk().get(1)); - TestCase.assertEquals(DateTimeUtils.microsToNanos(dt2.getMicros()), output[4].asLongChunk().get(1)); + TestCase.assertEquals(DateTimeUtils.millisToNanos(DateTimeUtils.epochMillis(dt2)), + output[3].asLongChunk().get(1)); + TestCase.assertEquals(DateTimeUtils.microsToNanos(DateTimeUtils.epochMicros(dt2)), + output[4].asLongChunk().get(1)); TestCase.assertEquals(20000, output[5].asIntChunk().get(1)); TestCase.assertEquals(200000, output[6].asLongChunk().get(1)); diff --git a/extensions/parquet/benchmark/src/benchmark/java/io/deephaven/benchmark/parquet/table/TableWriteBenchmark.java b/extensions/parquet/benchmark/src/benchmark/java/io/deephaven/benchmark/parquet/table/TableWriteBenchmark.java index b1261d9ab79..fa0613c7227 100644 --- a/extensions/parquet/benchmark/src/benchmark/java/io/deephaven/benchmark/parquet/table/TableWriteBenchmark.java +++ b/extensions/parquet/benchmark/src/benchmark/java/io/deephaven/benchmark/parquet/table/TableWriteBenchmark.java @@ -74,7 +74,7 @@ public void setupEnv() throws IOException { "Bl = ii % 8192 == 0 ? null : ii % 2 == 0", "Sym = ii % 64 == 0 ? null : Long.toString(ii % 1000)", "Str = ii % 128 == 0 ? null : Long.toString(ii)", - "DT = ii % 256 == 0 ? null : new DateTime(nowNanos + ii)", + "DT = ii % 256 == 0 ? null : DateTimeUtils.epochNanosToInstant(nowNanos + ii)", // "Ser = ii % 1024 == 0 ? null : new SimpleSerializable(ii)", "Ext = ii % 1024 == 0 ? null : new SimpleExternalizable(ii)", "Fix = ii % 64 == 0 ? null : new BigInteger(Long.toString(ii % 1000), 10)", diff --git a/extensions/parquet/table/src/brotliTest/java/io/deephaven/parquet/table/BrotliParquetTableReadWriteTest.java b/extensions/parquet/table/src/brotliTest/java/io/deephaven/parquet/table/BrotliParquetTableReadWriteTest.java index 73d73394096..2c403f4129a 100644 --- a/extensions/parquet/table/src/brotliTest/java/io/deephaven/parquet/table/BrotliParquetTableReadWriteTest.java +++ b/extensions/parquet/table/src/brotliTest/java/io/deephaven/parquet/table/BrotliParquetTableReadWriteTest.java @@ -60,7 +60,7 @@ private static Table getTableFlat(int size, boolean includeSerializable) { "someShortColumn = (short)i", "someByteColumn = (byte)i", "someCharColumn = (char)i", - "someTime = DateTime.now() + i", + "someTime = DateTimeUtils.now() + i", "someKey = `` + (int)(i /100)", "nullKey = i < -1?`123`:null")); if (includeSerializable) { diff --git a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/ParquetSchemaReader.java b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/ParquetSchemaReader.java index ab6a18f6824..b6cda76905c 100644 --- a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/ParquetSchemaReader.java +++ b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/ParquetSchemaReader.java @@ -6,7 +6,6 @@ import com.fasterxml.jackson.core.JsonProcessingException; import io.deephaven.UncheckedDeephavenException; import io.deephaven.stringset.StringSet; -import io.deephaven.time.DateTime; import io.deephaven.engine.table.impl.locations.TableDataException; import io.deephaven.parquet.table.metadata.CodecInfo; import io.deephaven.parquet.table.metadata.ColumnTypeInfo; @@ -26,6 +25,7 @@ import java.io.File; import java.io.IOException; import java.math.BigInteger; +import java.time.Instant; import java.util.*; import java.util.function.BiFunction; import java.util.function.Supplier; @@ -224,7 +224,7 @@ public static ParquetInstructions readParquetSchema( colDef.baseType = long.class; break; case INT96: - colDef.baseType = DateTime.class; + colDef.baseType = Instant.class; break; case DOUBLE: colDef.baseType = double.class; @@ -359,7 +359,7 @@ public Optional> visit( case MILLIS: case MICROS: case NANOS: - return Optional.of(DateTime.class); + return Optional.of(Instant.class); } } errorString.setValue("TimestampLogicalType, isAdjustedToUTC=" + timestampLogicalType.isAdjustedToUTC() diff --git a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/ParquetTableWriter.java b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/ParquetTableWriter.java index d8d2e44ed79..ebfe1b6a1ac 100644 --- a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/ParquetTableWriter.java +++ b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/ParquetTableWriter.java @@ -36,7 +36,6 @@ import io.deephaven.parquet.table.metadata.TableInfo; import io.deephaven.parquet.table.util.TrackedSeekableChannelsProvider; import io.deephaven.stringset.StringSet; -import io.deephaven.time.DateTime; import io.deephaven.util.QueryConstants; import io.deephaven.util.SafeCloseable; import io.deephaven.util.annotations.VisibleForTesting; @@ -57,6 +56,7 @@ import java.nio.*; import java.nio.file.Path; import java.nio.file.Paths; +import java.time.Instant; import java.util.*; import java.util.function.Function; import java.util.function.LongSupplier; @@ -512,10 +512,10 @@ static void writeColumnSource( } Class columnType = columnSource.getType(); - if (columnType == DateTime.class) { + if (columnType == Instant.class) { // noinspection unchecked - columnSource = (ColumnSource) ReinterpretUtils.dateTimeToLongSource( - (ColumnSource) columnSource); + columnSource = (ColumnSource) ReinterpretUtils.instantToLongSource( + (ColumnSource) columnSource); columnType = columnSource.getType(); } else if (columnType == Boolean.class) { // noinspection unchecked diff --git a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/TypeInfos.java b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/TypeInfos.java index abaf8c4a013..7006521c913 100644 --- a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/TypeInfos.java +++ b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/TypeInfos.java @@ -8,7 +8,6 @@ import io.deephaven.engine.table.ColumnSource; import io.deephaven.engine.table.impl.CodecLookup; import io.deephaven.stringset.StringSet; -import io.deephaven.time.DateTime; import io.deephaven.util.codec.ExternalizableCodec; import io.deephaven.util.codec.SerializableCodec; import org.apache.commons.lang3.tuple.ImmutablePair; @@ -24,6 +23,7 @@ import java.io.Externalizable; import java.math.BigDecimal; import java.math.BigInteger; +import java.time.Instant; import java.util.*; import java.util.function.Supplier; @@ -45,7 +45,7 @@ class TypeInfos { CharType.INSTANCE, ByteType.INSTANCE, StringType.INSTANCE, - DateTimeType.INSTANCE, + InstantType.INSTANCE, BigIntegerType.INSTANCE }; @@ -360,10 +360,10 @@ public PrimitiveBuilder getBuilder(boolean required, boolean repe /** * TODO: newer versions of parquet seem to support NANOS, but this version seems to only support MICROS */ - private enum DateTimeType implements TypeInfo { + private enum InstantType implements TypeInfo { INSTANCE; - private static final Set> clazzes = Collections.singleton(DateTime.class); + private static final Set> clazzes = Collections.singleton(Instant.class); @Override public Set> getTypes() { diff --git a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/location/ParquetColumnLocation.java b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/location/ParquetColumnLocation.java index c07b88951d7..8f9701f525f 100644 --- a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/location/ParquetColumnLocation.java +++ b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/location/ParquetColumnLocation.java @@ -616,7 +616,7 @@ private static ToPage makeToPage( toPage = ToLongPage.create(pageType); break; case INT96: - toPage = ToDateTimePageFromInt96.create(pageType); + toPage = ToInstantPageFromInt96.create(pageType); break; case DOUBLE: toPage = ToDoublePage.create(pageType); @@ -702,7 +702,7 @@ private static class LogicalTypeVisitor LogicalTypeAnnotation.TimestampLogicalTypeAnnotation timestampLogicalType) { if (timestampLogicalType.isAdjustedToUTC()) { return Optional - .of(ToDateTimePage.create(componentType, timestampLogicalType.getUnit())); + .of(ToInstantPage.create(componentType, timestampLogicalType.getUnit())); } return Optional.empty(); } diff --git a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToDateTimePage.java b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToInstantPage.java similarity index 61% rename from extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToDateTimePage.java rename to extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToInstantPage.java index b3cc1db147f..97522a6c84a 100644 --- a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToDateTimePage.java +++ b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToInstantPage.java @@ -7,26 +7,26 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.vector.ObjectVector; import io.deephaven.vector.ObjectVectorDirect; -import io.deephaven.time.DateTime; import org.apache.parquet.schema.LogicalTypeAnnotation; import org.jetbrains.annotations.NotNull; +import java.time.Instant; import java.util.function.LongFunction; import java.util.function.LongUnaryOperator; -public abstract class ToDateTimePage extends ToLongPage { +public abstract class ToInstantPage extends ToLongPage { @SuppressWarnings("rawtypes") - private static final ToDateTimePage MILLIS_INSTANCE = new ToDateTimePageFromMillis(); + private static final ToInstantPage MILLIS_INSTANCE = new ToInstantPageFromMillis(); @SuppressWarnings("rawtypes") - private static final ToDateTimePage MICROS_INSTANCE = new ToDateTimePageFromMicros(); + private static final ToInstantPage MICROS_INSTANCE = new ToInstantPageFromMicros(); @SuppressWarnings("rawtypes") - private static final ToDateTimePage NANOS_INSTANCE = new ToDateTimePageFromNanos(); + private static final ToInstantPage NANOS_INSTANCE = new ToInstantPageFromNanos(); @SuppressWarnings("unchecked") - public static ToPage create(@NotNull final Class nativeType, + public static ToPage create(@NotNull final Class nativeType, final LogicalTypeAnnotation.TimeUnit unit) { - if (DateTime.class.equals(nativeType)) { + if (Instant.class.equals(nativeType)) { switch (unit) { case MILLIS: return MILLIS_INSTANCE; @@ -40,14 +40,14 @@ public static ToPage create(@NotNull final } throw new IllegalArgumentException( - "The native type for a DateTime column is " + nativeType.getCanonicalName()); + "The native type foran Instant column is " + nativeType.getCanonicalName()); } - protected ToDateTimePage() {} + protected ToInstantPage() {} - protected static ObjectVector makeVectorHelper(final long[] result, - final LongFunction unitToTime) { - DateTime[] to = new DateTime[result.length]; + protected static ObjectVector makeVectorHelper(final long[] result, + final LongFunction unitToTime) { + Instant[] to = new Instant[result.length]; for (int i = 0; i < result.length; ++i) { to[i] = unitToTime.apply(result[i]); @@ -66,23 +66,23 @@ protected static long[] convertResultHelper(@NotNull final Object result, final @Override @NotNull - public final Class getNativeComponentType() { - return DateTime.class; + public final Class getNativeComponentType() { + return Instant.class; } - private static final class ToDateTimePageFromNanos extends ToDateTimePage { + private static final class ToInstantPageFromNanos extends ToInstantPage { @Override @NotNull - public ObjectVector makeVector(long[] result) { - return makeVectorHelper(result, DateTimeUtils::epochNanosToDateTime); + public ObjectVector makeVector(long[] result) { + return makeVectorHelper(result, DateTimeUtils::epochNanosToInstant); } } - private static final class ToDateTimePageFromMicros extends ToDateTimePage { + private static final class ToInstantPageFromMicros extends ToInstantPage { @Override @NotNull - public ObjectVector makeVector(long[] result) { - return makeVectorHelper(result, DateTimeUtils::epochMicrosToDateTime); + public ObjectVector makeVector(long[] result) { + return makeVectorHelper(result, DateTimeUtils::epochMicrosToInstant); } @Override @@ -91,11 +91,11 @@ public long[] convertResult(@NotNull final Object result) { } } - private static final class ToDateTimePageFromMillis extends ToDateTimePage { + private static final class ToInstantPageFromMillis extends ToInstantPage { @Override @NotNull - public ObjectVector makeVector(long[] result) { - return makeVectorHelper(result, DateTimeUtils::epochMillisToDateTime); + public ObjectVector makeVector(long[] result) { + return makeVectorHelper(result, DateTimeUtils::epochMillisToInstant); } @Override diff --git a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToDateTimePageFromInt96.java b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToInstantPageFromInt96.java similarity index 73% rename from extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToDateTimePageFromInt96.java rename to extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToInstantPageFromInt96.java index 5b770faedac..a8793f7b9de 100644 --- a/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToDateTimePageFromInt96.java +++ b/extensions/parquet/table/src/main/java/io/deephaven/parquet/table/pagestore/topage/ToInstantPageFromInt96.java @@ -7,21 +7,21 @@ import io.deephaven.time.DateTimeUtils; import io.deephaven.vector.ObjectVector; import io.deephaven.vector.ObjectVectorDirect; -import io.deephaven.time.DateTime; import io.deephaven.configuration.Configuration; import io.deephaven.chunk.ChunkType; import org.apache.parquet.io.api.Binary; import org.jetbrains.annotations.NotNull; import java.nio.ByteBuffer; +import java.time.Instant; import java.time.ZoneId; /** - * Parquet {@link ToPage} implementation for {@link DateTime}s stored as Int96s representing an Impala + * Parquet {@link ToPage} implementation for {@link Instant}s stored as Int96s representing an Impala * format Timestamp (nanoseconds of day and Julian date encoded as 8 bytes and 4 bytes, respectively) * */ -public class ToDateTimePageFromInt96 implements ToPage { +public class ToInstantPageFromInt96 implements ToPage { /* * Potential references/points of comparison for this algorithm: * https://github.com/apache/iceberg/pull/1184/files @@ -29,7 +29,7 @@ public class ToDateTimePageFromInt96 implements ToPage(); + private static final ToInstantPageFromInt96 INSTANCE = new ToInstantPageFromInt96<>(); private static final long NANOS_PER_DAY = 86400L * 1000 * 1000 * 1000; private static final int JULIAN_OFFSET_TO_UNIX_EPOCH_DAYS = 2_440_588; private static long offset; @@ -38,26 +38,28 @@ public class ToDateTimePageFromInt96 implements ToPage ToDateTimePageFromInt96 create(@NotNull Class nativeType) { - if (DateTime.class.equals(nativeType)) { + public static ToInstantPageFromInt96 create(@NotNull Class nativeType) { + if (Instant.class.equals(nativeType)) { //noinspection unchecked return INSTANCE; } - throw new IllegalArgumentException("The native type for a DateTime column is " + nativeType.getCanonicalName()); + throw new IllegalArgumentException("The native type foran Instant column is " + nativeType.getCanonicalName()); } - private ToDateTimePageFromInt96() { + private ToInstantPageFromInt96() { } /** * Allows overriding the time zone to be used when interpreting Int96 timestamp values. * Default is UTC. Can be set globally with the parameter deephaven.parquet.referenceTimeZone. - * Valid values are time zone Strings which would be used in convertDateTime, such as NY. + * Valid values are time zone Strings which would be used in {@link DateTimeUtils#parseInstant(String) parseInstant}, + * such as NY. + * * @param timeZone */ public static void setReferenceTimeZone(@NotNull final String timeZone) { - offset = DateTimeUtils.nanosOfDay(DateTimeUtils.parseDateTime("1970-01-01T00:00:00 " + timeZone), ZoneId.of("UTC")); + offset = DateTimeUtils.nanosOfDay(DateTimeUtils.parseInstant("1970-01-01T00:00:00 " + timeZone), ZoneId.of("UTC")); } @Override @@ -77,8 +79,8 @@ public final ChunkType getChunkType() { @Override @NotNull - public final Class getNativeComponentType() { - return DateTime.class; + public final Class getNativeComponentType() { + return Instant.class; } @Override @@ -100,12 +102,12 @@ public final long[] convertResult(@NotNull final Object result) { @Override @NotNull - public final ObjectVector makeVector(@NotNull final long[] result) { - final DateTime[] to = new DateTime[result.length]; + public final ObjectVector makeVector(@NotNull final long[] result) { + final Instant[] to = new Instant[result.length]; final int resultLength = result.length; for (int ri = 0; ri < resultLength; ++ri) { - to[ri] = DateTimeUtils.epochNanosToDateTime(result[ri]); + to[ri] = DateTimeUtils.epochNanosToInstant(result[ri]); } return new ObjectVectorDirect<>(to); diff --git a/extensions/parquet/table/src/test/java/io/deephaven/parquet/table/ParquetTableReadWriteTest.java b/extensions/parquet/table/src/test/java/io/deephaven/parquet/table/ParquetTableReadWriteTest.java index 4539b683c42..1ae537769ab 100644 --- a/extensions/parquet/table/src/test/java/io/deephaven/parquet/table/ParquetTableReadWriteTest.java +++ b/extensions/parquet/table/src/test/java/io/deephaven/parquet/table/ParquetTableReadWriteTest.java @@ -77,7 +77,7 @@ private static Table getTableFlat(int size, boolean includeSerializable) { "someShortColumn = (short)i", "someByteColumn = (byte)i", "someCharColumn = (char)i", - "someTime = DateTime.now() + i", + "someTime = DateTimeUtils.now() + i", "someKey = `` + (int)(i /100)", "nullKey = i < -1?`123`:null", "bdColumn = java.math.BigDecimal.valueOf(ii).stripTrailingZeros()", diff --git a/open-api/lang-tools/src/main/java/io/deephaven/lang/completion/ChunkerCompleter.java b/open-api/lang-tools/src/main/java/io/deephaven/lang/completion/ChunkerCompleter.java index 43acc2e3438..bca0fc692a0 100644 --- a/open-api/lang-tools/src/main/java/io/deephaven/lang/completion/ChunkerCompleter.java +++ b/open-api/lang-tools/src/main/java/io/deephaven/lang/completion/ChunkerCompleter.java @@ -7,7 +7,6 @@ import io.deephaven.engine.table.Table; import io.deephaven.engine.table.TableDefinition; import io.deephaven.engine.context.QueryScope.MissingVariableException; -import io.deephaven.time.DateTime; import io.deephaven.engine.util.VariableProvider; import io.deephaven.io.logger.Logger; import io.deephaven.lang.api.HasScope; @@ -22,6 +21,7 @@ import java.lang.reflect.Field; import java.lang.reflect.Method; import java.lang.reflect.Modifier; +import java.time.Instant; import java.util.*; import java.util.concurrent.CompletableFuture; import java.util.regex.Pattern; @@ -1395,7 +1395,7 @@ private Class guessColumnType(String columnName, List scope, Complet case "Date": return String.class; case "Timestamp": - return DateTime.class; + return Instant.class; } // failure; allow anything... diff --git a/open-api/lang-tools/src/main/java/io/deephaven/lang/completion/CompletionRequest.java b/open-api/lang-tools/src/main/java/io/deephaven/lang/completion/CompletionRequest.java index b5771d21f0e..3d0ce0543e7 100644 --- a/open-api/lang-tools/src/main/java/io/deephaven/lang/completion/CompletionRequest.java +++ b/open-api/lang-tools/src/main/java/io/deephaven/lang/completion/CompletionRequest.java @@ -158,7 +158,7 @@ private TableDefinition convertNewTableInvocation(final ChunkerInvoke invoke) { case "stringCol": columns.add(ColumnDefinition.ofString(colName)); break; - case "dateTimeCol": + case "instantCol": columns.add(ColumnDefinition.ofTime(colName)); break; case "longCol": diff --git a/open-api/lang-tools/src/test/groovy/io/deephaven/lang/completion/ColumnExpressionCompletionHandlerTest.groovy b/open-api/lang-tools/src/test/groovy/io/deephaven/lang/completion/ColumnExpressionCompletionHandlerTest.groovy index 214ead79601..a3206a0be8b 100644 --- a/open-api/lang-tools/src/test/groovy/io/deephaven/lang/completion/ColumnExpressionCompletionHandlerTest.groovy +++ b/open-api/lang-tools/src/test/groovy/io/deephaven/lang/completion/ColumnExpressionCompletionHandlerTest.groovy @@ -9,11 +9,12 @@ import io.deephaven.internal.log.LoggerFactory import io.deephaven.io.logger.Logger import io.deephaven.lang.parse.CompletionParser import io.deephaven.proto.backplane.script.grpc.CompletionItem -import io.deephaven.time.DateTime import io.deephaven.util.SafeCloseable import spock.lang.Specification import spock.lang.Unroll +import java.time.Instant + class ColumnExpressionCompletionHandlerTest extends Specification implements ChunkerCompleterMixin { private static String src_(String methodName = 't', String columnName = 'Date', String completion = "cur") { @@ -43,7 +44,7 @@ class ColumnExpressionCompletionHandlerTest extends Specification implements Chu VariableProvider variables = Mock(VariableProvider) { (0..1) * getVariableNames() >> ['t'] (0..1) * getVariableType('t') >> Table - (0..1) * getTableDefinition('t') >> TableDefinition.from(['Date', 'DateClock'], [DateTime, Clock] + (0..1) * getTableDefinition('t') >> TableDefinition.from(['Date', 'DateClock'], [Instant, Clock] ) } diff --git a/plugin/figure/src/main/java/io/deephaven/figure/FigureWidgetTranslator.java b/plugin/figure/src/main/java/io/deephaven/figure/FigureWidgetTranslator.java index fab945eb191..21f43b920ce 100644 --- a/plugin/figure/src/main/java/io/deephaven/figure/FigureWidgetTranslator.java +++ b/plugin/figure/src/main/java/io/deephaven/figure/FigureWidgetTranslator.java @@ -56,7 +56,6 @@ import io.deephaven.proto.backplane.script.grpc.FigureDescriptor.SourceDescriptor; import io.deephaven.proto.backplane.script.grpc.FigureDescriptor.SourceType; import io.deephaven.proto.backplane.script.grpc.FigureDescriptor.StringMapWithDefault; -import io.deephaven.time.DateTimeUtils; import io.deephaven.time.calendar.BusinessCalendar; import org.jetbrains.annotations.NotNull; import java.time.format.DateTimeFormatter; @@ -570,10 +569,10 @@ private BusinessCalendarDescriptor translateBusinessCalendar(AxisTransformBusine Arrays.stream(entry.getValue().getBusinessPeriods()).map(bp -> { //noinspection ConstantConditions final String open = HOLIDAY_TIME_FORMAT.withZone(businessCalendar.timeZone()) - .format(DateTimeUtils.toInstant(bp.getStartTime())); + .format(bp.getStartTime()); //noinspection ConstantConditions final String close = HOLIDAY_TIME_FORMAT.withZone(businessCalendar.timeZone()) - .format(DateTimeUtils.toInstant(bp.getEndTime())); + .format(bp.getEndTime()); final BusinessPeriod.Builder businessPeriod = BusinessPeriod.newBuilder(); businessPeriod.setOpen(open); businessPeriod.setClose(close); diff --git a/py/server/tests/test_parquet.py b/py/server/tests/test_parquet.py index 8d53fdedcdd..64c5c6263da 100644 --- a/py/server/tests/test_parquet.py +++ b/py/server/tests/test_parquet.py @@ -165,7 +165,7 @@ def test_round_trip_data(self): "someByteColumn = (byte)i", "someCharColumn = (char)i", # TODO(deephaven-core#3151) pyarrow indicates this value is out of the allowed range - # "someTime = DateTime.now() + i", + # "someTime = XYZTimeUtils.now() + i", "someKey = `` + (int)(i /100)", "nullKey = i < -1?`123`:null", "nullIntColumn = (int)null", diff --git a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java index 22bb90c8ab4..1c1a72096aa 100644 --- a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java +++ b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java @@ -254,7 +254,7 @@ private static void insertInstantExtensions(String longPath) throws IOException " final Instant[] keyArray = new Instant[positions.length];", " int writePos = 0;", " for (long position : positions) {", - " keyArray[writePos++] = getAsDate(position);", + " keyArray[writePos++] = getAsInstant(position);", " }", "", " return new ObjectVectorDirect<>(keyArray);", diff --git a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java index 87f553cefa0..c989e200341 100644 --- a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java +++ b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSourcesAndChunks.java @@ -982,7 +982,7 @@ private static void replicateLongSparseArraySource() throws IOException { lines = replaceRegion(lines, "reinterpretation", Arrays.asList( " @Override", " public boolean allowsReinterpret(@NotNull final Class alternateDataType) {", - " return alternateDataType == long.class || alternateDataType == Instant.class", + " return alternateDataType == long.class || alternateDataType == Instant.class;", " }", "", " @SuppressWarnings(\"unchecked\")", diff --git a/server/src/main/java/io/deephaven/server/barrage/BarrageMessageProducer.java b/server/src/main/java/io/deephaven/server/barrage/BarrageMessageProducer.java index ada611b0791..f923f51bfe6 100644 --- a/server/src/main/java/io/deephaven/server/barrage/BarrageMessageProducer.java +++ b/server/src/main/java/io/deephaven/server/barrage/BarrageMessageProducer.java @@ -41,7 +41,6 @@ import io.deephaven.internal.log.LoggerFactory; import io.deephaven.io.logger.Logger; import io.deephaven.server.util.Scheduler; -import io.deephaven.time.DateTime; import io.deephaven.util.SafeCloseable; import io.deephaven.util.SafeCloseableArray; import io.deephaven.util.datastructures.LongSizedDataStructure; @@ -52,6 +51,7 @@ import org.HdrHistogram.Histogram; import java.io.IOException; +import java.time.Instant; import java.util.*; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.locks.ReentrantLock; @@ -2203,7 +2203,7 @@ public synchronized void run() { return; } - final DateTime now = DateTime.ofMillis(scheduler); + final Instant now = scheduler.instantMillis(); scheduler.runAfterDelay(BarragePerformanceLog.CYCLE_DURATION_MILLIS, this); final BarrageSubscriptionPerformanceLogger logger = @@ -2225,8 +2225,8 @@ public synchronized void run() { } } - private void flush(final DateTime now, final BarrageSubscriptionPerformanceLogger logger, final Histogram hist, - final String statType) throws IOException { + private void flush(final Instant now, final BarrageSubscriptionPerformanceLogger logger, final Histogram hist, + final String statType) throws IOException { if (hist.getTotalCount() == 0) { return; } diff --git a/server/src/main/java/io/deephaven/server/hierarchicaltable/HierarchicalTableViewSubscription.java b/server/src/main/java/io/deephaven/server/hierarchicaltable/HierarchicalTableViewSubscription.java index a298ed7d791..72b9e2e1219 100644 --- a/server/src/main/java/io/deephaven/server/hierarchicaltable/HierarchicalTableViewSubscription.java +++ b/server/src/main/java/io/deephaven/server/hierarchicaltable/HierarchicalTableViewSubscription.java @@ -24,7 +24,6 @@ import io.deephaven.io.logger.Logger; import io.deephaven.proto.util.Exceptions; import io.deephaven.server.util.Scheduler; -import io.deephaven.time.DateTime; import io.deephaven.util.SafeCloseable; import io.grpc.stub.StreamObserver; import org.HdrHistogram.Histogram; @@ -32,6 +31,7 @@ import org.jetbrains.annotations.Nullable; import java.io.IOException; +import java.time.Instant; import java.util.ArrayList; import java.util.BitSet; import java.util.List; @@ -466,7 +466,7 @@ public synchronized void run() { return; } - final DateTime now = DateTime.ofMillis(scheduler); + final Instant now = scheduler.instantMillis(); scheduler.runAfterDelay(BarragePerformanceLog.CYCLE_DURATION_MILLIS, this); final BarrageSubscriptionPerformanceLogger logger = @@ -486,7 +486,7 @@ public synchronized void run() { } private void flush( - @NotNull final DateTime now, + @NotNull final Instant now, @NotNull final BarrageSubscriptionPerformanceLogger logger, @NotNull final Histogram hist, @NotNull final String statType) throws IOException { diff --git a/server/src/main/java/io/deephaven/server/table/ops/TableServiceGrpcImpl.java b/server/src/main/java/io/deephaven/server/table/ops/TableServiceGrpcImpl.java index 07be7aa5401..a67cd011ae1 100644 --- a/server/src/main/java/io/deephaven/server/table/ops/TableServiceGrpcImpl.java +++ b/server/src/main/java/io/deephaven/server/table/ops/TableServiceGrpcImpl.java @@ -59,8 +59,8 @@ import io.deephaven.server.session.SessionState; import io.deephaven.server.session.SessionState.ExportBuilder; import io.deephaven.server.session.TicketRouter; -import io.deephaven.time.DateTime; import io.deephaven.server.table.ExportedTableUpdateListener; +import io.deephaven.time.DateTimeUtils; import io.grpc.StatusRuntimeException; import io.grpc.stub.ServerCallStreamObserver; import io.grpc.stub.StreamObserver; @@ -69,6 +69,7 @@ import javax.inject.Inject; import java.math.BigDecimal; import java.math.BigInteger; +import java.time.Instant; import java.util.Collections; import java.util.List; import java.util.Map; @@ -362,11 +363,11 @@ private Object getSeekValue(Literal literal, Class dataType) { } return literal.getStringValue(); } else if (literal.hasNanoTimeValue()) { - if (!DateTime.class.isAssignableFrom(dataType)) { + if (!Instant.class.isAssignableFrom(dataType)) { throw Exceptions.statusRuntimeException(Code.INVALID_ARGUMENT, - "Invalid Date type for seek: " + dataType); + "Invalid date type for seek: " + dataType); } - return new DateTime(literal.getNanoTimeValue()); + return DateTimeUtils.epochNanosToInstant(literal.getNanoTimeValue()); } else if (literal.hasLongValue()) { Long longValue = literal.getLongValue(); if (dataType == byte.class) { diff --git a/server/src/main/java/io/deephaven/server/table/ops/TimeTableGrpcImpl.java b/server/src/main/java/io/deephaven/server/table/ops/TimeTableGrpcImpl.java index d617d235898..d12dcbfb646 100644 --- a/server/src/main/java/io/deephaven/server/table/ops/TimeTableGrpcImpl.java +++ b/server/src/main/java/io/deephaven/server/table/ops/TimeTableGrpcImpl.java @@ -54,6 +54,6 @@ public Table create(final TimeTableRequest request, final long startTime = request.getStartTimeNanos(); final long periodValue = request.getPeriodNanos(); return new TimeTable(updateGraphProcessor, scheduler, - startTime <= 0 ? null : DateTimeUtils.epochNanosToDateTime(startTime), periodValue, false); + startTime <= 0 ? null : DateTimeUtils.epochNanosToInstant(startTime), periodValue, false); } } diff --git a/server/src/main/java/io/deephaven/server/table/ops/filter/FilterFactory.java b/server/src/main/java/io/deephaven/server/table/ops/filter/FilterFactory.java index eb288994dda..c4f29c3897b 100644 --- a/server/src/main/java/io/deephaven/server/table/ops/filter/FilterFactory.java +++ b/server/src/main/java/io/deephaven/server/table/ops/filter/FilterFactory.java @@ -25,7 +25,7 @@ import io.deephaven.proto.backplane.grpc.NotCondition; import io.deephaven.proto.backplane.grpc.Reference; import io.deephaven.proto.backplane.grpc.Value; -import io.deephaven.time.DateTime; +import io.deephaven.time.DateTimeUtils; import org.jetbrains.annotations.NotNull; import java.text.DecimalFormat; @@ -185,7 +185,8 @@ public WhereFilter onIn(Value target, List candidatesList, CaseSensitivit Literal literal = d.getLiteral(); // all other literals get created from a toString except DateTime if (literal.getValueCase() == Literal.ValueCase.NANO_TIME_VALUE) { - values[i] = "'" + new DateTime(literal.getNanoTimeValue()).toString(ZoneId.systemDefault()) + "'"; + values[i] = "'" + DateTimeUtils.formatDateTime( + DateTimeUtils.epochNanosToInstant(literal.getNanoTimeValue()), ZoneId.systemDefault()) + "'"; } else { values[i] = FilterPrinter.printNoEscape(literal); } diff --git a/server/src/main/java/io/deephaven/server/table/ops/filter/FilterPrinter.java b/server/src/main/java/io/deephaven/server/table/ops/filter/FilterPrinter.java index 8605850233a..3b8efadfea3 100644 --- a/server/src/main/java/io/deephaven/server/table/ops/filter/FilterPrinter.java +++ b/server/src/main/java/io/deephaven/server/table/ops/filter/FilterPrinter.java @@ -278,7 +278,7 @@ private void onLiteral(Literal literal) { sb.append(literal.getLongValue()); break; case NANO_TIME_VALUE: - sb.append("new DateTime(").append(literal.getNanoTimeValue()).append(")"); + sb.append("DateTimeUtils.epochNanosToInstant(").append(literal.getNanoTimeValue()).append(")"); break; case VALUE_NOT_SET: default: diff --git a/server/src/main/java/io/deephaven/server/table/validation/ColumnExpressionValidator.java b/server/src/main/java/io/deephaven/server/table/validation/ColumnExpressionValidator.java index 98afc3a61de..5049d9aeed2 100644 --- a/server/src/main/java/io/deephaven/server/table/validation/ColumnExpressionValidator.java +++ b/server/src/main/java/io/deephaven/server/table/validation/ColumnExpressionValidator.java @@ -25,12 +25,12 @@ import io.deephaven.engine.table.impl.select.WhereFilterFactory; import io.deephaven.engine.util.ColorUtilImpl; import io.deephaven.libs.GroovyStaticImports; -import io.deephaven.time.DateTime; -import io.deephaven.time.TimeLiteralReplacedExpression; import io.deephaven.time.DateTimeUtils; +import io.deephaven.time.TimeLiteralReplacedExpression; import java.lang.reflect.Method; import java.lang.reflect.Modifier; +import java.time.Instant; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; @@ -67,9 +67,7 @@ public class ColumnExpressionValidator extends VoidVisitorAdapter { // DateTime // String whitelistedInstanceMethods = Stream - .of( - DateTime.class, - String.class) + .of(Instant.class, String.class) .map(Class::getDeclaredMethods) .flatMap(Arrays::stream) .filter(m -> !Modifier.isStatic(m.getModifiers())) diff --git a/server/src/test/java/io/deephaven/server/barrage/BarrageMessageRoundTripTest.java b/server/src/test/java/io/deephaven/server/barrage/BarrageMessageRoundTripTest.java index 7f88d86fc4a..e4bd9ccdc36 100644 --- a/server/src/test/java/io/deephaven/server/barrage/BarrageMessageRoundTripTest.java +++ b/server/src/test/java/io/deephaven/server/barrage/BarrageMessageRoundTripTest.java @@ -426,9 +426,9 @@ public void createTable() { new SetGenerator<>(10.1, 20.1, 30.1), new SortedLongGenerator(0, Long.MAX_VALUE - 1), new BooleanGenerator(0.2), - new UnsortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2020-02-14T00:00:00 NY"), - DateTimeUtils.parseDateTime("2020-02-25T00:00:00 NY")))); + new UnsortedInstantGenerator( + DateTimeUtils.parseInstant("2020-02-14T00:00:00 NY"), + DateTimeUtils.parseInstant("2020-02-25T00:00:00 NY")))); } public void createNuggets() { @@ -1290,9 +1290,9 @@ public void createTable() { new BooleanGenerator(0.2), new SetGenerator<>(new String[] {"a", "b"}, new String[] {"0", "1"}, new String[] {}, null), - new UnsortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2020-02-14T00:00:00 NY"), - DateTimeUtils.parseDateTime("2020-02-25T00:00:00 NY"))); + new UnsortedInstantGenerator( + DateTimeUtils.parseInstant("2020-02-14T00:00:00 NY"), + DateTimeUtils.parseInstant("2020-02-25T00:00:00 NY"))); sourceTable = getTable(size / 4, random, columnInfo); } }; @@ -1354,9 +1354,9 @@ public void createTable() { new StringGenerator(), new SetGenerator<>(new String[] {"a", "b"}, new String[] {"0", "1"}, new String[] {}, null), - new UnsortedDateTimeGenerator( - DateTimeUtils.parseDateTime("2020-02-14T00:00:00 NY"), - DateTimeUtils.parseDateTime("2020-02-25T00:00:00 NY"))); + new UnsortedInstantGenerator( + DateTimeUtils.parseInstant("2020-02-14T00:00:00 NY"), + DateTimeUtils.parseInstant("2020-02-25T00:00:00 NY"))); sourceTable = getTable(size / 4, random, columnInfo); } }; diff --git a/server/src/test/java/io/deephaven/server/session/SessionStateTest.java b/server/src/test/java/io/deephaven/server/session/SessionStateTest.java index 1cde310a13b..e4ec8876add 100644 --- a/server/src/test/java/io/deephaven/server/session/SessionStateTest.java +++ b/server/src/test/java/io/deephaven/server/session/SessionStateTest.java @@ -62,7 +62,7 @@ public void setup() { scheduler = new TestControlledScheduler(); session = new SessionState(scheduler, TestExecutionContext::createForUnitTests, AUTH_CONTEXT); session.initializeExpiration(new SessionService.TokenExpiration(UUID.randomUUID(), - DateTimeUtils.epochNanosToDateTime(Long.MAX_VALUE).getMillis(), session)); + DateTimeUtils.epochMillis(DateTimeUtils.epochNanosToInstant(Long.MAX_VALUE)), session)); nextExportId = 1; } @@ -639,7 +639,7 @@ public void testVerifyExpirationSession() { final SessionState session = new SessionState(scheduler, TestExecutionContext::createForUnitTests, AUTH_CONTEXT); final SessionService.TokenExpiration expiration = new SessionService.TokenExpiration(UUID.randomUUID(), - DateTimeUtils.epochNanosToDateTime(Long.MAX_VALUE).getMillis(), session); + DateTimeUtils.epochMillis(DateTimeUtils.epochNanosToInstant(Long.MAX_VALUE)), session); expectException(IllegalArgumentException.class, () -> this.session.initializeExpiration(expiration)); expectException(IllegalArgumentException.class, () -> this.session.updateExpiration(expiration)); } diff --git a/server/src/test/java/io/deephaven/server/table/ExportTableUpdateListenerTest.java b/server/src/test/java/io/deephaven/server/table/ExportTableUpdateListenerTest.java index 8a8ae8a6753..004ee6e8ca1 100644 --- a/server/src/test/java/io/deephaven/server/table/ExportTableUpdateListenerTest.java +++ b/server/src/test/java/io/deephaven/server/table/ExportTableUpdateListenerTest.java @@ -342,7 +342,7 @@ public class TestSessionState extends SessionState { public TestSessionState() { super(scheduler, TestExecutionContext::createForUnitTests, AUTH_CONTEXT); initializeExpiration(new SessionService.TokenExpiration(UUID.randomUUID(), - DateTimeUtils.epochNanosToDateTime(Long.MAX_VALUE).getMillis(), this)); + DateTimeUtils.epochMillis(DateTimeUtils.epochNanosToInstant(Long.MAX_VALUE)), this)); } } diff --git a/server/src/test/java/io/deephaven/server/util/TestControlledScheduler.java b/server/src/test/java/io/deephaven/server/util/TestControlledScheduler.java index cb818f3cf88..b4cdd23fa4f 100644 --- a/server/src/test/java/io/deephaven/server/util/TestControlledScheduler.java +++ b/server/src/test/java/io/deephaven/server/util/TestControlledScheduler.java @@ -5,12 +5,12 @@ import io.deephaven.base.Pair; import io.deephaven.base.clock.ClockNanoBase; -import io.deephaven.time.DateTime; import io.deephaven.time.DateTimeUtils; import io.deephaven.internal.log.LoggerFactory; import io.deephaven.io.logger.Logger; import org.jetbrains.annotations.NotNull; +import java.time.Instant; import java.util.*; import java.util.concurrent.PriorityBlockingQueue; @@ -20,7 +20,7 @@ public class TestControlledScheduler extends ClockNanoBase implements Scheduler private volatile long currentTimeInNs = 0; - private final Queue> workQueue = + private final Queue> workQueue = new PriorityBlockingQueue<>(11, Comparator.comparing(Pair::getFirst)); @Override @@ -32,12 +32,13 @@ public boolean inTestMode() { * Runs the first queued command if there are any. */ public synchronized void runOne() { - final Pair item = workQueue.poll(); + final Pair item = workQueue.poll(); if (item == null) { return; } - currentTimeInNs = Math.max(currentTimeInNs, item.getFirst().getNanos()); + Instant instant = item.getFirst(); + currentTimeInNs = Math.max(currentTimeInNs, DateTimeUtils.epochNanos(instant)); try { item.getSecond().run(); } catch (final Exception exception) { @@ -52,18 +53,19 @@ public synchronized void runOne() { * * @param untilTime time to run until */ - public synchronized void runUntil(final DateTime untilTime) { - Pair item; + public synchronized void runUntil(final Instant untilTime) { + Pair item; while ((item = workQueue.peek()) != null) { - final long now = Math.max(currentTimeInNs, untilTime.getNanos()); - if (item.getFirst().getNanos() >= now) { + final long now = Math.max(currentTimeInNs, DateTimeUtils.epochNanos(untilTime)); + Instant instant = item.getFirst(); + if (DateTimeUtils.epochNanos(instant) >= now) { break; } runOne(); } - currentTimeInNs = Math.max(currentTimeInNs, untilTime.getNanos()); + currentTimeInNs = Math.max(currentTimeInNs, DateTimeUtils.epochNanos(untilTime)); } public void runThrough(final long throughTimeMillis) { @@ -77,10 +79,11 @@ public void runThrough(final long throughTimeMillis) { * @param throughTimeNanos time to run through */ public synchronized void runThroughNanos(final long throughTimeNanos) { - Pair item; + Pair item; while ((item = workQueue.peek()) != null) { final long now = Math.max(currentTimeInNs, throughTimeNanos); - if (item.getFirst().getNanos() > now) { + Instant instant = item.getFirst(); + if (DateTimeUtils.epochNanos(instant) > now) { break; } @@ -100,13 +103,13 @@ public synchronized void runUntilQueueEmpty() { } /** - * Helper to give you a DateTime after a certain time has passed on the simulated clock. + * Helper to give you an Instant after a certain time has passed on the simulated clock. * * @param delayInMs the number of milliseconds to add to current time - * @return a DateTime representing {@code now + delayInMs} + * @return an Instant representing {@code now + delayInMs} */ - public DateTime timeAfterMs(final long delayInMs) { - return DateTimeUtils.epochNanosToDateTime(currentTimeInNs + DateTimeUtils.millisToNanos(delayInMs)); + public Instant timeAfterMs(final long delayInMs) { + return DateTimeUtils.epochNanosToInstant(currentTimeInNs + DateTimeUtils.millisToNanos(delayInMs)); } @Override @@ -116,17 +119,17 @@ public long currentTimeNanos() { @Override public void runAtTime(long epochMillis, @NotNull Runnable command) { - workQueue.add(new Pair<>(DateTimeUtils.epochMillisToDateTime(epochMillis), command)); + workQueue.add(new Pair<>(DateTimeUtils.epochMillisToInstant(epochMillis), command)); } @Override public void runAfterDelay(final long delayMs, final @NotNull Runnable command) { - workQueue.add(new Pair<>(DateTimeUtils.epochNanosToDateTime(currentTimeInNs + delayMs * 1_000_000L), command)); + workQueue.add(new Pair<>(DateTimeUtils.epochNanosToInstant(currentTimeInNs + delayMs * 1_000_000L), command)); } @Override public void runImmediately(final @NotNull Runnable command) { - workQueue.add(new Pair<>(DateTime.of(this), command)); + workQueue.add(new Pair<>(instantNanos(), command)); } @Override diff --git a/server/test/src/main/java/io/deephaven/server/test/FlightMessageRoundTripTest.java b/server/test/src/main/java/io/deephaven/server/test/FlightMessageRoundTripTest.java index 48287fc5dcb..f047ef37271 100644 --- a/server/test/src/main/java/io/deephaven/server/test/FlightMessageRoundTripTest.java +++ b/server/test/src/main/java/io/deephaven/server/test/FlightMessageRoundTripTest.java @@ -536,9 +536,9 @@ public void testRoundTripData() throws Exception { @Test public void testTimestampColumns() throws Exception { - assertRoundTripDataEqual(TableTools.emptyTable(10).update("tm = DateTime.now()")); + assertRoundTripDataEqual(TableTools.emptyTable(10).update("tm = DateTimeUtils.now()")); assertRoundTripDataEqual(TableTools.emptyTable(10).update("instant = java.time.Instant.now()")); - assertRoundTripDataEqual(TableTools.emptyTable(10).update("zonedDateTime = java.time.ZonedDateTime.now()")); + assertRoundTripDataEqual(TableTools.emptyTable(10).update("zonedDateTime = java.time.ZonedXYZTimeUtils.now()")); } @Test diff --git a/web/client-api/src/main/java/io/deephaven/web/client/api/barrage/WebBarrageUtils.java b/web/client-api/src/main/java/io/deephaven/web/client/api/barrage/WebBarrageUtils.java index 53def08f484..70a9656920b 100644 --- a/web/client-api/src/main/java/io/deephaven/web/client/api/barrage/WebBarrageUtils.java +++ b/web/client-api/src/main/java/io/deephaven/web/client/api/barrage/WebBarrageUtils.java @@ -427,7 +427,6 @@ private static ColumnData readArrowBuffer(ByteBuffer data, Iter nodes return new CharArrayColumnData(Js.uncheckedCast(charArray)); // longs are a special case despite being java primitives case "long": - case "io.deephaven.time.DateTime": case "java.time.Instant": case "java.time.ZonedDateTime": assert positions.length().toFloat64() >= size * 8; diff --git a/web/client-api/src/main/java/io/deephaven/web/client/api/parse/JsDataHandler.java b/web/client-api/src/main/java/io/deephaven/web/client/api/parse/JsDataHandler.java index b639515d62a..41e0076e0cf 100644 --- a/web/client-api/src/main/java/io/deephaven/web/client/api/parse/JsDataHandler.java +++ b/web/client-api/src/main/java/io/deephaven/web/client/api/parse/JsDataHandler.java @@ -137,7 +137,7 @@ public void write(Object[] data, ParseContext context, JsConsumer addNode, addNode.apply(new Node(data.length, nullCount)); } }, - DATE_TIME(Type.Int, "io.deephaven.time.DateTime", "datetime", "java.time.Instant", "java.time.ZonedDateTime") { + DATE_TIME(Type.Int, "datetime", "java.time.Instant", "java.time.ZonedDateTime") { // Ensures that the 'T' separator character is in the date time private String ensureSeparator(String s) { if (s.charAt(SEPARATOR_INDEX) == ' ') { diff --git a/web/client-api/src/main/java/io/deephaven/web/client/api/subscription/SubscriptionTableData.java b/web/client-api/src/main/java/io/deephaven/web/client/api/subscription/SubscriptionTableData.java index 4a8f395ca69..de7724cac11 100644 --- a/web/client-api/src/main/java/io/deephaven/web/client/api/subscription/SubscriptionTableData.java +++ b/web/client-api/src/main/java/io/deephaven/web/client/api/subscription/SubscriptionTableData.java @@ -284,7 +284,6 @@ private ArrayCopy arrayCopyFuncForColumn(@Nullable Column column) { }; case "java.time.Instant": case "java.time.ZonedDateTime": - case "io.deephaven.time.DateTime": return (destArray, destPos, srcArray, srcPos) -> { long value = Js.asArrayLike(srcArray).getAtAsAny(srcPos).asLong(); if (value == QueryConstants.NULL_LONG) { diff --git a/web/client-api/src/main/java/io/deephaven/web/client/api/widget/plot/JsFigure.java b/web/client-api/src/main/java/io/deephaven/web/client/api/widget/plot/JsFigure.java index 5acca9c3f26..e018c606442 100644 --- a/web/client-api/src/main/java/io/deephaven/web/client/api/widget/plot/JsFigure.java +++ b/web/client-api/src/main/java/io/deephaven/web/client/api/widget/plot/JsFigure.java @@ -425,7 +425,7 @@ private AxisRange groupByAxisRange(JsSeries s) { } for (int i = 0; i < s.getSources().length; i++) { SeriesDataSource source = s.getSources()[i]; - if (!source.getColumnType().equals("io.deephaven.time.DateTime")) { + if (!source.getColumnType().equals("java.time.Instant")) { continue; } DownsampledAxisDetails downsampledAxisDetails = downsampled.get(source.getAxis().getDescriptor()); diff --git a/web/client-api/src/main/java/io/deephaven/web/client/fu/JsData.java b/web/client-api/src/main/java/io/deephaven/web/client/fu/JsData.java index 45dcfaf9d2d..b83173cffdc 100644 --- a/web/client-api/src/main/java/io/deephaven/web/client/fu/JsData.java +++ b/web/client-api/src/main/java/io/deephaven/web/client/fu/JsData.java @@ -23,7 +23,6 @@ public static JsArray newArray(String type) { return Js.uncheckedCast(new float[0]); case "java.time.Instant": case "java.time.ZonedDateTime": - case "io.deephaven.time.DateTime": case "long": return Js.uncheckedCast(new long[0]); case "int": From 4af924b778db55894398eb8a98d54f46f529b18a Mon Sep 17 00:00:00 2001 From: Ryan Caudy Date: Wed, 24 May 2023 23:56:31 -0400 Subject: [PATCH 06/11] Correct figure generation --- .../io/deephaven/plot/util/GenerateAxesPlotMethods.java | 6 +++--- Plot/src/main/java/io/deephaven/plot/FigureImpl.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Generators/src/main/java/io/deephaven/plot/util/GenerateAxesPlotMethods.java b/Generators/src/main/java/io/deephaven/plot/util/GenerateAxesPlotMethods.java index 4bc25a59ac5..7c1c7776923 100644 --- a/Generators/src/main/java/io/deephaven/plot/util/GenerateAxesPlotMethods.java +++ b/Generators/src/main/java/io/deephaven/plot/util/GenerateAxesPlotMethods.java @@ -171,7 +171,7 @@ public Boolean isTime() { } }); - types.put("DateTime", new Type() { + types.put("Instant", new Type() { @Override public String getGenericSignature(int index) { return null; @@ -179,7 +179,7 @@ public String getGenericSignature(int index) { @Override public String getVariableType(int index) { - return "DateTime[]"; + return "Instant[]"; } @Override @@ -568,7 +568,7 @@ private static ArrayList> constructRestrictedNumericalTypes(fina private static final String[] timeTypes = { "Date", - "DateTime" + "Instant" }; private static final String[] numberTypes = { diff --git a/Plot/src/main/java/io/deephaven/plot/FigureImpl.java b/Plot/src/main/java/io/deephaven/plot/FigureImpl.java index c16bf234305..5fe25773a52 100644 --- a/Plot/src/main/java/io/deephaven/plot/FigureImpl.java +++ b/Plot/src/main/java/io/deephaven/plot/FigureImpl.java @@ -36,10 +36,10 @@ import io.deephaven.plot.errors.PlotUnsupportedOperationException; import io.deephaven.plot.filters.SelectableDataSet; import io.deephaven.plot.util.PlotUtils; -import java.time.Instant; import io.deephaven.time.calendar.BusinessCalendar; import java.lang.Comparable; import java.lang.String; +import java.time.Instant; import java.util.Arrays; import java.util.Date; import java.util.HashMap; From 666edb76c4d125a5b2a167d1c7300aa26df14a23 Mon Sep 17 00:00:00 2001 From: Ryan Caudy Date: Thu, 25 May 2023 00:03:51 -0400 Subject: [PATCH 07/11] Fix arrow source replication, and get to replication-cleanliness --- .../table/impl/ssms/LongSegmentedSortedMultiset.java | 2 +- .../arrow/sources/ArrowInstantColumnSource.java | 10 ++++------ .../extensions/arrow/ArrowTimestampVectorTest.java | 11 +---------- .../replicators/GenerateArrowColumnSources.java | 2 +- 4 files changed, 7 insertions(+), 18 deletions(-) diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java index 2ec03c7e003..ba203ad2526 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/ssms/LongSegmentedSortedMultiset.java @@ -10,8 +10,8 @@ import java.time.Instant; -import io.deephaven.time.DateTimeUtils; import io.deephaven.vector.ObjectVectorDirect; +import io.deephaven.time.DateTimeUtils; import io.deephaven.base.verify.Assert; import io.deephaven.chunk.attributes.Any; diff --git a/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowInstantColumnSource.java b/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowInstantColumnSource.java index 0ba3b97287c..aafb6a8713a 100644 --- a/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowInstantColumnSource.java +++ b/extensions/arrow/src/main/java/io/deephaven/extensions/arrow/sources/ArrowInstantColumnSource.java @@ -15,20 +15,18 @@ import io.deephaven.engine.table.ChunkSource; import io.deephaven.engine.table.impl.ImmutableColumnSourceGetDefaults; import io.deephaven.extensions.arrow.ArrowWrapperTools; -import io.deephaven.time.DateTimeUtils; +import java.time.Instant; import org.apache.arrow.vector.TimeStampVector; import org.apache.arrow.vector.types.pojo.Field; import org.jetbrains.annotations.NotNull; -import java.time.Instant; - /** * Arrow Vector: {@link TimeStampVector} - * Deephaven Type: io.deephaven.time.Instant + * Deephaven Type: java.time.Instant */ public class ArrowInstantColumnSource extends AbstractArrowColumnSource implements ImmutableColumnSourceGetDefaults.ForObject { public ArrowInstantColumnSource(final int highBit, final @NotNull Field field, - final ArrowWrapperTools. @NotNull ArrowTableContext arrowTableContext) { + final ArrowWrapperTools. @NotNull ArrowTableContext arrowTableContext) { super(Instant.class, highBit, field, arrowTableContext); } @@ -51,6 +49,6 @@ public final Instant get(final long rowKey) { } private Instant extract(final int posInBlock, final TimeStampVector vector) { - return vector.isSet(posInBlock) == 0 ? null : DateTimeUtils.epochNanosToInstant(vector.get(posInBlock)); + return vector.isSet(posInBlock) == 0 ? null : io.deephaven.time.DateTimeUtils.epochNanosToInstant(vector.get(posInBlock)); } } diff --git a/extensions/arrow/src/test/java/io/deephaven/extensions/arrow/ArrowTimestampVectorTest.java b/extensions/arrow/src/test/java/io/deephaven/extensions/arrow/ArrowTimestampVectorTest.java index f9c11feb00a..454aecce280 100644 --- a/extensions/arrow/src/test/java/io/deephaven/extensions/arrow/ArrowTimestampVectorTest.java +++ b/extensions/arrow/src/test/java/io/deephaven/extensions/arrow/ArrowTimestampVectorTest.java @@ -19,8 +19,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; - -import io.deephaven.time.DateTimeUtils; import org.apache.commons.lang3.mutable.MutableInt; import org.junit.Assert; import org.junit.Rule; @@ -29,14 +27,7 @@ public class ArrowTimestampVectorTest { private static final List expectedRows = Arrays.asList(0L, 1L, 2L, 4L, 8L, 9L); - private static final Instant[] expectedValues = new Instant[] { - DateTimeUtils.epochNanosToInstant(1670443801), - DateTimeUtils.epochNanosToInstant(1570443532), - null, - DateTimeUtils.epochNanosToInstant(0), - DateTimeUtils.epochNanosToInstant(170443801), - DateTimeUtils.epochNanosToInstant(-72309740) - }; + private static final Instant[] expectedValues = new Instant[] {io.deephaven.time.DateTimeUtils.epochNanosToInstant(1670443801), io.deephaven.time.DateTimeUtils.epochNanosToInstant(1570443532), null, io.deephaven.time.DateTimeUtils.epochNanosToInstant(0), io.deephaven.time.DateTimeUtils.epochNanosToInstant(170443801), io.deephaven.time.DateTimeUtils.epochNanosToInstant(-72309740)}; @Rule public final EngineCleanup framework = new EngineCleanup(); diff --git a/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSources.java b/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSources.java index 62ddcd2ebec..4804670da53 100644 --- a/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSources.java +++ b/replication/reflective/src/main/java/io/deephaven/replicators/GenerateArrowColumnSources.java @@ -125,7 +125,7 @@ public static void main(String[] args) { "get", "ForObject", WritableObjectChunk.class, List.of( preparePrivateExtractMethod(instant, TimeStampVector.class) .addStatement( - "return vector.isSet(posInBlock) == 0 ? null : new $T(vector.get(posInBlock))", + "return vector.isSet(posInBlock) == 0 ? null : io.deephaven.time.DateTimeUtils.epochNanosToInstant(vector.get(posInBlock))", instant) .build())); } From a38e1c251891e63cfa754d2b3bf0e6166968014f Mon Sep 17 00:00:00 2001 From: Ryan Caudy Date: Thu, 25 May 2023 00:04:33 -0400 Subject: [PATCH 08/11] Get to generation-cleanliness --- Plot/src/main/java/io/deephaven/plot/PlottingConvenience.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plot/src/main/java/io/deephaven/plot/PlottingConvenience.java b/Plot/src/main/java/io/deephaven/plot/PlottingConvenience.java index dfec8e50dcd..3b266861ab7 100644 --- a/Plot/src/main/java/io/deephaven/plot/PlottingConvenience.java +++ b/Plot/src/main/java/io/deephaven/plot/PlottingConvenience.java @@ -28,9 +28,9 @@ import io.deephaven.plot.filters.SelectableDataSet; import io.deephaven.plot.filters.SelectableDataSetOneClick; import io.deephaven.plot.filters.Selectables; -import java.time.Instant; import java.lang.Comparable; import java.lang.String; +import java.time.Instant; import java.util.Date; import java.util.List; import java.util.function.DoubleUnaryOperator; From 9bc7336a67a254862bc465dcfe24c9dd7f6f2582 Mon Sep 17 00:00:00 2001 From: Ryan Caudy Date: Thu, 25 May 2023 10:20:53 -0400 Subject: [PATCH 09/11] Delete dateTimeColumnAsNanos, use ReinterpretedColumn instead. --- .../java/io/deephaven/engine/table/Table.java | 23 ------------------- .../engine/table/impl/QueryTable.java | 6 ----- .../engine/table/impl/TableAdapter.java | 5 ---- .../engine/table/impl/TableDefaults.java | 7 ------ .../engine/table/impl/UncoalescedTable.java | 6 ----- .../engine/table/impl/select/ClockFilter.java | 7 ++---- .../engine/table/impl/QueryTableTest.java | 21 +++++++++-------- 7 files changed, 13 insertions(+), 62 deletions(-) diff --git a/engine/api/src/main/java/io/deephaven/engine/table/Table.java b/engine/api/src/main/java/io/deephaven/engine/table/Table.java index 685f1e8299e..6056c66edc4 100644 --- a/engine/api/src/main/java/io/deephaven/engine/table/Table.java +++ b/engine/api/src/main/java/io/deephaven/engine/table/Table.java @@ -359,29 +359,6 @@ public interface Table extends @ConcurrentMethod Table moveColumns(int index, boolean moveToEnd, String... columnsToMove); - // TODO-RWC: This needs a new immutable wrapping a pair and a target type - /** - * Produce a new table with the same columns as this table, but with a new column presenting the specified DateTime - * column as a Long column (with each DateTime represented instead as the corresponding number of nanos since the - * epoch). - *

      - * NOTE: This is a really just an updateView(), and behaves accordingly for column ordering and (re)placement. This - * doesn't work on data that has been brought fully into memory (e.g. via select()). Use a view instead. - * - * @param dateTimeColumnName Name of date time column - * @param nanosColumnName Name of nanos column - * @return The new table, constructed as explained above. - */ -// @ConcurrentMethod -// Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName); - - /** - * @param columnName name of column to convert from DateTime to nanos - * @return The result of dateTimeColumnAsNanos(columnName, columnName). - */ -// @ConcurrentMethod -// Table dateTimeColumnAsNanos(String columnName); - // ----------------------------------------------------------------------------------------------------------------- // Slice Operations // ----------------------------------------------------------------------------------------------------------------- diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/QueryTable.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/QueryTable.java index 25bf18e50a2..57b349ed73e 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/QueryTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/QueryTable.java @@ -864,12 +864,6 @@ public Table moveColumns(int index, boolean moveToEnd, String... columnsToMove) return viewOrUpdateView(Flavor.View, viewColumns); } -// @Override -// public Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName) { -// return viewOrUpdateView(Flavor.UpdateView, -// new ReinterpretedColumn<>(dateTimeColumnName, DateTime.class, nanosColumnName, long.class)); -// } - public static class FilteredTable extends QueryTable implements WhereFilter.RecomputeListener { private final QueryTable source; private final WhereFilter[] filters; diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/TableAdapter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/TableAdapter.java index 6937e6bb504..f60a1ee21ae 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/TableAdapter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/TableAdapter.java @@ -223,11 +223,6 @@ default Table moveColumns(int index, boolean moveToEnd, String... columnsToMove) return throwUnsupported(); } -// @Override -// default Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName) { -// return throwUnsupported(); -// } - @Override default Table slice(long firstPositionInclusive, long lastPositionExclusive) { return throwUnsupported(); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/TableDefaults.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/TableDefaults.java index f492b7de526..2941783558a 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/TableDefaults.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/TableDefaults.java @@ -307,13 +307,6 @@ default Table moveColumns(int index, String... columnsToMove) { return moveColumns(index, false, columnsToMove); } -// @Override -// @ConcurrentMethod -// @FinalDefault -// default Table dateTimeColumnAsNanos(String columnName) { -// return dateTimeColumnAsNanos(columnName, columnName); -// } - // ----------------------------------------------------------------------------------------------------------------- // Join Operations // ----------------------------------------------------------------------------------------------------------------- diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/UncoalescedTable.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/UncoalescedTable.java index a25acccd92f..65e20f18dfe 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/UncoalescedTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/UncoalescedTable.java @@ -276,12 +276,6 @@ public Table moveColumns(int index, boolean moveToEnd, String... columnsToMove) return coalesce().moveColumns(index, moveToEnd, columnsToMove); } -// @Override -// @ConcurrentMethod -// public Table dateTimeColumnAsNanos(String dateTimeColumnName, String nanosColumnName) { -// return coalesce().dateTimeColumnAsNanos(dateTimeColumnName, nanosColumnName); -// } - @Override @ConcurrentMethod public Table head(long size) { diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ClockFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ClockFilter.java index 36add50c92b..1ae24fe23f1 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ClockFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ClockFilter.java @@ -12,6 +12,7 @@ import io.deephaven.engine.table.Table; import io.deephaven.engine.table.TableDefinition; import io.deephaven.engine.table.impl.lang.QueryLanguageFunctionUtils; +import io.deephaven.engine.table.impl.sources.ReinterpretUtils; import io.deephaven.engine.updategraph.UpdateGraphProcessor; import io.deephaven.engine.updategraph.DynamicNode; import io.deephaven.engine.table.impl.QueryTable; @@ -66,11 +67,7 @@ public final WritableRowSet filter(@NotNull final RowSet selection, @NotNull fin Require.requirement(DynamicNode.notDynamicOrNotRefreshing(table), "DynamicNode.notDynamicOrNotRefreshing(table)"); - final ColumnSource instantColumnSource = table.getColumnSource(columnName, Instant.class); - nanosColumnSource = /*instantColumnSource.allowsReinterpret(long.class) - ? table.dateTimeColumnAsNanos(columnName).getColumnSource(columnName) - : */table.view(columnName + " = isNull(" + columnName + ") ? NULL_LONG : " + columnName + ".getNanos()") - .getColumnSource(columnName); + nanosColumnSource = ReinterpretUtils.instantToLongSource(table.getColumnSource(columnName, Instant.class)); final WritableRowSet initial = initializeAndGetInitialIndex(selection, fullSet, table); return initial == null ? RowSetFactory.empty() : initial; diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java index 741a9bf35d2..a262da04de4 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java @@ -60,6 +60,7 @@ import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.*; +import java.util.stream.LongStream; import static io.deephaven.api.agg.Aggregation.*; import static io.deephaven.engine.testutil.TstUtils.*; @@ -444,16 +445,16 @@ public void testView1() { assertEquals(Arrays.asList(-1, 1, 3), Arrays.asList(table.getColumn("t").get(0, 3))); } -// public void testReinterpret() { -// final Table source = emptyTable(5).select("dt = nanosToTime(ii)", "n = ii"); -// final Table result = source.dateTimeColumnAsNanos("dt"); -// assertEquals((long[]) result.getColumn(0).getDirect(), LongStream.range(0, 5).toArray()); -// final Table reflexive = result.view(new ReinterpretedColumn<>("dt", long.class, "dt", DateTime.class)); -// assertTableEquals(reflexive, source.dropColumns("n")); -// final Table sortedSource = source.sortDescending("dt").dropColumns("dt"); -// final Table sortedResult = result.sortDescending("dt").dropColumns("dt"); -// assertTableEquals(sortedResult, sortedSource); -// } + public void testReinterpret() { + final Table source = emptyTable(5).select("dt = nanosToTime(ii)", "n = ii"); + final Table result = source.view(List.of(new ReinterpretedColumn<>("dt", Instant.class, "dt", long.class))); + assertEquals((long[]) result.getColumn(0).getDirect(), LongStream.range(0, 5).toArray()); + final Table reflexive = result.view(new ReinterpretedColumn<>("dt", long.class, "dt", Instant.class)); + assertTableEquals(reflexive, source.dropColumns("n")); + final Table sortedSource = source.sortDescending("dt").dropColumns("dt"); + final Table sortedResult = result.sortDescending("dt").dropColumns("dt"); + assertTableEquals(sortedResult, sortedSource); + } public void testStaticSelectIntermediateColumn() { final Table et = emptyTable(3); From 374c7c04d115fa8b0c3f9cc43991327cf6afed38 Mon Sep 17 00:00:00 2001 From: Ryan Caudy Date: Thu, 25 May 2023 11:00:10 -0400 Subject: [PATCH 10/11] Spotless, and some manual touch-ups --- .../plot/axisformatters/NanosAxisFormat.java | 2 +- .../plot/example_plots/PrettyChart1.java | 4 +- .../plot/example_plots/SimpleXYDateTime.java | 2 +- .../plot/example_plots/SimpleXYTable.java | 8 +- .../util/tables/TestColumnHandlerFactory.java | 3 +- .../impl/replay/ReplayLastByGroupedTable.java | 3 +- .../impl/select/AbstractConditionFilter.java | 3 +- .../table/impl/select/ConditionFilter.java | 8 +- .../table/impl/select/DhFormulaColumn.java | 3 +- .../table/impl/select/InstantRangeFilter.java | 11 +- .../impl/select/ReinterpretedColumn.java | 12 +- .../table/impl/select/WhereFilterFactory.java | 3 +- .../UpdatePerformanceLogLoggerMemoryImpl.java | 6 +- .../engine/table/impl/FuzzerTest.java | 6 +- .../engine/table/impl/QueryFactory.java | 3 +- .../impl/QueryTableSelectUpdateTest.java | 4 +- .../engine/table/impl/QueryTableTest.java | 3 +- .../table/impl/QueryTableWhereTest.java | 6 +- .../impl/TestFormulaArrayEvaluation.java | 3 +- .../table/impl/select/TestClockFilters.java | 8 +- .../table/impl/util/TestTimeSeriesFilter.java | 3 +- .../deephaven/engine/util/TestTableTools.java | 3 +- .../io/deephaven/time/DateTimeFormatters.java | 2 +- .../java/io/deephaven/time/DateTimeUtils.java | 743 +++++++++--------- .../time/TimeLiteralReplacedExpression.java | 29 +- .../io/deephaven/time/TimeZoneAliases.java | 36 +- .../calendar/AbstractBusinessCalendar.java | 12 +- .../time/calendar/AbstractCalendar.java | 6 +- .../time/calendar/BusinessPeriod.java | 4 +- .../time/calendar/BusinessSchedule.java | 3 +- .../io/deephaven/time/calendar/Calendar.java | 4 +- .../deephaven/time/TestDateTimeFormatter.java | 2 +- .../io/deephaven/time/TestDateTimeUtils.java | 436 ++++++---- .../TestTimeLiteralReplacedExpression.java | 30 +- .../deephaven/time/TestTimeZoneAliases.java | 4 +- .../time/calendar/TestBusinessPeriod.java | 12 +- .../calendar/TestDefaultBusinessCalendar.java | 220 +++--- .../barrage/table/BarrageTable.java | 2 +- .../main/java/io/deephaven/csv/CsvTools.java | 5 +- .../csv/DeephavenTimeZoneParser.java | 5 +- .../java/io/deephaven/csv/TestCsvTools.java | 3 +- .../io/deephaven/jdbc/JdbcTypeMapper.java | 36 +- .../jdbc/JdbcToTableAdapterTest.java | 5 +- .../deephaven/kafka/ingest/JsonNodeUtil.java | 6 +- .../GenericRecordKeyOrValueSerializer.java | 6 +- .../figure/FigureWidgetTranslator.java | 4 +- .../ReplicateSegmentedSortedMultiset.java | 2 +- .../barrage/BarrageMessageProducer.java | 2 +- 48 files changed, 963 insertions(+), 763 deletions(-) diff --git a/Plot/src/main/java/io/deephaven/plot/axisformatters/NanosAxisFormat.java b/Plot/src/main/java/io/deephaven/plot/axisformatters/NanosAxisFormat.java index c615b206d58..97ff23e3a56 100644 --- a/Plot/src/main/java/io/deephaven/plot/axisformatters/NanosAxisFormat.java +++ b/Plot/src/main/java/io/deephaven/plot/axisformatters/NanosAxisFormat.java @@ -93,7 +93,7 @@ public StringBuffer format(final double number, final StringBuffer toAppendTo, f @Override public StringBuffer format(final long number, final StringBuffer toAppendTo, final FieldPosition pos) { - //noinspection DataFlowIssue + // noinspection DataFlowIssue return toAppendTo.append(formatter.format(DateTimeUtils.epochNanosToInstant(number))); } diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/PrettyChart1.java b/Plot/src/test/java/io/deephaven/plot/example_plots/PrettyChart1.java index de0a288edd5..50b47db48e7 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/PrettyChart1.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/PrettyChart1.java @@ -48,7 +48,7 @@ public static void main(String[] args) { DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 43), DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 44), DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 46), - }; + }; Instant[] date3 = { @@ -82,7 +82,7 @@ public static void main(String[] args) { DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 43), DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 44), DateTimeUtils.epochNanosToInstant(time + DateTimeUtils.DAY * 46), - }; + }; Number[] y1 = { 100, diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYDateTime.java b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYDateTime.java index 2f6827c74ff..8d45dd7b754 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYDateTime.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYDateTime.java @@ -27,7 +27,7 @@ public static void main(String[] args) { DateTimeUtils.epochNanosToInstant(time + 5 * DateTimeUtils.HOUR), DateTimeUtils.epochNanosToInstant(time + 6 * DateTimeUtils.HOUR), DateTimeUtils.epochNanosToInstant(time + 6 * DateTimeUtils.HOUR + 30 * DateTimeUtils.MINUTE), - }; + }; final double[] data = new double[] {1, 2, 3, 4, 5, 6, 7, 8}; diff --git a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYTable.java b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYTable.java index ae49e023d11..914804181bc 100644 --- a/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYTable.java +++ b/Plot/src/test/java/io/deephaven/plot/example_plots/SimpleXYTable.java @@ -15,9 +15,11 @@ public class SimpleXYTable { public static void main(String[] args) { - Table t = TableTools.emptyTable(10).updateView("Timestamp = DateTimeUtils.epochNanosToInstant(i * HOUR)", "Open = i", - "High = i + 2", "Low = i - 2", "Close = i + 1", "By = i % 5"); - Table t2 = TableTools.emptyTable(5000).updateView("Timestamp = DateTimeUtils.epochNanosToInstant(0) + (i * HOUR)", + Table t = TableTools.emptyTable(10).updateView( + "Timestamp = DateTimeUtils.epochNanosToInstant(i * HOUR)", + "Open = i", "High = i + 2", "Low = i - 2", "Close = i + 1", "By = i % 5"); + Table t2 = TableTools.emptyTable(5000).updateView( + "Timestamp = DateTimeUtils.epochNanosToInstant(0) + (i * HOUR)", "Open = i + 100", "High = i + 2 + 100", "Low = i - 2 + 100", "Close = i + 1 + 100", "By = i % 5"); final Figure f = diff --git a/Plot/src/test/java/io/deephaven/plot/util/tables/TestColumnHandlerFactory.java b/Plot/src/test/java/io/deephaven/plot/util/tables/TestColumnHandlerFactory.java index c5c23d0fe00..ae92ae24329 100644 --- a/Plot/src/test/java/io/deephaven/plot/util/tables/TestColumnHandlerFactory.java +++ b/Plot/src/test/java/io/deephaven/plot/util/tables/TestColumnHandlerFactory.java @@ -31,7 +31,8 @@ public class TestColumnHandlerFactory extends BaseArrayTestCase { private final Double[] Doubles = {null, 2d, 3d}; private final Number[] Numbers = {null, 2, 3}; private final Date[] dates = {null, new Date(1), new Date(2)}; - private final Instant[] instants = {null, DateTimeUtils.epochNanosToInstant(1), DateTimeUtils.epochNanosToInstant(2)}; + private final Instant[] instants = { + null, DateTimeUtils.epochNanosToInstant(1), DateTimeUtils.epochNanosToInstant(2)}; private final Paint[] paints = {null, new Color(100, 0, 0), new Color(0, 100, 0)}; private final String[] strings = {"A", "B", "C"}; private final Table table = TableTools.newTable( diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayLastByGroupedTable.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayLastByGroupedTable.java index da150be27f3..7ee013bec4e 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayLastByGroupedTable.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/replay/ReplayLastByGroupedTable.java @@ -44,7 +44,8 @@ public void run() { } do { currentIt = currentIt.next(); - } while (currentIt != null && DateTimeUtils.epochNanos(currentIt.lastTime) < replayer.clock().currentTimeNanos()); + } while (currentIt != null + && DateTimeUtils.epochNanos(currentIt.lastTime) < replayer.clock().currentTimeNanos()); if (currentIt != null) { allIterators.add(currentIt); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/AbstractConditionFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/AbstractConditionFilter.java index 93eb7818fe4..1510eb14b4b 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/AbstractConditionFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/AbstractConditionFilter.java @@ -141,7 +141,8 @@ public synchronized void init(TableDefinition tableDefinition) { log.debug("Expression (before) : " + formula); - final TimeLiteralReplacedExpression timeConversionResult = TimeLiteralReplacedExpression.convertExpression(formula); + final TimeLiteralReplacedExpression timeConversionResult = + TimeLiteralReplacedExpression.convertExpression(formula); log.debug("Expression (after time conversion) : " + timeConversionResult.getConvertedFormula()); diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ConditionFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ConditionFilter.java index ea36a4b0115..9090277c75e 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ConditionFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ConditionFilter.java @@ -375,7 +375,9 @@ private static String toTitleCase(String input) { } @Override - protected void generateFilterCode(TableDefinition tableDefinition, TimeLiteralReplacedExpression timeConversionResult, + protected void generateFilterCode( + TableDefinition tableDefinition, + TimeLiteralReplacedExpression timeConversionResult, QueryLanguageParser.Result result) { final StringBuilder classBody = getClassBody(tableDefinition, timeConversionResult, result); if (classBody == null) @@ -413,7 +415,9 @@ protected void generateFilterCode(TableDefinition tableDefinition, TimeLiteralRe } @Nullable - private StringBuilder getClassBody(TableDefinition tableDefinition, TimeLiteralReplacedExpression timeConversionResult, + private StringBuilder getClassBody( + TableDefinition tableDefinition, + TimeLiteralReplacedExpression timeConversionResult, QueryLanguageParser.Result result) { if (filterKernelClass != null) { return null; diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DhFormulaColumn.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DhFormulaColumn.java index dfb845f95cb..fe7cd08a3ad 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DhFormulaColumn.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/DhFormulaColumn.java @@ -189,7 +189,8 @@ public List initDef(Map> columnDefinitionMap } try { - final TimeLiteralReplacedExpression timeConversionResult = TimeLiteralReplacedExpression.convertExpression(formulaString); + final TimeLiteralReplacedExpression timeConversionResult = + TimeLiteralReplacedExpression.convertExpression(formulaString); final QueryLanguageParser.Result result = FormulaAnalyzer.getCompiledFormula(columnDefinitionMap, timeConversionResult); analyzedFormula = FormulaAnalyzer.analyze(formulaString, columnDefinitionMap, diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/InstantRangeFilter.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/InstantRangeFilter.java index 3c61e799fc6..b4d159fc654 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/InstantRangeFilter.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/InstantRangeFilter.java @@ -24,13 +24,14 @@ public InstantRangeFilter(String columnName, Instant val1, Instant val2) { super(columnName, DateTimeUtils.epochNanos(val1), DateTimeUtils.epochNanos(val2), true, true); } - public InstantRangeFilter(String columnName, Instant val1, Instant val2, boolean lowerInclusive, - boolean upperInclusive) { - super(columnName, DateTimeUtils.epochNanos(val1), DateTimeUtils.epochNanos(val2), lowerInclusive, upperInclusive); + public InstantRangeFilter( + String columnName, Instant val1, Instant val2, boolean lowerInclusive, boolean upperInclusive) { + super(columnName, DateTimeUtils.epochNanos(val1), DateTimeUtils.epochNanos(val2), + lowerInclusive, upperInclusive); } - public InstantRangeFilter(String columnName, long val1, long val2, boolean lowerInclusive, - boolean upperInclusive) { + public InstantRangeFilter( + String columnName, long val1, long val2, boolean lowerInclusive, boolean upperInclusive) { super(columnName, val1, val2, lowerInclusive, upperInclusive); } diff --git a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java index adff291d962..884f97b37a4 100644 --- a/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java +++ b/engine/table/src/main/java/io/deephaven/engine/table/impl/select/ReinterpretedColumn.java @@ -122,12 +122,12 @@ public List initInputs(TrackingRowSet rowSet, Map queryTable.update("Time = DateTimeUtils.epochNanosToInstant(0) + intCol * MINUTE") .update("Diff = Time_[i]")), partialEvalNuggetFrom(queryTable, true, - () -> queryTable.select("Time = DateTimeUtils.epochNanosToInstant(0) + intCol * MINUTE").select("Time", - "Diff = Time_[i]")), + () -> queryTable.select("Time = DateTimeUtils.epochNanosToInstant(0) + intCol * MINUTE") + .select("Time", "Diff = Time_[i]")), }; final int maxSteps = numSteps.intValue(); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java index a262da04de4..a066a0cae82 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableTest.java @@ -2225,7 +2225,8 @@ public void testInstantColumns() { DateTimeUtils.now(), DateTimeUtils.now(), DateTimeUtils.now())); - assertEquals(queryTable.groupBy("Sym").getDefinition().getColumn("Timestamp").getComponentType(), Instant.class); + assertEquals(queryTable.groupBy("Sym").getDefinition().getColumn("Timestamp").getComponentType(), + Instant.class); show(queryTable.update("x = Timestamp_[0]")); show(queryTable.update("TimeinSeconds=round((maxObj(Timestamp_)-minObj(Timestamp_))/1000000000)")); show(queryTable.groupBy("Sym").view("Sym", "x = Timestamp[0]")); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java index b8c53f7eba1..b0ce4b3c972 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java @@ -1008,9 +1008,11 @@ public void testComparableBinarySearch() { new TableComparator(sortedL3R.where("L3 < 20 && true"), sortedL3R.where("I6 < 20")), new TableComparator(sortedL3R.where("L3 < 20 && true"), sortedL3R.where("B8 < 20")), new TableComparator(sortedL3R.where("L3 < 20 && true"), sortedL3R.where("S7 < 20")), - new TableComparator(sortedDT.where("DT == null || DT.getNanos() < " + DateTimeUtils.epochNanos(filterTime)), + new TableComparator( + sortedDT.where("DT == null || DT.getNanos() < " + DateTimeUtils.epochNanos(filterTime)), sortedDT.where("DT < '" + filterTimeString + "'")), - new TableComparator(sortedDT.where("DT != null && DT.getNanos() >= " + DateTimeUtils.epochNanos(filterTime)), + new TableComparator( + sortedDT.where("DT != null && DT.getNanos() >= " + DateTimeUtils.epochNanos(filterTime)), sortedDT.where("DT >= '" + filterTimeString + "'")), new TableComparator(sortedCH.where("true && CH > 'M'"), sortedCH.where("CH > 'M'")), new TableComparator(sortedCH.where("CH==null || CH <= 'O'"), sortedCH.where("CH <= 'O'")), diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestFormulaArrayEvaluation.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestFormulaArrayEvaluation.java index 1cbd839c1d6..ff724cdf214 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/TestFormulaArrayEvaluation.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/TestFormulaArrayEvaluation.java @@ -1147,7 +1147,8 @@ public void dh12273_convertToShiftedFormula() { for (String[] formulaPair : formulas) { try { - final TimeLiteralReplacedExpression timeConversionResult = TimeLiteralReplacedExpression.convertExpression(formulaPair[0]); + final TimeLiteralReplacedExpression timeConversionResult = + TimeLiteralReplacedExpression.convertExpression(formulaPair[0]); final String convertedFilterFormula = timeConversionResult.getConvertedFormula(); final String shiftedFilterFormula = ShiftedColumnsFactory.convertToShiftedFormula(formulaPair[0]); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestClockFilters.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestClockFilters.java index 0cc9f906179..77d5e8b1191 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestClockFilters.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/select/TestClockFilters.java @@ -25,13 +25,13 @@ public class TestClockFilters extends RefreshingTableTestCase { private final Table testInput3; { final Table testInputRangeA = newTable( - col("Timestamp", epochNanosToInstant(1000L), epochNanosToInstant(2000L), epochNanosToInstant(3000L), epochNanosToInstant(1000L), - epochNanosToInstant(2000L), epochNanosToInstant(3000L)), + col("Timestamp", epochNanosToInstant(1000L), epochNanosToInstant(2000L), epochNanosToInstant(3000L), + epochNanosToInstant(1000L), epochNanosToInstant(2000L), epochNanosToInstant(3000L)), intCol("Int", 1, 2, 3, 1, 2, 3)); testInput1 = merge(testInputRangeA, testInputRangeA, testInputRangeA); final Table testInputRangeB = newTable( - col("Timestamp", epochNanosToInstant(2000L), epochNanosToInstant(2000L), epochNanosToInstant(3000L), epochNanosToInstant(2000L), - epochNanosToInstant(2000L), epochNanosToInstant(3000L)), + col("Timestamp", epochNanosToInstant(2000L), epochNanosToInstant(2000L), epochNanosToInstant(3000L), + epochNanosToInstant(2000L), epochNanosToInstant(2000L), epochNanosToInstant(3000L)), intCol("Int", 2, 2, 3, 2, 2, 3)); testInput2 = merge(testInputRangeA, testInputRangeB, testInputRangeA); testInput3 = merge(testInputRangeA, testInputRangeB, testInputRangeB); diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTimeSeriesFilter.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTimeSeriesFilter.java index 1e5cf51a4b8..e57e1641621 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTimeSeriesFilter.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/util/TestTimeSeriesFilter.java @@ -94,7 +94,8 @@ public Table e() { new UnitTestTimeSeriesFilter(unitTestTimeSeriesFilter); filtersToRefresh.add(new WeakReference<>(unitTestTimeSeriesFilter1)); return UpdateGraphProcessor.DEFAULT.exclusiveLock() - .computeLocked(() -> table.update("Date=DateTimeUtils.epochNanosToInstant(Date.getTime() * 1000000L)") + .computeLocked(() -> table + .update("Date=DateTimeUtils.epochNanosToInstant(Date.getTime() * 1000000L)") .where(unitTestTimeSeriesFilter1)); } }, diff --git a/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java b/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java index e5e5250d679..c27311ea1e0 100644 --- a/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java +++ b/engine/table/src/test/java/io/deephaven/engine/util/TestTableTools.java @@ -322,7 +322,8 @@ public void testRoundDecimalColumns() { public void testInstantColumnHolder() { // create two columns with the same data - final Instant[] data = new Instant[] {DateTimeUtils.epochNanosToInstant(100), DateTimeUtils.epochNanosToInstant(100), null}; + final Instant[] data = + new Instant[] {DateTimeUtils.epochNanosToInstant(100), DateTimeUtils.epochNanosToInstant(100), null}; final long[] longData = Arrays.stream(data) .mapToLong(dt -> dt == null ? QueryConstants.NULL_LONG : DateTimeUtils.epochNanos(dt)) .toArray(); diff --git a/engine/time/src/main/java/io/deephaven/time/DateTimeFormatters.java b/engine/time/src/main/java/io/deephaven/time/DateTimeFormatters.java index 5e969c286e5..4c8debb33f2 100644 --- a/engine/time/src/main/java/io/deephaven/time/DateTimeFormatters.java +++ b/engine/time/src/main/java/io/deephaven/time/DateTimeFormatters.java @@ -68,7 +68,7 @@ public enum DateTimeFormatters { private final DateTimeFormatter formatter; DateTimeFormatters(final boolean isISO, final boolean hasDate, final boolean hasTime, final int subsecondDigits, - final boolean hasTZ) { + final boolean hasTZ) { this.formatter = new DateTimeFormatter(isISO, hasDate, hasTime, subsecondDigits, hasTZ); } diff --git a/engine/time/src/main/java/io/deephaven/time/DateTimeUtils.java b/engine/time/src/main/java/io/deephaven/time/DateTimeUtils.java index 932082396b1..c26813db47c 100644 --- a/engine/time/src/main/java/io/deephaven/time/DateTimeUtils.java +++ b/engine/time/src/main/java/io/deephaven/time/DateTimeUtils.java @@ -190,8 +190,8 @@ public class DateTimeUtils { // region Overflow / Underflow /** - * A type of RuntimeException thrown when operations resulting in date time values would exceed the range - * available by max or min long nanoseconds. + * A type of RuntimeException thrown when operations resulting in date time values would exceed the range available + * by max or min long nanoseconds. */ public static class DateTimeOverflowException extends RuntimeException { /** @@ -280,25 +280,25 @@ private static long safeComputeNanos(final long epochSecond, final long nanoOfSe // TODO(deephaven-core#3044): Improve scaffolding around full system replay /** - * Clock used to compute the current time. This allows a custom clock to be used instead of the current system clock. - * This is mainly used for replay simulations. + * Clock used to compute the current time. This allows a custom clock to be used instead of the current system + * clock. This is mainly used for replay simulations. */ private static Clock clock; /** - * Set the clock used to compute the current time. This allows a custom clock to be used instead of the current system clock. - * This is mainly used for replay simulations. + * Set the clock used to compute the current time. This allows a custom clock to be used instead of the current + * system clock. This is mainly used for replay simulations. * - * @param clock clock used to compute the current time. Null uses the system clock. + * @param clock clock used to compute the current time. Null uses the system clock. */ @ScriptApi - public static void setClock( @Nullable final Clock clock) { + public static void setClock(@Nullable final Clock clock) { DateTimeUtils.clock = clock; } /** - * Returns the clock used to compute the current time. This may be the current system clock, or it may be an alternative - * clock used for replay simulations. + * Returns the clock used to compute the current time. This may be the current system clock, or it may be an + * alternative clock used for replay simulations. * * @see #setClock(Clock) * @return current clock. @@ -310,9 +310,8 @@ public static Clock currentClock() { } /** - * Provides the current date time according to the current clock. - * Under most circumstances, this method will return the current system time, but during replay simulations, - * this method can return the replay time. + * Provides the current date time according to the current clock. Under most circumstances, this method will return + * the current system time, but during replay simulations, this method can return the replay time. * * @see #currentClock() * @see #setClock(Clock) @@ -326,9 +325,9 @@ public static Instant now() { } /** - * Provides the current date time, with millisecond resolution, according to the current clock. - * Under most circumstances, this method will return the current system time, but during replay simulations, - * this method can return the replay time. + * Provides the current date time, with millisecond resolution, according to the current clock. Under most + * circumstances, this method will return the current system time, but during replay simulations, this method can + * return the replay time. * * @see #currentClock() * @see #setClock(Clock) @@ -342,8 +341,8 @@ public static Instant nowMillisResolution() { } /** - * Provides the current date time according to the system clock. - * Note that the system time may not be desirable during replay simulations. + * Provides the current date time according to the system clock. Note that the system time may not be desirable + * during replay simulations. * * @see #now() * @return the current date time according to the system clock. @@ -355,8 +354,8 @@ public static Instant nowSystem() { } /** - * Provides the current date time, with millisecond resolution, according to the system clock. - * Note that the system time may not be desirable during replay simulations. + * Provides the current date time, with millisecond resolution, according to the system clock. Note that the system + * time may not be desirable during replay simulations. * * @see #nowMillisResolution() * @return the current date time, with millisecond resolution, according to the system clock. @@ -368,8 +367,8 @@ public static Instant nowSystemMillisResolution() { } /** - * A cached date in a specific timezone. The cache is invalidated when the current clock indicates the next - * day has arrived. + * A cached date in a specific timezone. The cache is invalidated when the current clock indicates the next day has + * arrived. */ private abstract static class CachedDate { @@ -409,7 +408,8 @@ private CachedCurrentDate(@NotNull final ZoneId timeZone) { @Override void update(final long currentTimeMillis) { value = formatDate(epochMillisToInstant(currentTimeMillis), timeZone); - valueExpirationTimeMillis = epochMillis(atMidnight( epochNanosToInstant(millisToNanos(currentTimeMillis) + DAY), timeZone)); + valueExpirationTimeMillis = + epochMillis(atMidnight(epochNanosToInstant(millisToNanos(currentTimeMillis) + DAY), timeZone)); } } @@ -426,9 +426,9 @@ public ZoneId getKey(final CACHED_DATE_TYPE cachedDate) { new KeyedObjectHashMap<>(new CachedDateKey<>()); /** - * Provides the current date string according to the current clock. - * Under most circumstances, this method will return the date according to current system time, but during replay simulations, - * this method can return the date according to replay time. + * Provides the current date string according to the current clock. Under most circumstances, this method will + * return the date according to current system time, but during replay simulations, this method can return the date + * according to replay time. * * @param timeZone time zone. * @see #currentClock() @@ -442,8 +442,8 @@ public static String today(@NotNull final ZoneId timeZone) { } /** - * Provides the current date string according to the current clock and the default time zone. - * Under most circumstances, this method will return the date according to current system time, but during replay simulations, + * Provides the current date string according to the current clock and the default time zone. Under most + * circumstances, this method will return the date according to current system time, but during replay simulations, * this method can return the date according to replay time. * * @see #currentClock() @@ -461,7 +461,7 @@ public static String today() { // region Time Zone - //TODO: rename timeZone? + // TODO: rename timeZone? /** * Gets the time zone for a time zone name. * @@ -473,7 +473,7 @@ public static ZoneId tz(@NotNull String timeZone) { return TimeZoneAliases.zoneId(timeZone); } - //TODO: rename timeZone? + // TODO: rename timeZone? /** * Gets the sysetm default time zone. * @@ -493,7 +493,7 @@ public static ZoneId tz() { * * @param micros microseconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * microseconds converted to nanoseconds. + * microseconds converted to nanoseconds. */ @ScriptApi public static long microsToNanos(final long micros) { @@ -511,7 +511,7 @@ public static long microsToNanos(final long micros) { * * @param millis milliseconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * milliseconds converted to nanoseconds. + * milliseconds converted to nanoseconds. */ @ScriptApi public static long millisToNanos(final long millis) { @@ -529,7 +529,7 @@ public static long millisToNanos(final long millis) { * * @param seconds seconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * seconds converted to nanoseconds. + * seconds converted to nanoseconds. */ @ScriptApi public static long secondsToNanos(final long seconds) { @@ -548,7 +548,7 @@ public static long secondsToNanos(final long seconds) { * * @param nanos nanoseconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * nanoseconds converted to microseconds, rounded down. + * nanoseconds converted to microseconds, rounded down. */ @ScriptApi public static long nanosToMicros(final long nanos) { @@ -563,7 +563,7 @@ public static long nanosToMicros(final long nanos) { * * @param millis milliseconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * milliseconds converted to microseconds, rounded down. + * milliseconds converted to microseconds, rounded down. */ @ScriptApi public static long millisToMicros(final long millis) { @@ -578,7 +578,7 @@ public static long millisToMicros(final long millis) { * * @param seconds seconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * seconds converted to microseconds, rounded down. + * seconds converted to microseconds, rounded down. */ @ScriptApi public static long secondsToMicros(final long seconds) { @@ -593,7 +593,7 @@ public static long secondsToMicros(final long seconds) { * * @param nanos nanoseconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * nanoseconds converted to milliseconds, rounded down. + * nanoseconds converted to milliseconds, rounded down. */ @ScriptApi public static long nanosToMillis(final long nanos) { @@ -609,7 +609,7 @@ public static long nanosToMillis(final long nanos) { * * @param micros microseconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * microseconds converted to milliseconds, rounded down. + * microseconds converted to milliseconds, rounded down. */ @ScriptApi public static long microsToMillis(final long micros) { @@ -625,7 +625,7 @@ public static long microsToMillis(final long micros) { * * @param seconds nanoseconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * seconds converted to milliseconds, rounded down. + * seconds converted to milliseconds, rounded down. */ @ScriptApi public static long secondsToMillis(final long seconds) { @@ -641,7 +641,7 @@ public static long secondsToMillis(final long seconds) { * * @param nanos nanoseconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * nanoseconds converted to seconds, rounded down. + * nanoseconds converted to seconds, rounded down. */ @ScriptApi public static long nanosToSeconds(final long nanos) { @@ -656,7 +656,7 @@ public static long nanosToSeconds(final long nanos) { * * @param micros microseconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * microseconds converted to seconds, rounded down. + * microseconds converted to seconds, rounded down. */ @ScriptApi public static long microsToSeconds(final long micros) { @@ -671,7 +671,7 @@ public static long microsToSeconds(final long micros) { * * @param millis milliseconds to convert. * @return {@link QueryConstants#NULL_LONG} if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * milliseconds converted to seconds, rounded down. + * milliseconds converted to seconds, rounded down. */ @ScriptApi public static long millisToSeconds(final long millis) { @@ -712,7 +712,8 @@ public static Instant toInstant(@Nullable final ZonedDateTime dateTime) { */ @ScriptApi @Nullable - public static Instant toInstant(@Nullable final LocalDate date, @Nullable final LocalTime time, @Nullable ZoneId timeZone) { + public static Instant toInstant(@Nullable final LocalDate date, @Nullable final LocalTime time, + @Nullable ZoneId timeZone) { if (date == null || time == null || timeZone == null) { return null; } @@ -722,7 +723,7 @@ public static Instant toInstant(@Nullable final LocalDate date, @Nullable final .atZone(timeZone) // ZonedDateTime .toInstant(); // Instant } - + /** * Converts a date time to an {@link Instant}. * @@ -767,7 +768,8 @@ public static ZonedDateTime toZonedDateTime(@Nullable final Instant dateTime, @N */ @ScriptApi @Nullable - public static ZonedDateTime toZonedDateTime(@Nullable final LocalDate date, @Nullable final LocalTime time, @Nullable ZoneId timeZone) { + public static ZonedDateTime toZonedDateTime(@Nullable final LocalDate date, @Nullable final LocalTime time, + @Nullable ZoneId timeZone) { if (date == null || time == null || timeZone == null) { return null; } @@ -786,7 +788,7 @@ public static ZonedDateTime toZonedDateTime(@Nullable final LocalDate date, @Nul */ @Nullable public static LocalDate toLocalDate(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { - if(dateTime == null || timeZone == null){ + if (dateTime == null || timeZone == null) { return null; } @@ -801,7 +803,7 @@ public static LocalDate toLocalDate(@Nullable final Instant dateTime, @Nullable */ @Nullable public static LocalDate toLocalDate(@Nullable final ZonedDateTime dateTime) { - if(dateTime == null){ + if (dateTime == null) { return null; } @@ -817,7 +819,7 @@ public static LocalDate toLocalDate(@Nullable final ZonedDateTime dateTime) { */ @Nullable public static LocalTime toLocalTime(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { - if(dateTime == null || timeZone == null){ + if (dateTime == null || timeZone == null) { return null; } return toZonedDateTime(dateTime, timeZone).toLocalTime(); @@ -831,7 +833,7 @@ public static LocalTime toLocalTime(@Nullable final Instant dateTime, @Nullable */ @Nullable public static LocalTime toLocalTime(@Nullable final ZonedDateTime dateTime) { - if(dateTime == null){ + if (dateTime == null) { return null; } return dateTime.toLocalTime(); @@ -839,7 +841,7 @@ public static LocalTime toLocalTime(@Nullable final ZonedDateTime dateTime) { /** - * Converts a date time to a {@link Date}. The date time will be truncated to millisecond resolution. + * Converts a date time to a {@link Date}. The date time will be truncated to millisecond resolution. * * @param dateTime date time to convert. * @return {@link Date}, or null if any input is null. @@ -848,14 +850,14 @@ public static LocalTime toLocalTime(@Nullable final ZonedDateTime dateTime) { @Deprecated @Nullable public static Date toDate(@Nullable final Instant dateTime) { - if(dateTime == null){ + if (dateTime == null) { return null; } return new Date(epochMillis(dateTime)); } /** - * Converts a date time to a {@link Date}. The date time will be truncated to millisecond resolution. + * Converts a date time to a {@link Date}. The date time will be truncated to millisecond resolution. * * @param dateTime date time to convert. * @return {@link Date}, or null if any input is null. @@ -864,7 +866,7 @@ public static Date toDate(@Nullable final Instant dateTime) { @Deprecated @Nullable public static Date toDate(@Nullable final ZonedDateTime dateTime) { - if(dateTime == null){ + if (dateTime == null) { return null; } return new Date(epochMillis(dateTime)); @@ -998,8 +1000,8 @@ public static long epochSeconds(@Nullable final ZonedDateTime dateTime) { * Converts nanoseconds from the Epoch to an {@link Instant}. * * @param nanos nanoseconds since Epoch. - * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * nanoseconds from the Epoch converted to an {@link Instant}. + * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input nanoseconds from the Epoch + * converted to an {@link Instant}. */ @ScriptApi @Nullable @@ -1011,8 +1013,8 @@ public static Instant epochNanosToInstant(final long nanos) { * Converts microseconds from the Epoch to an {@link Instant}. * * @param micros microseconds since Epoch. - * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * microseconds from the Epoch converted to an {@link Instant}. + * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input microseconds from the Epoch + * converted to an {@link Instant}. */ @ScriptApi @Nullable @@ -1024,8 +1026,8 @@ public static Instant epochMicrosToInstant(final long micros) { * Converts milliseconds from the Epoch to an {@link Instant}. * * @param millis milliseconds since Epoch. - * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * milliseconds from the Epoch converted to an {@link Instant}. + * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input milliseconds from the Epoch + * converted to an {@link Instant}. */ @ScriptApi @Nullable @@ -1037,8 +1039,8 @@ public static Instant epochMillisToInstant(final long millis) { * Converts seconds from the Epoch to an {@link Instant}. * * @param seconds seconds since Epoch. - * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * seconds from the Epoch converted to an {@link Instant}. + * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input seconds from the Epoch + * converted to an {@link Instant}. */ @ScriptApi @Nullable @@ -1051,13 +1053,13 @@ public static Instant epochSecondsToInstant(final long seconds) { * * @param nanos nanoseconds since Epoch. * @param timeZone time zone. - * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * nanoseconds from the Epoch converted to a {@link ZonedDateTime}. + * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input nanoseconds from the Epoch + * converted to a {@link ZonedDateTime}. */ @ScriptApi @Nullable public static ZonedDateTime epochNanosToZonedDateTime(final long nanos, final ZoneId timeZone) { - if(timeZone == null){ + if (timeZone == null) { return null; } @@ -1070,13 +1072,13 @@ public static ZonedDateTime epochNanosToZonedDateTime(final long nanos, final Zo * * @param micros microseconds since Epoch. * @param timeZone time zone. - * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * microseconds from the Epoch converted to a {@link ZonedDateTime}. + * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input microseconds from the Epoch + * converted to a {@link ZonedDateTime}. */ @ScriptApi @Nullable public static ZonedDateTime epochMicrosToZonedDateTime(final long micros, @Nullable ZoneId timeZone) { - if(timeZone == null){ + if (timeZone == null) { return null; } @@ -1089,13 +1091,13 @@ public static ZonedDateTime epochMicrosToZonedDateTime(final long micros, @Nulla * * @param millis milliseconds since Epoch. * @param timeZone time zone. - * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * milliseconds from the Epoch converted to a {@link ZonedDateTime}. + * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input milliseconds from the Epoch + * converted to a {@link ZonedDateTime}. */ @ScriptApi @Nullable public static ZonedDateTime epochMillisToZonedDateTime(final long millis, final @Nullable ZoneId timeZone) { - if(timeZone == null){ + if (timeZone == null) { return null; } @@ -1108,13 +1110,13 @@ public static ZonedDateTime epochMillisToZonedDateTime(final long millis, final * * @param seconds seconds since Epoch. * @param timeZone time zone. - * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * seconds from the Epoch converted to a {@link ZonedDateTime}. + * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input seconds from the Epoch + * converted to a {@link ZonedDateTime}. */ @ScriptApi @Nullable public static ZonedDateTime epochSecondsToZonedDateTime(final long seconds, final @Nullable ZoneId timeZone) { - if(timeZone == null){ + if (timeZone == null) { return null; } // noinspection ConstantConditions @@ -1122,12 +1124,12 @@ public static ZonedDateTime epochSecondsToZonedDateTime(final long seconds, fina } /** - * Converts an offset from the Epoch to a nanoseconds from the Epoch. The offset can be in milliseconds, microseconds, - * or nanoseconds. Expected date ranges are used to infer the units for the offset. + * Converts an offset from the Epoch to a nanoseconds from the Epoch. The offset can be in milliseconds, + * microseconds, or nanoseconds. Expected date ranges are used to infer the units for the offset. * * @param epochOffset time offset from the Epoch. - * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * offset from the Epoch converted to nanoseconds from the Epoch. + * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input offset from the Epoch + * converted to nanoseconds from the Epoch. */ @ScriptApi public static long epochAutoToEpochNanos(final long epochOffset) { @@ -1149,35 +1151,35 @@ public static long epochAutoToEpochNanos(final long epochOffset) { } /** - * Converts an offset from the Epoch to an {@link Instant}. The offset can be in milliseconds, microseconds, - * or nanoseconds. Expected date ranges are used to infer the units for the offset. + * Converts an offset from the Epoch to an {@link Instant}. The offset can be in milliseconds, microseconds, or + * nanoseconds. Expected date ranges are used to infer the units for the offset. * * @param epochOffset time offset from the Epoch. - * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input - * offset from the Epoch converted to an {@link Instant}. + * @return null if the input is {@link QueryConstants#NULL_LONG}; otherwise the input offset from the Epoch + * converted to an {@link Instant}. */ @ScriptApi @Nullable public static Instant epochAutoToInstant(final long epochOffset) { - if( epochOffset == NULL_LONG ){ + if (epochOffset == NULL_LONG) { return null; } return epochNanosToInstant(epochAutoToEpochNanos(epochOffset)); } /** - * Converts an offset from the Epoch to a {@link ZonedDateTime}. The offset can be in milliseconds, microseconds, - * or nanoseconds. Expected date ranges are used to infer the units for the offset. + * Converts an offset from the Epoch to a {@link ZonedDateTime}. The offset can be in milliseconds, microseconds, or + * nanoseconds. Expected date ranges are used to infer the units for the offset. * * @param epochOffset time offset from the Epoch. * @param timeZone time zone. - * @return null if any input is null or {@link QueryConstants#NULL_LONG}; otherwise the input - * offset from the Epoch converted to a {@link ZonedDateTime}. + * @return null if any input is null or {@link QueryConstants#NULL_LONG}; otherwise the input offset from the Epoch + * converted to a {@link ZonedDateTime}. */ @ScriptApi @Nullable public static ZonedDateTime epochAutoToZonedDateTime(final long epochOffset, @Nullable ZoneId timeZone) { - if( epochOffset == NULL_LONG || timeZone == null ){ + if (epochOffset == NULL_LONG || timeZone == null) { return null; } return epochNanosToZonedDateTime(epochAutoToEpochNanos(epochOffset), timeZone); @@ -1194,11 +1196,11 @@ private static double epochMillisToExcelTime(final long millis, final ZoneId tim private static long excelTimeToEpochMillis(final double excel, final ZoneId timeZone) { final java.util.TimeZone tz = java.util.TimeZone.getTimeZone(timeZone); - final long mpo = (long)((excel - 25569) * 86400000); + final long mpo = (long) ((excel - 25569) * 86400000); final long o = tz.getOffset(mpo); final long m = mpo - o; final long o2 = tz.getOffset(m); - return mpo-o2; + return mpo - o2; } /** @@ -1206,11 +1208,12 @@ private static long excelTimeToEpochMillis(final double excel, final ZoneId time * * @param dateTime date time to convert. * @param timeZone time zone to use when interpreting the date time. - * @return 0.0 if either input is null; otherwise, the input date time converted to an Excel time represented as a double. + * @return 0.0 if either input is null; otherwise, the input date time converted to an Excel time represented as a + * double. */ @ScriptApi public static double toExcelTime(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { - if( dateTime == null || timeZone == null){ + if (dateTime == null || timeZone == null) { return 0.0; } @@ -1221,11 +1224,12 @@ public static double toExcelTime(@Nullable final Instant dateTime, @Nullable fin * Converts a date time to an Excel time represented as a double. * * @param dateTime date time to convert. - * @return 0.0 if either input is null; otherwise, the input date time converted to an Excel time represented as a double. + * @return 0.0 if either input is null; otherwise, the input date time converted to an Excel time represented as a + * double. */ @ScriptApi public static double toExcelTime(@Nullable final ZonedDateTime dateTime) { - if( dateTime == null){ + if (dateTime == null) { return 0.0; } @@ -1242,7 +1246,7 @@ public static double toExcelTime(@Nullable final ZonedDateTime dateTime) { @ScriptApi @Nullable public static Instant excelToInstant(final double excel, @Nullable final ZoneId timeZone) { - if(timeZone == null){ + if (timeZone == null) { return null; } @@ -1259,7 +1263,7 @@ public static Instant excelToInstant(final double excel, @Nullable final ZoneId @ScriptApi @Nullable public static ZonedDateTime excelToZonedDateTime(final double excel, @Nullable final ZoneId timeZone) { - if(timeZone == null){ + if (timeZone == null) { return null; } @@ -1275,8 +1279,8 @@ public static ZonedDateTime excelToZonedDateTime(final double excel, @Nullable f * * @param dateTime starting date time value. * @param nanos number of nanoseconds to add. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus the specified number - * of nanoseconds. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus + * the specified number of nanoseconds. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1288,7 +1292,7 @@ public static Instant plus(@Nullable final Instant dateTime, final long nanos) { try { return dateTime.plusNanos(nanos); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1298,8 +1302,8 @@ public static Instant plus(@Nullable final Instant dateTime, final long nanos) { * * @param dateTime starting date time value. * @param nanos number of nanoseconds to add. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus the specified number - * of nanoseconds. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus + * the specified number of nanoseconds. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1311,7 +1315,7 @@ public static ZonedDateTime plus(@Nullable final ZonedDateTime dateTime, final l try { return dateTime.plusNanos(nanos); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1321,7 +1325,8 @@ public static ZonedDateTime plus(@Nullable final ZonedDateTime dateTime, final l * * @param dateTime starting date time value. * @param period time period. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus the specified time period. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus + * the specified time period. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1333,7 +1338,7 @@ public static Instant plus(@Nullable final Instant dateTime, @Nullable final Dur try { return dateTime.plus(period); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1343,7 +1348,8 @@ public static Instant plus(@Nullable final Instant dateTime, @Nullable final Dur * * @param dateTime starting date time value. * @param period time period. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus the specified time period. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus + * the specified time period. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1355,7 +1361,7 @@ public static Instant plus(@Nullable final Instant dateTime, @Nullable final Per try { return dateTime.plus(period); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1365,7 +1371,8 @@ public static Instant plus(@Nullable final Instant dateTime, @Nullable final Per * * @param dateTime starting date time value. * @param period time period. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus the specified time period. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus + * the specified time period. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1377,7 +1384,7 @@ public static ZonedDateTime plus(@Nullable final ZonedDateTime dateTime, @Nullab try { return dateTime.plus(period); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1387,7 +1394,8 @@ public static ZonedDateTime plus(@Nullable final ZonedDateTime dateTime, @Nullab * * @param dateTime starting date time value. * @param period time period. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus the specified time period. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time plus + * the specified time period. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1399,7 +1407,7 @@ public static ZonedDateTime plus(@Nullable final ZonedDateTime dateTime, @Nullab try { return dateTime.plus(period); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1409,8 +1417,8 @@ public static ZonedDateTime plus(@Nullable final ZonedDateTime dateTime, @Nullab * * @param dateTime starting date time value. * @param nanos number of nanoseconds to subtract. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus the specified number - * of nanoseconds. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus + * the specified number of nanoseconds. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1422,7 +1430,7 @@ public static Instant minus(@Nullable final Instant dateTime, final long nanos) try { return dateTime.minusNanos(nanos); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1432,8 +1440,8 @@ public static Instant minus(@Nullable final Instant dateTime, final long nanos) * * @param dateTime starting date time value. * @param nanos number of nanoseconds to subtract. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus the specified number - * of nanoseconds. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus + * the specified number of nanoseconds. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1445,7 +1453,7 @@ public static ZonedDateTime minus(@Nullable final ZonedDateTime dateTime, final try { return dateTime.minusNanos(nanos); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1455,7 +1463,8 @@ public static ZonedDateTime minus(@Nullable final ZonedDateTime dateTime, final * * @param dateTime starting date time value. * @param period time period. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus the specified time period. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus + * the specified time period. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1467,7 +1476,7 @@ public static Instant minus(@Nullable final Instant dateTime, @Nullable final Du try { return dateTime.minus(period); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1477,7 +1486,8 @@ public static Instant minus(@Nullable final Instant dateTime, @Nullable final Du * * @param dateTime starting date time value. * @param period time period. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus the specified time period. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus + * the specified time period. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1489,7 +1499,7 @@ public static Instant minus(@Nullable final Instant dateTime, @Nullable final Pe try { return dateTime.minus(period); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1499,7 +1509,8 @@ public static Instant minus(@Nullable final Instant dateTime, @Nullable final Pe * * @param dateTime starting date time value. * @param period time period. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus the specified time period. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus + * the specified time period. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1511,7 +1522,7 @@ public static ZonedDateTime minus(@Nullable final ZonedDateTime dateTime, @Nulla try { return dateTime.minus(period); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1521,7 +1532,8 @@ public static ZonedDateTime minus(@Nullable final ZonedDateTime dateTime, @Nulla * * @param dateTime starting date time value. * @param period time period. - * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus the specified time period. + * @return null if either input is null or {@link QueryConstants#NULL_LONG}; otherwise the starting date time minus + * the specified time period. * @throws DateTimeOverflowException if the resultant date time exceeds the supported range. */ @ScriptApi @@ -1533,7 +1545,7 @@ public static ZonedDateTime minus(@Nullable final ZonedDateTime dateTime, @Nulla try { return dateTime.minus(period); - } catch (Exception ex){ + } catch (Exception ex) { throw new DateTimeOverflowException(ex); } } @@ -1543,7 +1555,8 @@ public static ZonedDateTime minus(@Nullable final ZonedDateTime dateTime, @Nulla * * @param dateTime1 first date time. * @param dateTime2 second date time. - * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in dateTime1 and dateTime2 in nanoseconds. + * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in dateTime1 and + * dateTime2 in nanoseconds. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1560,7 +1573,8 @@ public static long minus(@Nullable final Instant dateTime1, @Nullable final Inst * * @param dateTime1 first date time. * @param dateTime2 second date time. - * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in dateTime1 and dateTime2 in nanoseconds. + * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in dateTime1 and + * dateTime2 in nanoseconds. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1577,7 +1591,8 @@ public static long minus(@Nullable final ZonedDateTime dateTime1, @Nullable fina * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in nanoseconds. + * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in + * nanoseconds. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1590,7 +1605,8 @@ public static long diffNanos(@Nullable final Instant start, @Nullable final Inst * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in nanoseconds. + * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in + * nanoseconds. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1603,7 +1619,8 @@ public static long diffNanos(@Nullable final ZonedDateTime start, @Nullable fina * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in microseconds. + * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in + * microseconds. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1620,7 +1637,8 @@ public static long diffMicros(@Nullable final Instant start, @Nullable final Ins * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in microseconds. + * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in + * microseconds. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1637,7 +1655,8 @@ public static long diffMicros(@Nullable final ZonedDateTime start, @Nullable fin * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in milliseconds. + * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in + * milliseconds. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1654,7 +1673,8 @@ public static long diffMillis(@Nullable final Instant start, @Nullable final Ins * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in milliseconds. + * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise the difference in start and end in + * milliseconds. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1671,7 +1691,8 @@ public static long diffMillis(@Nullable final ZonedDateTime start, @Nullable fin * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in seconds. + * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in + * seconds. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1688,7 +1709,8 @@ public static double diffSeconds(@Nullable final Instant start, @Nullable final * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in seconds. + * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in + * seconds. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1705,7 +1727,8 @@ public static double diffSeconds(@Nullable final ZonedDateTime start, @Nullable * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in minutes. + * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in + * minutes. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1722,7 +1745,8 @@ public static double diffMinutes(@Nullable final Instant start, @Nullable final * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in minutes. + * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in + * minutes. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1739,7 +1763,8 @@ public static double diffMinutes(@Nullable final ZonedDateTime start, @Nullable * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in days. + * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in + * days. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1756,7 +1781,8 @@ public static double diffDays(@Nullable final Instant start, @Nullable final Ins * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in days. + * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in + * days. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1773,7 +1799,8 @@ public static double diffDays(@Nullable final ZonedDateTime start, @Nullable fin * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in years. + * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in + * years. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1790,7 +1817,8 @@ public static double diffYears(@Nullable final Instant start, @Nullable final In * * @param start start time. * @param end end time. - * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in years. + * @return {@link QueryConstants#NULL_DOUBLE} if either input is null; otherwise the difference in start and end in + * years. * @throws DateTimeOverflowException if the datetime arithmetic overflows or underflows. */ @ScriptApi @@ -1812,7 +1840,7 @@ public static double diffYears(@Nullable final ZonedDateTime start, @Nullable fi * @param dateTime1 first date time. * @param dateTime2 second date time. * @return true if dateTime1 is before dateTime2; otherwise, false if either value is null or if dateTime2 is equal - * to or before dateTime1. + * to or before dateTime1. */ @ScriptApi public static boolean isBefore(@Nullable final Instant dateTime1, @Nullable final Instant dateTime2) { @@ -1829,7 +1857,7 @@ public static boolean isBefore(@Nullable final Instant dateTime1, @Nullable fina * @param dateTime1 first date time. * @param dateTime2 second date time. * @return true if dateTime1 is before dateTime2; otherwise, false if either value is null or if dateTime2 is equal - * to or before dateTime1. + * to or before dateTime1. */ @ScriptApi public static boolean isBefore(@Nullable final ZonedDateTime dateTime1, @Nullable final ZonedDateTime dateTime2) { @@ -1845,8 +1873,8 @@ public static boolean isBefore(@Nullable final ZonedDateTime dateTime1, @Nullabl * * @param dateTime1 first date time. * @param dateTime2 second date time. - * @return true if dateTime1 is before or equal to dateTime2; otherwise, false if either value is null or if dateTime2 - * is before dateTime1. + * @return true if dateTime1 is before or equal to dateTime2; otherwise, false if either value is null or if + * dateTime2 is before dateTime1. */ @ScriptApi public static boolean isBeforeOrEqual(@Nullable final Instant dateTime1, @Nullable final Instant dateTime2) { @@ -1862,11 +1890,12 @@ public static boolean isBeforeOrEqual(@Nullable final Instant dateTime1, @Nullab * * @param dateTime1 first date time. * @param dateTime2 second date time. - * @return true if dateTime1 is before or equal to dateTime2; otherwise, false if either value is null or if dateTime2 - * is before dateTime1. + * @return true if dateTime1 is before or equal to dateTime2; otherwise, false if either value is null or if + * dateTime2 is before dateTime1. */ @ScriptApi - public static boolean isBeforeOrEqual(@Nullable final ZonedDateTime dateTime1, @Nullable final ZonedDateTime dateTime2) { + public static boolean isBeforeOrEqual(@Nullable final ZonedDateTime dateTime1, + @Nullable final ZonedDateTime dateTime2) { if (dateTime1 == null || dateTime2 == null) { return false; } @@ -1880,7 +1909,7 @@ public static boolean isBeforeOrEqual(@Nullable final ZonedDateTime dateTime1, @ * @param dateTime1 first date time. * @param dateTime2 second date time. * @return true if dateTime1 is after dateTime2; otherwise, false if either value is null or if dateTime2 is equal - * to or after dateTime1. + * to or after dateTime1. */ @ScriptApi public static boolean isAfter(@Nullable final Instant dateTime1, @Nullable final Instant dateTime2) { @@ -1897,7 +1926,7 @@ public static boolean isAfter(@Nullable final Instant dateTime1, @Nullable final * @param dateTime1 first date time. * @param dateTime2 second date time. * @return true if dateTime1 is after dateTime2; otherwise, false if either value is null or if dateTime2 is equal - * to or after dateTime1. + * to or after dateTime1. */ @ScriptApi public static boolean isAfter(@Nullable final ZonedDateTime dateTime1, @Nullable final ZonedDateTime dateTime2) { @@ -1913,8 +1942,8 @@ public static boolean isAfter(@Nullable final ZonedDateTime dateTime1, @Nullable * * @param dateTime1 first date time. * @param dateTime2 second date time. - * @return true if dateTime1 is after or equal to dateTime2; otherwise, false if either value is null or if dateTime2 - * is after dateTime1. + * @return true if dateTime1 is after or equal to dateTime2; otherwise, false if either value is null or if + * dateTime2 is after dateTime1. */ @ScriptApi public static boolean isAfterOrEqual(@Nullable final Instant dateTime1, @Nullable final Instant dateTime2) { @@ -1930,8 +1959,8 @@ public static boolean isAfterOrEqual(@Nullable final Instant dateTime1, @Nullabl * * @param dateTime1 first date time. * @param dateTime2 second date time. - * @return true if dateTime1 is after or equal to dateTime2; otherwise, false if either value is null or if dateTime2 - * is after dateTime1. + * @return true if dateTime1 is after or equal to dateTime2; otherwise, false if either value is null or if + * dateTime2 is after dateTime1. */ @ScriptApi public static boolean isAfterOrEqual(@Nullable final ZonedDateTime dateTime1, @Nullable ZonedDateTime dateTime2) { @@ -1950,8 +1979,8 @@ public static boolean isAfterOrEqual(@Nullable final ZonedDateTime dateTime1, @N * Returns the number of nanoseconds that have elapsed since the top of the millisecond. * * @param dateTime time. - * @return {@link QueryConstants#NULL_INT} if the input is null; otherwise, number of nanoseconds that have - * elapsed since the top of the millisecond. + * @return {@link QueryConstants#NULL_INT} if the input is null; otherwise, number of nanoseconds that have elapsed + * since the top of the millisecond. */ @ScriptApi public static int nanosOfMilli(@Nullable final Instant dateTime) { @@ -1966,8 +1995,8 @@ public static int nanosOfMilli(@Nullable final Instant dateTime) { * Returns the number of nanoseconds that have elapsed since the top of the millisecond. * * @param dateTime time. - * @return {@link QueryConstants#NULL_INT} if the input is null; otherwise, number of nanoseconds that have - * elapsed since the top of the millisecond. + * @return {@link QueryConstants#NULL_INT} if the input is null; otherwise, number of nanoseconds that have elapsed + * since the top of the millisecond. */ @ScriptApi public static int nanosOfMilli(@Nullable final ZonedDateTime dateTime) { @@ -1979,12 +2008,12 @@ public static int nanosOfMilli(@Nullable final ZonedDateTime dateTime) { } /** - * Returns the number of microseconds that have elapsed since the top of the millisecond. - * Nanoseconds are rounded, not dropped -- '20:41:39.123456700' has 457 micros, not 456. + * Returns the number of microseconds that have elapsed since the top of the millisecond. Nanoseconds are rounded, + * not dropped -- '20:41:39.123456700' has 457 micros, not 456. * * @param dateTime time. - * @return {@link QueryConstants#NULL_INT} if the input is null; otherwise, number of microseconds that have - * elapsed since the top of the millisecond. + * @return {@link QueryConstants#NULL_INT} if the input is null; otherwise, number of microseconds that have elapsed + * since the top of the millisecond. */ @ScriptApi public static int microsOfMilli(@Nullable final Instant dateTime) { @@ -1996,12 +2025,12 @@ public static int microsOfMilli(@Nullable final Instant dateTime) { } /** - * Returns the number of microseconds that have elapsed since the top of the millisecond. - * Nanoseconds are rounded, not dropped -- '20:41:39.123456700' has 457 micros, not 456. + * Returns the number of microseconds that have elapsed since the top of the millisecond. Nanoseconds are rounded, + * not dropped -- '20:41:39.123456700' has 457 micros, not 456. * * @param dateTime time. - * @return {@link QueryConstants#NULL_INT} if the input is null; otherwise, number of microseconds that have - * elapsed since the top of the millisecond. + * @return {@link QueryConstants#NULL_INT} if the input is null; otherwise, number of microseconds that have elapsed + * since the top of the millisecond. */ @ScriptApi public static int microsOfMilli(@Nullable final ZonedDateTime dateTime) { @@ -2018,7 +2047,7 @@ public static int microsOfMilli(@Nullable final ZonedDateTime dateTime) { * @param dateTime time. * @param timeZone time zone. * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise, number of nanoseconds that have - * elapsed since the top of the second. + * elapsed since the top of the second. */ @ScriptApi public static long nanosOfSecond(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { @@ -2034,7 +2063,7 @@ public static long nanosOfSecond(@Nullable final Instant dateTime, @Nullable fin * * @param dateTime time. * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise, number of nanoseconds that have - * elapsed since the top of the second. + * elapsed since the top of the second. */ @ScriptApi public static long nanosOfSecond(@Nullable final ZonedDateTime dateTime) { @@ -2051,7 +2080,7 @@ public static long nanosOfSecond(@Nullable final ZonedDateTime dateTime) { * @param dateTime time. * @param timeZone time zone. * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise, number of microseconds that have - * elapsed since the top of the second. + * elapsed since the top of the second. */ @ScriptApi public static long microsOfSecond(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { @@ -2067,7 +2096,7 @@ public static long microsOfSecond(@Nullable final Instant dateTime, @Nullable fi * * @param dateTime time. * @return {@link QueryConstants#NULL_LONG} if either input is null; otherwise, number of microseconds that have - * elapsed since the top of the second. + * elapsed since the top of the second. */ @ScriptApi public static long microsOfSecond(@Nullable final ZonedDateTime dateTime) { @@ -2084,7 +2113,7 @@ public static long microsOfSecond(@Nullable final ZonedDateTime dateTime) { * @param dateTime time. * @param timeZone time zone. * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of milliseconds that have - * elapsed since the top of the second. + * elapsed since the top of the second. */ @ScriptApi public static int millisOfSecond(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { @@ -2100,7 +2129,7 @@ public static int millisOfSecond(@Nullable final Instant dateTime, @Nullable fin * * @param dateTime time. * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of milliseconds that have - * elapsed since the top of the second. + * elapsed since the top of the second. */ @ScriptApi public static int millisOfSecond(@Nullable final ZonedDateTime dateTime) { @@ -2116,8 +2145,8 @@ public static int millisOfSecond(@Nullable final ZonedDateTime dateTime) { * * @param dateTime time. * @param timeZone time zone. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of seconds that have - * elapsed since the top of the minute. + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of seconds that have elapsed + * since the top of the minute. */ @ScriptApi public static int secondOfMinute(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { @@ -2132,8 +2161,8 @@ public static int secondOfMinute(@Nullable final Instant dateTime, @Nullable fin * Returns the number of seconds that have elapsed since the top of the minute. * * @param dateTime time. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of seconds that have - * elapsed since the top of the minute. + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of seconds that have elapsed + * since the top of the minute. */ @ScriptApi public static int secondOfMinute(@Nullable final ZonedDateTime dateTime) { @@ -2149,8 +2178,8 @@ public static int secondOfMinute(@Nullable final ZonedDateTime dateTime) { * * @param dateTime time. * @param timeZone time zone. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of minutes that have - * elapsed since the top of the hour. + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of minutes that have elapsed + * since the top of the hour. */ @ScriptApi public static int minuteOfHour(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { @@ -2165,8 +2194,8 @@ public static int minuteOfHour(@Nullable final Instant dateTime, @Nullable final * Returns the number of minutes that have elapsed since the top of the hour. * * @param dateTime time. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of minutes that have - * elapsed since the top of the hour. + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of minutes that have elapsed + * since the top of the hour. */ @ScriptApi public static int minuteOfHour(@Nullable final ZonedDateTime dateTime) { @@ -2183,7 +2212,7 @@ public static int minuteOfHour(@Nullable final ZonedDateTime dateTime) { * @param dateTime time. * @param timeZone time zone. * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of nanoseconds that have - * elapsed since the top of the day. + * elapsed since the top of the day. */ @ScriptApi public static long nanosOfDay(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { @@ -2199,7 +2228,7 @@ public static long nanosOfDay(@Nullable final Instant dateTime, @Nullable final * * @param dateTime time. * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of nanoseconds that have - * elapsed since the top of the day. + * elapsed since the top of the day. */ @ScriptApi public static long nanosOfDay(@Nullable final ZonedDateTime dateTime) { @@ -2207,7 +2236,8 @@ public static long nanosOfDay(@Nullable final ZonedDateTime dateTime) { return NULL_LONG; } - return dateTime.getHour()*HOUR + dateTime.getMinute()*MINUTE + dateTime.getSecond()*SECOND + dateTime.getNano(); + return dateTime.getHour() * HOUR + dateTime.getMinute() * MINUTE + dateTime.getSecond() * SECOND + + dateTime.getNano(); } /** @@ -2216,7 +2246,7 @@ public static long nanosOfDay(@Nullable final ZonedDateTime dateTime) { * @param dateTime time. * @param timeZone time zone. * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of milliseconds that have - * elapsed since the top of the day. + * elapsed since the top of the day. */ @ScriptApi public static int millisOfDay(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { @@ -2224,7 +2254,7 @@ public static int millisOfDay(@Nullable final Instant dateTime, @Nullable final return io.deephaven.util.QueryConstants.NULL_INT; } - return (int) nanosToMillis(nanosOfDay(dateTime,timeZone)); + return (int) nanosToMillis(nanosOfDay(dateTime, timeZone)); } /** @@ -2232,11 +2262,11 @@ public static int millisOfDay(@Nullable final Instant dateTime, @Nullable final * * @param dateTime time. * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of milliseconds that have - * elapsed since the top of the day. + * elapsed since the top of the day. */ @ScriptApi public static int millisOfDay(@Nullable final ZonedDateTime dateTime) { - if (dateTime == null ) { + if (dateTime == null) { return io.deephaven.util.QueryConstants.NULL_INT; } @@ -2248,8 +2278,8 @@ public static int millisOfDay(@Nullable final ZonedDateTime dateTime) { * * @param dateTime time. * @param timeZone time zone. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of seconds that have - * elapsed since the top of the day. + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of seconds that have elapsed + * since the top of the day. */ @ScriptApi public static int secondOfDay(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { @@ -2257,15 +2287,15 @@ public static int secondOfDay(@Nullable final Instant dateTime, @Nullable final return io.deephaven.util.QueryConstants.NULL_INT; } - return (int) nanosToSeconds(nanosOfDay(dateTime,timeZone)); + return (int) nanosToSeconds(nanosOfDay(dateTime, timeZone)); } /** * Returns the number of seconds that have elapsed since the top of the day. * * @param dateTime time. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of seconds that have - * elapsed since the top of the day. + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of seconds that have elapsed + * since the top of the day. */ @ScriptApi public static int secondOfDay(@Nullable final ZonedDateTime dateTime) { @@ -2281,8 +2311,8 @@ public static int secondOfDay(@Nullable final ZonedDateTime dateTime) { * * @param dateTime time. * @param timeZone time zone. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of minutes that have - * elapsed since the top of the day. + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of minutes that have elapsed + * since the top of the day. */ @ScriptApi public static int minuteOfDay(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { @@ -2290,15 +2320,15 @@ public static int minuteOfDay(@Nullable final Instant dateTime, @Nullable final return io.deephaven.util.QueryConstants.NULL_INT; } - return secondOfDay(dateTime,timeZone) / 60; + return secondOfDay(dateTime, timeZone) / 60; } - + /** * Returns the number of minutes that have elapsed since the top of the day. * * @param dateTime time. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of minutes that have - * elapsed since the top of the day. + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of minutes that have elapsed + * since the top of the day. */ @ScriptApi public static int minuteOfDay(@Nullable final ZonedDateTime dateTime) { @@ -2314,8 +2344,8 @@ public static int minuteOfDay(@Nullable final ZonedDateTime dateTime) { * * @param dateTime time. * @param timeZone time zone. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of hours that have - * elapsed since the top of the day. + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of hours that have elapsed + * since the top of the day. */ @ScriptApi public static int hourOfDay(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { @@ -2325,17 +2355,17 @@ public static int hourOfDay(@Nullable final Instant dateTime, @Nullable final Zo return hourOfDay(toZonedDateTime(dateTime, timeZone)); } - + /** * Returns the number of hours that have elapsed since the top of the day. * * @param dateTime time. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of hours that have - * elapsed since the top of the day. + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, number of hours that have elapsed + * since the top of the day. */ @ScriptApi public static int hourOfDay(@Nullable final ZonedDateTime dateTime) { - if (dateTime == null ) { + if (dateTime == null) { return io.deephaven.util.QueryConstants.NULL_INT; } @@ -2358,7 +2388,7 @@ public static int dayOfWeek(@Nullable final Instant dateTime, @Nullable final Zo return dayOfWeek(toZonedDateTime(dateTime, timeZone)); } - + /** * Returns a 1-based int value of the day of the week for a date time in the specified time zone, with 1 being * Monday and 7 being Sunday. @@ -2376,8 +2406,8 @@ public static int dayOfWeek(@Nullable final ZonedDateTime dateTime) { } /** - * Returns a 1-based int value of the day of the month for a date time and specified time zone. - * The first day of the month returns 1, the second day returns 2, etc. + * Returns a 1-based int value of the day of the month for a date time and specified time zone. The first day of the + * month returns 1, the second day returns 2, etc. * * @param dateTime time to find the day of the month of. * @param timeZone time zone. @@ -2393,8 +2423,8 @@ public static int dayOfMonth(@Nullable final Instant dateTime, @Nullable final Z } /** - * Returns a 1-based int value of the day of the month for a date time and specified time zone. - * The first day of the month returns 1, the second day returns 2, etc. + * Returns a 1-based int value of the day of the month for a date time and specified time zone. The first day of the + * month returns 1, the second day returns 2, etc. * * @param dateTime time to find the day of the month of. * @return A {@link QueryConstants#NULL_INT} if either input is null; otherwise, the day of the month. @@ -2409,8 +2439,8 @@ public static int dayOfMonth(@Nullable final ZonedDateTime dateTime) { } /** - * Returns a 1-based int value of the day of the year (Julian date) for a date time in the specified time zone. - * The first day of the year returns 1, the second day returns 2, etc. + * Returns a 1-based int value of the day of the year (Julian date) for a date time in the specified time zone. The + * first day of the year returns 1, the second day returns 2, etc. * * @param dateTime time to find the day of the month of. * @param timeZone time zone. @@ -2426,8 +2456,8 @@ public static int dayOfYear(@Nullable final Instant dateTime, @Nullable final Zo } /** - * Returns a 1-based int value of the day of the year (Julian date) for a date time in the specified time zone. - * The first day of the year returns 1, the second day returns 2, etc. + * Returns a 1-based int value of the day of the year (Julian date) for a date time in the specified time zone. The + * first day of the year returns 1, the second day returns 2, etc. * * @param dateTime time to find the day of the month of. * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, the day of the year. @@ -2510,7 +2540,8 @@ public static int year(@Nullable final ZonedDateTime dateTime) { * * @param dateTime time to find the day of the month of. * @param timeZone time zone. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, the year of the century (two-digit year). + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, the year of the century (two-digit + * year). */ @ScriptApi public static int yearOfCentury(@Nullable final Instant dateTime, @Nullable final ZoneId timeZone) { @@ -2525,7 +2556,8 @@ public static int yearOfCentury(@Nullable final Instant dateTime, @Nullable fina * Returns the year of the century (two-digit year) for a date time in the specified time zone. * * @param dateTime time to find the day of the month of. - * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, the year of the century (two-digit year). + * @return {@link QueryConstants#NULL_INT} if either input is null; otherwise, the year of the century (two-digit + * year). */ @ScriptApi public static int yearOfCentury(@Nullable final ZonedDateTime dateTime) { @@ -2541,8 +2573,8 @@ public static int yearOfCentury(@Nullable final ZonedDateTime dateTime) { * * @param dateTime time to compute the prior midnight for. * @param timeZone time zone. - * @return null if either input is null; otherwise a date time representing the prior midnight in the - * specified time zone. + * @return null if either input is null; otherwise a date time representing the prior midnight in the specified time + * zone. */ @ScriptApi @Nullable @@ -2558,8 +2590,8 @@ public static Instant atMidnight(@Nullable final Instant dateTime, @Nullable fin * Returns a date time for the prior midnight in the specified time zone. * * @param dateTime time to compute the prior midnight for. - * @return null if either input is null; otherwise a date time representing the prior midnight in the - * specified time zone. + * @return null if either input is null; otherwise a date time representing the prior midnight in the specified time + * zone. */ @ScriptApi @Nullable @@ -2652,7 +2684,8 @@ public static ZonedDateTime lowerBin(final @Nullable ZonedDateTime dateTime, lon return null; } - return epochNanosToZonedDateTime(Numeric.lowerBin(epochNanos(dateTime) - offset, intervalNanos) + offset, dateTime.getZone()); + return epochNanosToZonedDateTime(Numeric.lowerBin(epochNanos(dateTime) - offset, intervalNanos) + offset, + dateTime.getZone()); } /** @@ -2734,7 +2767,8 @@ public static ZonedDateTime upperBin(@Nullable final ZonedDateTime dateTime, lon return null; } - return epochNanosToZonedDateTime(Numeric.upperBin(epochNanos(dateTime) - offset, intervalNanos) + offset, dateTime.getZone()); + return epochNanosToZonedDateTime(Numeric.upperBin(epochNanos(dateTime) - offset, intervalNanos) + offset, + dateTime.getZone()); } // endregion @@ -2746,8 +2780,8 @@ public static ZonedDateTime upperBin(@Nullable final ZonedDateTime dateTime, lon * * @param str string. * @param length desired time string length. - * @return input string padded with zeros to the desired length. If the input string is longer than the - * desired length, the input string is returned. + * @return input string padded with zeros to the desired length. If the input string is longer than the desired + * length, the input string is returned. */ @NotNull static String padZeros(@NotNull final String str, final int length) { @@ -2766,7 +2800,7 @@ static String padZeros(@NotNull final String str, final int length) { @ScriptApi @Nullable public static String formatNanos(long nanos) { - if(nanos == NULL_LONG){ + if (nanos == NULL_LONG) { return null; } @@ -2804,7 +2838,8 @@ public static String formatNanos(long nanos) { * * @param dateTime time to format as a string. * @param timeZone time zone to use when formatting the string. - * @return null if either input is null; otherwise, the time formatted as a "yyyy-MM-ddThh:mm:ss.nnnnnnnnn TZ" string. + * @return null if either input is null; otherwise, the time formatted as a "yyyy-MM-ddThh:mm:ss.nnnnnnnnn TZ" + * string. */ @ScriptApi @Nullable @@ -2820,7 +2855,8 @@ public static String formatDateTime(@Nullable final Instant dateTime, @Nullable * Returns a date time formatted as a "yyyy-MM-ddThh:mm:ss.SSSSSSSSS TZ" string. * * @param dateTime time to format as a string. - * @return null if either input is null; otherwise, the time formatted as a "yyyy-MM-ddThh:mm:ss.nnnnnnnnn TZ" string. + * @return null if either input is null; otherwise, the time formatted as a "yyyy-MM-ddThh:mm:ss.nnnnnnnnn TZ" + * string. */ @ScriptApi @Nullable @@ -2835,9 +2871,9 @@ public static String formatDateTime(@Nullable final ZonedDateTime dateTime) { sb.append(ldt); - int pad = 29-ldt.length(); + int pad = 29 - ldt.length(); - if(ldt.length() == 19) { + if (ldt.length() == 19) { sb.append("."); pad--; } @@ -2894,7 +2930,7 @@ public static String formatDate(@Nullable final ZonedDateTime dateTime) { @ScriptApi @NotNull public static ZoneId parseTimeZone(@NotNull final String s) { - //noinspection ConstantConditions + // noinspection ConstantConditions if (s == null) { throw new RuntimeException("Cannot parse time zone ID (null): " + s); } @@ -2919,11 +2955,11 @@ public static ZoneId parseTimeZoneQuiet(@Nullable final String s) { try { return parseTimeZone(s); - } catch (Exception ex){ + } catch (Exception ex) { return null; } } - + /** * Converts a String of digits of any length to a nanoseconds long value. Will ignore anything longer than 9 digits, * and will throw a NumberFormatException if any non-numeric character is found. Strings shorter than 9 digits will @@ -2954,8 +2990,9 @@ private static long parseNanosInternal(@NotNull final String s) { /** * Parses the string argument as a time duration in nanoseconds. - * - * Time duration strings can be formatted as {@code hh:mm:ss[.nnnnnnnnn]} or as a duration string formatted as {@code [-]PnDTnHnMn.nS}. + *

      + * Time duration strings can be formatted as {@code hh:mm:ss[.nnnnnnnnn]} or as a duration string formatted as + * {@code [-]PnDTnHnMn.nS}. * * @param s string to be converted. * @return the number of nanoseconds represented by the string. @@ -2965,7 +3002,7 @@ private static long parseNanosInternal(@NotNull final String s) { */ @ScriptApi public static long parseNanos(@NotNull String s) { - //noinspection ConstantConditions + // noinspection ConstantConditions if (s == null) { throw new RuntimeException("Cannot parse time: " + s); } @@ -2995,11 +3032,11 @@ public static long parseNanos(@NotNull String s) { if (tokens.length == 2) { // hh:mm return multiplier * (1000000000L * (3600L * Integer.parseInt(tokens[0]) + 60L * Integer.parseInt(tokens[1])) - + dayNanos + subsecondNanos); + + dayNanos + subsecondNanos); } else if (tokens.length == 3) { // hh:mm:ss return multiplier * (1000000000L * (3600L * Integer.parseInt(tokens[0]) + 60L * Integer.parseInt(tokens[1]) - + Integer.parseInt(tokens[2])) + dayNanos + subsecondNanos); + + Integer.parseInt(tokens[2])) + dayNanos + subsecondNanos); } } @@ -3011,11 +3048,13 @@ public static long parseNanos(@NotNull String s) { /** * Parses the string argument as a time duration in nanoseconds. - * - * Time duration strings can be formatted as {@code hh:mm:ss[.nnnnnnnnn]} or as a duration string formatted as {@code [-]PnDTnHnMn.nS}. + *

      + * Time duration strings can be formatted as {@code hh:mm:ss[.nnnnnnnnn]} or as a duration string formatted as + * {@code [-]PnDTnHnMn.nS}. * * @param s string to be converted. - * @return the number of nanoseconds represented by the string, or {@link QueryConstants#NULL_LONG} if the string cannot be parsed. + * @return the number of nanoseconds represented by the string, or {@link QueryConstants#NULL_LONG} if the string + * cannot be parsed. * @see #parseDuration(String) * @see #parseDurationQuiet(String) */ @@ -3033,13 +3072,15 @@ public static long parseNanosQuiet(@Nullable String s) { } /** - * Parses the string argument as a period, which is a unit of time in terms of calendar time (days, weeks, months, years, etc.). - * - * Period strings are formatted according to the ISO-8601 duration format as {@code PnYnMnD} and {@code PnW}, where the - * coefficients can be positive or negative. Zero coefficients can be omitted. Optionally, the string can - * begin with a negative sign. - * + * Parses the string argument as a period, which is a unit of time in terms of calendar time (days, weeks, months, + * years, etc.). + *

      + * Period strings are formatted according to the ISO-8601 duration format as {@code PnYnMnD} and {@code PnW}, where + * the coefficients can be positive or negative. Zero coefficients can be omitted. Optionally, the string can begin + * with a negative sign. + *

      * Examples: + * *

            *   "P2Y"             -- Period.ofYears(2)
            *   "P3M"             -- Period.ofMonths(3)
      @@ -3059,7 +3100,7 @@ public static long parseNanosQuiet(@Nullable String s) {
           @ScriptApi
           @NotNull
           public static Period parsePeriod(@NotNull final String s) {
      -        //noinspection ConstantConditions
      +        // noinspection ConstantConditions
               if (s == null) {
                   throw new RuntimeException("Cannot parse period (null): " + s);
               }
      @@ -3072,13 +3113,15 @@ public static Period parsePeriod(@NotNull final String s) {
           }
       
           /**
      -     * Parses the string argument as a period, which is a unit of time in terms of calendar time (days, weeks, months, years, etc.).
      -     *
      -     * Period strings are formatted according to the ISO-8601 duration format as {@code PnYnMnD} and {@code PnW}, where the
      -     * coefficients can be positive or negative.  Zero coefficients can be omitted.  Optionally, the string can
      -     * begin with a negative sign.
      -     *
      +     * Parses the string argument as a period, which is a unit of time in terms of calendar time (days, weeks, months,
      +     * years, etc.).
      +     * 

      + * Period strings are formatted according to the ISO-8601 duration format as {@code PnYnMnD} and {@code PnW}, where + * the coefficients can be positive or negative. Zero coefficients can be omitted. Optionally, the string can begin + * with a negative sign. + *

      * Examples: + * *

            *   "P2Y"             -- Period.ofYears(2)
            *   "P3M"             -- Period.ofMonths(3)
      @@ -3111,12 +3154,13 @@ public static Period parsePeriodQuiet(@Nullable final String s) {
           /**
            * Parses the string argument as a duration, which is a unit of time in terms of clock time (24-hour days, hours,
            * minutes, seconds, and nanoseconds).
      -     *
      +     * 

      * Duration strings are formatted according to the ISO-8601 duration format as {@code [-]PnDTnHnMn.nS}, where the - * coefficients can be positive or negative. Zero coefficients can be omitted. Optionally, the string can - * begin with a negative sign. - * + * coefficients can be positive or negative. Zero coefficients can be omitted. Optionally, the string can begin with + * a negative sign. + *

      * Examples: + * *

            *    "PT20.345S" -- parses as "20.345 seconds"
            *    "PT15M"     -- parses as "15 minutes" (where a minute is 60 seconds)
      @@ -3136,7 +3180,7 @@ public static Period parsePeriodQuiet(@Nullable final String s) {
           @ScriptApi
           @NotNull
           public static Duration parseDuration(@NotNull final String s) {
      -        //noinspection ConstantConditions
      +        // noinspection ConstantConditions
               if (s == null) {
                   throw new RuntimeException("Cannot parse duration (null): " + s);
               }
      @@ -3151,12 +3195,13 @@ public static Duration parseDuration(@NotNull final String s) {
           /**
            * Parses the string argument as a duration, which is a unit of time in terms of clock time (24-hour days, hours,
            * minutes, seconds, and nanoseconds).
      -     *
      +     * 

      * Duration strings are formatted according to the ISO-8601 duration format as {@code [-]PnDTnHnMn.nS}, where the - * coefficients can be positive or negative. Zero coefficients can be omitted. Optionally, the string can - * begin with a negative sign. - * + * coefficients can be positive or negative. Zero coefficients can be omitted. Optionally, the string can begin with + * a negative sign. + *

      * Examples: + * *

            *    "PT20.345S" -- parses as "20.345 seconds"
            *    "PT15M"     -- parses as "15 minutes" (where a minute is 60 seconds)
      @@ -3188,8 +3233,9 @@ public static Duration parseDurationQuiet(@Nullable final String s) {
       
           /**
            * Parses the string argument as a date time.
      -     *
      -     * Date time strings are formatted according to the ISO 8601 date time format {@code yyyy-MM-ddThh:mm:ss[.SSSSSSSSS] TZ} and others.
      +     * 

      + * Date time strings are formatted according to the ISO 8601 date time format + * {@code yyyy-MM-ddThh:mm:ss[.SSSSSSSSS] TZ} and others. * * @param s date time string. * @return a date time represented by the input string. @@ -3204,8 +3250,9 @@ public static Instant parseInstant(@NotNull final String s) { /** * Parses the string argument as a date time. - * - * Date time strings are formatted according to the ISO 8601 date time format {@code yyyy-MM-ddThh:mm:ss[.SSSSSSSSS] TZ} and others. + *

      + * Date time strings are formatted according to the ISO 8601 date time format + * {@code yyyy-MM-ddThh:mm:ss[.SSSSSSSSS] TZ} and others. * * @param s date time string. * @return a date time represented by the input string, or null if the string can not be parsed. @@ -3227,8 +3274,9 @@ public static Instant parseInstantQuiet(@Nullable final String s) { /** * Parses the string argument as a date time. - * - * Date time strings are formatted according to the ISO 8601 date time format {@code yyyy-MM-ddThh:mm:ss[.SSSSSSSSS] TZ} and others. + *

      + * Date time strings are formatted according to the ISO 8601 date time format + * {@code yyyy-MM-ddThh:mm:ss[.SSSSSSSSS] TZ} and others. * * @param s date time string. * @return a date time represented by the input string. @@ -3238,7 +3286,7 @@ public static Instant parseInstantQuiet(@Nullable final String s) { @ScriptApi @NotNull public static ZonedDateTime parseZonedDateTime(@NotNull final String s) { - //noinspection ConstantConditions + // noinspection ConstantConditions if (s == null) { throw new RuntimeException("Cannot parse datetime (null): " + s); } @@ -3257,7 +3305,7 @@ public static ZonedDateTime parseZonedDateTime(@NotNull final String s) { } final String dateTimeString = s.substring(0, spaceIndex); - final String timeZoneString = s.substring(spaceIndex+1); + final String timeZoneString = s.substring(spaceIndex + 1); final ZoneId timeZone = parseTimeZoneQuiet(timeZoneString); if (timeZone == null) { @@ -3268,15 +3316,16 @@ public static ZonedDateTime parseZonedDateTime(@NotNull final String s) { } throw new RuntimeException("Date time does not match expected pattern"); - } catch (Exception ex){ + } catch (Exception ex) { throw new RuntimeException("Cannot parse datetime: " + s, ex); } } /** * Parses the string argument as a date time. - * - * Date time strings are formatted according to the ISO 8601 date time format {@code yyyy-MM-ddThh:mm:ss[.SSSSSSSSS] TZ} and others. + *

      + * Date time strings are formatted according to the ISO 8601 date time format + * {@code yyyy-MM-ddThh:mm:ss[.SSSSSSSSS] TZ} and others. * * @param s date time string. * @return a date time represented by the input string, or null if the string can not be parsed. @@ -3298,15 +3347,11 @@ public static ZonedDateTime parseZonedDateTimeQuiet(@Nullable final String s) { private enum DateGroupId { // Date(1), - Year(2, ChronoField.YEAR), - Month(3, ChronoField.MONTH_OF_YEAR), - Day(4, ChronoField.DAY_OF_MONTH), + Year(2, ChronoField.YEAR), Month(3, ChronoField.MONTH_OF_YEAR), Day(4, ChronoField.DAY_OF_MONTH), // Tod(5), - Hours(6, ChronoField.HOUR_OF_DAY), - Minutes(7, ChronoField.MINUTE_OF_HOUR), - Seconds(8, ChronoField.SECOND_OF_MINUTE), - Fraction(9, ChronoField.MILLI_OF_SECOND); - //TODO MICRO and NANOs are not supported! -- fix and unit test! + Hours(6, ChronoField.HOUR_OF_DAY), Minutes(7, ChronoField.MINUTE_OF_HOUR), Seconds(8, + ChronoField.SECOND_OF_MINUTE), Fraction(9, ChronoField.MILLI_OF_SECOND); + // TODO MICRO and NANOs are not supported! -- fix and unit test! final int id; final ChronoField field; @@ -3327,7 +3372,7 @@ private enum DateGroupId { @ScriptApi @NotNull public static ChronoField parseTimePrecision(@NotNull final String s) { - //noinspection ConstantConditions + // noinspection ConstantConditions if (s == null) { throw new RuntimeException("Cannot parse time precision (null): " + s); } @@ -3345,7 +3390,7 @@ public static ChronoField parseTimePrecision(@NotNull final String s) { } throw new RuntimeException("Time precision does not match expected pattern"); - }catch (Exception ex) { + } catch (Exception ex) { throw new RuntimeException("Cannot parse time precision: " + s, ex); } } @@ -3355,7 +3400,7 @@ public static ChronoField parseTimePrecision(@NotNull final String s) { * * @param s time string. * @return null if the time string cannot be parsed; otherwise, a {@link ChronoField} for the finest units in the - * string (e.g. "10:00:00" would yield SecondOfMinute). + * string (e.g. "10:00:00" would yield SecondOfMinute). * @throws RuntimeException if the string cannot be parased. */ @ScriptApi @@ -3433,26 +3478,13 @@ private static LocalDate matchLocalDate(final Matcher matcher, final DateStyle d } /** - * Converts a string into a local date. - * A local date is a date without a time or time zone. - * + * Converts a string into a local date. A local date is a date without a time or time zone. + *

      * The ideal date format is YYYY-MM-DD since it's the least ambiguous, but other formats are supported. - * - * Supported formats: - * - YYYY-MM-DD - * - YYYYMMDD - * - YYYY/MM/DD - * - MM/DD/YYYY - * - MM-DD-YYYY - * - DD/MM/YYYY - * - DD-MM-YYYY - * - YY/MM/DD - * - YY-MM-DD - * - MM/DD/YY - * - MM-DD-YY - * - DD/MM/YY - * - DD-MM-YY - * + *

      + * Supported formats: - YYYY-MM-DD - YYYYMMDD - YYYY/MM/DD - MM/DD/YYYY - MM-DD-YYYY - DD/MM/YYYY - DD-MM-YYYY - + * YY/MM/DD - YY-MM-DD - MM/DD/YY - MM-DD-YY - DD/MM/YY - DD-MM-YY + *

      * If the format matches the ISO YYYY-MM-DD or YYYYMMDD formats, the date style is ignored. * * @param s date string. @@ -3463,27 +3495,27 @@ private static LocalDate matchLocalDate(final Matcher matcher, final DateStyle d @ScriptApi @NotNull public static LocalDate parseLocalDate(@NotNull final String s, @Nullable final DateStyle dateStyle) { - //noinspection ConstantConditions + // noinspection ConstantConditions if (s == null) { throw new RuntimeException("Cannot parse date (null): " + s); } try { - final Matcher stdMatcher = STD_DATE_PATTERN.matcher(s); - if(stdMatcher.matches()) { - final int year = Integer.parseInt(stdMatcher.group("year")); - final int month = Integer.parseInt(stdMatcher.group("month")); - final int dayOfMonth = Integer.parseInt(stdMatcher.group("day")); - return LocalDate.of(year, month, dayOfMonth); - } + final Matcher stdMatcher = STD_DATE_PATTERN.matcher(s); + if (stdMatcher.matches()) { + final int year = Integer.parseInt(stdMatcher.group("year")); + final int month = Integer.parseInt(stdMatcher.group("month")); + final int dayOfMonth = Integer.parseInt(stdMatcher.group("day")); + return LocalDate.of(year, month, dayOfMonth); + } - final Matcher nosepMatcher = NOSEP_DATE_PATTERN.matcher(s); - if(nosepMatcher.matches()) { - final int year = Integer.parseInt(nosepMatcher.group("year")); - final int month = Integer.parseInt(nosepMatcher.group("month")); - final int dayOfMonth = Integer.parseInt(nosepMatcher.group("day")); - return LocalDate.of(year, month, dayOfMonth); - } + final Matcher nosepMatcher = NOSEP_DATE_PATTERN.matcher(s); + if (nosepMatcher.matches()) { + final int year = Integer.parseInt(nosepMatcher.group("year")); + final int month = Integer.parseInt(nosepMatcher.group("month")); + final int dayOfMonth = Integer.parseInt(nosepMatcher.group("day")); + return LocalDate.of(year, month, dayOfMonth); + } if (dateStyle == null) { throw new RuntimeException("Cannot parse date (null style): " + s); @@ -3507,26 +3539,15 @@ public static LocalDate parseLocalDate(@NotNull final String s, @Nullable final /** * Parses the string argument as a local date, which is a date without a time or time zone. - * + *

      * The ideal date format is {@code YYYY-MM-DD} since it's the least ambiguous, but other formats are supported. - * - * Supported formats: - * - {@code YYYY-MM-DD} - * - {@code YYYYMMDD} - * - {@code YYYY/MM/DD} - * - {@code MM/DD/YYYY} - * - {@code MM-DD-YYYY} - * - {@code DD/MM/YYYY} - * - {@code DD-MM-YYYY} - * - {@code YY/MM/DD} - * - {@code YY-MM-DD} - * - {@code MM/DD/YY} - * - {@code MM-DD-YY} - * - {@code DD/MM/YY} - * - {@code DD-MM-YY} + *

      + * Supported formats: - {@code YYYY-MM-DD} - {@code YYYYMMDD} - {@code YYYY/MM/DD} - {@code MM/DD/YYYY} - + * {@code MM-DD-YYYY} - {@code DD/MM/YYYY} - {@code DD-MM-YYYY} - {@code YY/MM/DD} - {@code YY-MM-DD} - + * {@code MM/DD/YY} - {@code MM-DD-YY} - {@code DD/MM/YY} - {@code DD-MM-YY} * * If the format matches the ISO {@code YYYY-MM-DD} or {@code YYYYMMDD} formats, the date style is ignored. - * + *

      * * @param s date string. * @param dateStyle style the date string is formatted in. @@ -3548,26 +3569,15 @@ public static LocalDate parseLocalDateQuiet(@Nullable final String s, @Nullable /** * Parses the string argument as a local date, which is a date without a time or time zone. - * + *

      * The ideal date format is {@code YYYY-MM-DD} since it's the least ambiguous, but other formats are supported. - * - * Supported formats: - * - {@code YYYY-MM-DD} - * - {@code YYYYMMDD} - * - {@code YYYY/MM/DD} - * - {@code MM/DD/YYYY} - * - {@code MM-DD-YYYY} - * - {@code DD/MM/YYYY} - * - {@code DD-MM-YYYY} - * - {@code YY/MM/DD} - * - {@code YY-MM-DD} - * - {@code MM/DD/YY} - * - {@code MM-DD-YY} - * - {@code DD/MM/YY} - * - {@code DD-MM-YY} + *

      + * Supported formats: - {@code YYYY-MM-DD} - {@code YYYYMMDD} - {@code YYYY/MM/DD} - {@code MM/DD/YYYY} - + * {@code MM-DD-YYYY} - {@code DD/MM/YYYY} - {@code DD-MM-YYYY} - {@code YY/MM/DD} - {@code YY-MM-DD} - + * {@code MM/DD/YY} - {@code MM-DD-YY} - {@code DD/MM/YY} - {@code DD-MM-YY} * * If the format matches the ISO {@code YYYY-MM-DD} or {@code YYYYMMDD} formats, the date style is ignored. - * + *

      * * @param s date string. * @return local date parsed according to the default date style. @@ -3581,26 +3591,15 @@ public static LocalDate parseLocalDate(@NotNull final String s) { /** * Parses the string argument as a local date, which is a date without a time or time zone. - * + *

      * The ideal date format is {@code YYYY-MM-DD} since it's the least ambiguous, but other formats are supported. - * - * Supported formats: - * - {@code YYYY-MM-DD} - * - {@code YYYYMMDD} - * - {@code YYYY/MM/DD} - * - {@code MM/DD/YYYY} - * - {@code MM-DD-YYYY} - * - {@code DD/MM/YYYY} - * - {@code DD-MM-YYYY} - * - {@code YY/MM/DD} - * - {@code YY-MM-DD} - * - {@code MM/DD/YY} - * - {@code MM-DD-YY} - * - {@code DD/MM/YY} - * - {@code DD-MM-YY} + *

      + * Supported formats: - {@code YYYY-MM-DD} - {@code YYYYMMDD} - {@code YYYY/MM/DD} - {@code MM/DD/YYYY} - + * {@code MM-DD-YYYY} - {@code DD/MM/YYYY} - {@code DD-MM-YYYY} - {@code YY/MM/DD} - {@code YY-MM-DD} - + * {@code MM/DD/YY} - {@code MM-DD-YY} - {@code DD/MM/YY} - {@code DD-MM-YY} * * If the format matches the ISO {@code YYYY-MM-DD} or {@code YYYYMMDD} formats, the date style is ignored. - * + *

      * * @param s date string. * @return local date parsed according to the default date style, or null if the string can not be parsed. @@ -3613,8 +3612,9 @@ public static LocalDate parseLocalDateQuiet(@Nullable final String s) { /** - * Parses the string argument as a local time, which is the time that would be read from a clock and does not have a date or timezone. - * + * Parses the string argument as a local time, which is the time that would be read from a clock and does not have a + * date or timezone. + *

      * Local time strings can be formatted as {@code hh:mm:ss[.nnnnnnnnn]}. * * @param s string to be converted @@ -3624,7 +3624,7 @@ public static LocalDate parseLocalDateQuiet(@Nullable final String s) { @ScriptApi @NotNull public static LocalTime parseLocalTime(@NotNull final String s) { - //noinspection ConstantConditions + // noinspection ConstantConditions if (s == null) { throw new RuntimeException("Cannot parse local time (null): " + s); } @@ -3652,8 +3652,9 @@ public static LocalTime parseLocalTime(@NotNull final String s) { } /** - * Parses the string argument as a local time, which is the time that would be read from a clock and does not have a date or timezone. - * + * Parses the string argument as a local time, which is the time that would be read from a clock and does not have a + * date or timezone. + *

      * Local time strings can be formatted as {@code hh:mm:ss[.nnnnnnnnn]}. * * @param s string to be converted diff --git a/engine/time/src/main/java/io/deephaven/time/TimeLiteralReplacedExpression.java b/engine/time/src/main/java/io/deephaven/time/TimeLiteralReplacedExpression.java index 37965eb1336..4f8c49d636a 100644 --- a/engine/time/src/main/java/io/deephaven/time/TimeLiteralReplacedExpression.java +++ b/engine/time/src/main/java/io/deephaven/time/TimeLiteralReplacedExpression.java @@ -10,18 +10,20 @@ import static io.deephaven.util.QueryConstants.NULL_LONG; -//TODO: Move? +// TODO: Move? /** - * TimeLiteralReplacedExpression is a query expression with time, period, and datetime literals replaced by instance variables. - * This contains the converted formula, instance variable declarations, and a map of types of the instance variables. + * TimeLiteralReplacedExpression is a query expression with time, period, and datetime literals replaced by instance + * variables. This contains the converted formula, instance variable declarations, and a map of types of the instance + * variables. */ public class TimeLiteralReplacedExpression { private final String convertedFormula; private final String instanceVariablesString; private final HashMap> newVariables; - private TimeLiteralReplacedExpression(String convertedFormula, String instanceVariablesString, HashMap> newVariables) { + private TimeLiteralReplacedExpression( + String convertedFormula, String instanceVariablesString, HashMap> newVariables) { this.convertedFormula = convertedFormula; this.instanceVariablesString = instanceVariablesString; this.newVariables = newVariables; @@ -55,11 +57,12 @@ public HashMap> getNewVariables() { } /** - * Converts a query expression to a {@link TimeLiteralReplacedExpression}, where the time, period, and datetime literals - * are replaced by instance variables. + * Converts a query expression to a {@link TimeLiteralReplacedExpression}, where the time, period, and datetime + * literals are replaced by instance variables. * * @param expression query expression to convert. - * @return a {@link TimeLiteralReplacedExpression} where time, period, and datetime literals have been replaced by instance variables. + * @return a {@link TimeLiteralReplacedExpression} where time, period, and datetime literals have been replaced by + * instance variables. * @throws Exception If any error occurs or a literal value cannot be parsed. */ // TODO: This should probably be handled in LanguageParser.accept(CharLiteralExpr, StringBuilder). @@ -113,8 +116,10 @@ public static TimeLiteralReplacedExpression convertExpression(String expression) durationIndex++; } else if (DateTimeUtils.parseNanosQuiet(s) != NULL_LONG) { matcher.appendReplacement(convertedFormula, "_nanos" + nanosIndex); - instanceVariablesString.append(" private long _nanos").append(nanosIndex) - .append("=DateTimeUtils.parseNanos(\"").append(expression, matcher.start() + 1, matcher.end() - 1) + instanceVariablesString + .append(" private long _nanos").append(nanosIndex) + .append("=DateTimeUtils.parseNanos(\"") + .append(expression, matcher.start() + 1, matcher.end() - 1) .append("\");\n"); newVariables.put("_nanos" + nanosIndex, long.class); @@ -122,7 +127,8 @@ public static TimeLiteralReplacedExpression convertExpression(String expression) } else if (DateTimeUtils.parseLocalDateQuiet(s) != null) { matcher.appendReplacement(convertedFormula, "_localDate" + localDateIndex); instanceVariablesString.append(" private java.time.LocalDate _localDate").append(localDateIndex) - .append("=DateTimeUtils.parseLocalDate(\"").append(expression, matcher.start() + 1, matcher.end() - 1) + .append("=DateTimeUtils.parseLocalDate(\"") + .append(expression, matcher.start() + 1, matcher.end() - 1) .append("\");\n"); newVariables.put("_localDate" + localDateIndex, LocalDate.class); localDateIndex++; @@ -140,7 +146,8 @@ public static TimeLiteralReplacedExpression convertExpression(String expression) matcher.appendTail(convertedFormula); - return new TimeLiteralReplacedExpression(convertedFormula.toString(), instanceVariablesString.toString(), newVariables); + return new TimeLiteralReplacedExpression( + convertedFormula.toString(), instanceVariablesString.toString(), newVariables); } } diff --git a/engine/time/src/main/java/io/deephaven/time/TimeZoneAliases.java b/engine/time/src/main/java/io/deephaven/time/TimeZoneAliases.java index ab1421b6234..4e80a52b275 100644 --- a/engine/time/src/main/java/io/deephaven/time/TimeZoneAliases.java +++ b/engine/time/src/main/java/io/deephaven/time/TimeZoneAliases.java @@ -13,7 +13,8 @@ import java.util.Map; /** - * TimeZoneAliases provides a service to look up time zones based on alias names and to format time zones to their aliased names. + * TimeZoneAliases provides a service to look up time zones based on alias names and to format time zones to their + * aliased names. */ public class TimeZoneAliases { @@ -40,7 +41,7 @@ private Cache() { /** * Adds a new time zone alias. * - * @param alias alias name + * @param alias alias name * @param zoneId time zone id name */ public void addAlias(@NotNull final String alias, @NotNull final String zoneId) { @@ -81,10 +82,12 @@ public ZoneId zoneId(@NotNull final String timeZone) { } /** - * Gets the name for a time zone. If an alias is present, the alias is returned. If not, the zone id name is returned. + * Gets the name for a time zone. If an alias is present, the alias is returned. If not, the zone id name is + * returned. * * @param timeZone time zone. - * @return name for the time zone. If an alias is present, the alias is returned. If not, the zone id name is returned. + * @return name for the time zone. If an alias is present, the alias is returned. If not, the zone id name is + * returned. */ @NotNull public String zoneName(@NotNull final ZoneId timeZone) { @@ -104,11 +107,12 @@ public Map getAllZones() { } /** - * Gets a reader from a property. - * If the property points to a file, a reader to that file is returned; otherwise, a reader to a resource in the JAR is returned. + * Gets a reader from a property. If the property points to a file, a reader to that file is returned; otherwise, a + * reader to a resource in the JAR is returned. * * @param property property. - * @return If the property points to a file, a reader to that file is returned; otherwise, a reader to a resource in the JAR is returned. + * @return If the property points to a file, a reader to that file is returned; otherwise, a reader to a resource in + * the JAR is returned. * @throws RuntimeException if no reader can be returned. */ private static Reader propertyToReader(final String property) { @@ -127,7 +131,8 @@ private static Reader propertyToReader(final String property) { } logger.error("Unable to open time zone alias property file: property=" + property + " location=" + location); - throw new RuntimeException("Unable to open time zone alias property file: property=" + property + " location=" + location); + throw new RuntimeException( + "Unable to open time zone alias property file: property=" + property + " location=" + location); } /** @@ -154,14 +159,17 @@ private static Cache load(final String property) { if (values.length == 2) { cache.addAlias(values[0], values[1]); } else if (values.length == 1) { - throw new IllegalArgumentException("Line contains too few values: property=" + property + " location=" + location + " line=" + line + " values=" + Arrays.toString(values)); + throw new IllegalArgumentException("Line contains too few values: property=" + property + + " location=" + location + " line=" + line + " values=" + Arrays.toString(values)); } else if (values.length > 2) { - throw new IllegalArgumentException("Line contains too many values: property=" + property + " location=" + location + " line=" + line + " values=" + Arrays.toString(values)); + throw new IllegalArgumentException("Line contains too many values: property=" + property + + " location=" + location + " line=" + line + " values=" + Arrays.toString(values)); } } } } catch (Exception e) { - throw new RuntimeException("Unable to load time zone aliases: property=" + property + " location=" + location, e); + throw new RuntimeException( + "Unable to load time zone aliases: property=" + property + " location=" + location, e); } return cache; @@ -179,10 +187,12 @@ public static ZoneId zoneId(@NotNull final String timeZone) { } /** - * Gets the name for a time zone. If an alias is present, the alias is returned. If not, the zone id name is returned. + * Gets the name for a time zone. If an alias is present, the alias is returned. If not, the zone id name is + * returned. * * @param timeZone time zone. - * @return name for the time zone. If an alias is present, the alias is returned. If not, the zone id name is returned. + * @return name for the time zone. If an alias is present, the alias is returned. If not, the zone id name is + * returned. */ @NotNull public static String zoneName(@NotNull final ZoneId timeZone) { diff --git a/engine/time/src/main/java/io/deephaven/time/calendar/AbstractBusinessCalendar.java b/engine/time/src/main/java/io/deephaven/time/calendar/AbstractBusinessCalendar.java index 76168947205..0c4b14d9281 100644 --- a/engine/time/src/main/java/io/deephaven/time/calendar/AbstractBusinessCalendar.java +++ b/engine/time/src/main/java/io/deephaven/time/calendar/AbstractBusinessCalendar.java @@ -477,8 +477,10 @@ public int numberOfBusinessDays(Instant start, Instant end) { } public int numberOfBusinessDays(Instant start, Instant end, final boolean endInclusive) { - return numberOfBusinessDays(start == null ? null : DateTimeUtils.formatDate(start,timeZone()), - end == null ? null : DateTimeUtils.formatDate(end,timeZone()), endInclusive); + return numberOfBusinessDays( + start == null ? null : DateTimeUtils.formatDate(start, timeZone()), + end == null ? null : DateTimeUtils.formatDate(end, timeZone()), + endInclusive); } public int numberOfBusinessDays(String start, String end) { @@ -513,8 +515,10 @@ public int numberOfNonBusinessDays(Instant start, Instant end) { } public int numberOfNonBusinessDays(Instant start, Instant end, final boolean endInclusive) { - return numberOfNonBusinessDays(start == null ? null : DateTimeUtils.formatDate(start,timeZone()), - end == null ? null : DateTimeUtils.formatDate(end,timeZone()), endInclusive); + return numberOfNonBusinessDays( + start == null ? null : DateTimeUtils.formatDate(start, timeZone()), + end == null ? null : DateTimeUtils.formatDate(end, timeZone()), + endInclusive); } public int numberOfNonBusinessDays(final String start, final String end) { diff --git a/engine/time/src/main/java/io/deephaven/time/calendar/AbstractCalendar.java b/engine/time/src/main/java/io/deephaven/time/calendar/AbstractCalendar.java index 80fb189f45c..c72f0c0134d 100644 --- a/engine/time/src/main/java/io/deephaven/time/calendar/AbstractCalendar.java +++ b/engine/time/src/main/java/io/deephaven/time/calendar/AbstractCalendar.java @@ -108,8 +108,10 @@ public int numberOfDays(final Instant start, final Instant end) { } public int numberOfDays(final Instant start, final Instant end, final boolean endInclusive) { - return numberOfDays(start == null ? null : DateTimeUtils.formatDate(start,timeZone()), - end == null ? null : DateTimeUtils.formatDate(end,timeZone()), endInclusive); + return numberOfDays( + start == null ? null : DateTimeUtils.formatDate(start, timeZone()), + end == null ? null : DateTimeUtils.formatDate(end, timeZone()), + endInclusive); } public int numberOfDays(final String start, final String end) { diff --git a/engine/time/src/main/java/io/deephaven/time/calendar/BusinessPeriod.java b/engine/time/src/main/java/io/deephaven/time/calendar/BusinessPeriod.java index f6e065dbdd9..b4cd9bfcd5d 100644 --- a/engine/time/src/main/java/io/deephaven/time/calendar/BusinessPeriod.java +++ b/engine/time/src/main/java/io/deephaven/time/calendar/BusinessPeriod.java @@ -64,6 +64,8 @@ public long getLength() { * @return true if the time is in this period; otherwise, false. */ public boolean contains(final Instant time) { - return time != null && (DateTimeUtils.epochNanos(startTime) <= DateTimeUtils.epochNanos(time) && DateTimeUtils.epochNanos(time) <= DateTimeUtils.epochNanos(endTime)); + return time != null + && DateTimeUtils.epochNanos(startTime) <= DateTimeUtils.epochNanos(time) + && DateTimeUtils.epochNanos(time) <= DateTimeUtils.epochNanos(endTime); } } diff --git a/engine/time/src/main/java/io/deephaven/time/calendar/BusinessSchedule.java b/engine/time/src/main/java/io/deephaven/time/calendar/BusinessSchedule.java index 7c81f3b637e..abe3460c598 100644 --- a/engine/time/src/main/java/io/deephaven/time/calendar/BusinessSchedule.java +++ b/engine/time/src/main/java/io/deephaven/time/calendar/BusinessSchedule.java @@ -32,7 +32,8 @@ public class BusinessSchedule implements Serializable { // make sure the periods are in order Arrays.sort(this.openPeriods, (o1, o2) -> { - final long compared = DateTimeUtils.epochNanos(o2.getStartTime()) - DateTimeUtils.epochNanos(o1.getStartTime()); + final long compared = + DateTimeUtils.epochNanos(o2.getStartTime()) - DateTimeUtils.epochNanos(o1.getStartTime()); if (compared > 0) { return -1; } else if (compared == 0) { diff --git a/engine/time/src/main/java/io/deephaven/time/calendar/Calendar.java b/engine/time/src/main/java/io/deephaven/time/calendar/Calendar.java index 5786c8469f8..3880f27314c 100644 --- a/engine/time/src/main/java/io/deephaven/time/calendar/Calendar.java +++ b/engine/time/src/main/java/io/deephaven/time/calendar/Calendar.java @@ -25,8 +25,8 @@ * * * Frequently, the default implementation for methods on Instants is to call the corresponding method on a String with - * {@code DateTimeUtils.formatDate}. This can be slower than methods written explicitly for DateTimes. If performance - * is an issue, consider overriding these methods with other behavior. + * {@code DateTimeUtils.formatDate}. This can be slower than methods written explicitly for DateTimes. If performance is + * an issue, consider overriding these methods with other behavior. */ public interface Calendar { diff --git a/engine/time/src/test/java/io/deephaven/time/TestDateTimeFormatter.java b/engine/time/src/test/java/io/deephaven/time/TestDateTimeFormatter.java index da003148832..dca80342142 100644 --- a/engine/time/src/test/java/io/deephaven/time/TestDateTimeFormatter.java +++ b/engine/time/src/test/java/io/deephaven/time/TestDateTimeFormatter.java @@ -10,7 +10,7 @@ import java.time.ZoneId; public class TestDateTimeFormatter extends BaseArrayTestCase { - + private static final ZoneId TZ_MN = ZoneId.of("America/Chicago"); private Instant t; diff --git a/engine/time/src/test/java/io/deephaven/time/TestDateTimeUtils.java b/engine/time/src/test/java/io/deephaven/time/TestDateTimeUtils.java index c8804a8f0e7..f0b5662bd67 100644 --- a/engine/time/src/test/java/io/deephaven/time/TestDateTimeUtils.java +++ b/engine/time/src/test/java/io/deephaven/time/TestDateTimeUtils.java @@ -61,51 +61,66 @@ public void testParseLocalDate() { assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDate("01/02/10", DateTimeUtils.DateStyle.MDY)); assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDate("02/01/10", DateTimeUtils.DateStyle.DMY)); - assertEquals(DateTimeUtils.parseLocalDate("01/02/03"), DateTimeUtils.parseLocalDate("01/02/03", DateTimeUtils.DateStyle.MDY)); + assertEquals(DateTimeUtils.parseLocalDate("01/02/03"), + DateTimeUtils.parseLocalDate("01/02/03", DateTimeUtils.DateStyle.MDY)); try { DateTimeUtils.parseLocalDate("JUNK", DateTimeUtils.DateStyle.YMD); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } try { - //noinspection ConstantConditions + // noinspection ConstantConditions DateTimeUtils.parseLocalDate(null, DateTimeUtils.DateStyle.YMD); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } try { DateTimeUtils.parseLocalDate("JUNK", null); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } } public void testParseLocalDateQuiet() { - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("20100102", DateTimeUtils.DateStyle.YMD)); - - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("2010-01-02", DateTimeUtils.DateStyle.YMD)); - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("01-02-2010", DateTimeUtils.DateStyle.MDY)); - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("02-01-2010", DateTimeUtils.DateStyle.DMY)); - - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("2010/01/02", DateTimeUtils.DateStyle.YMD)); - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("01/02/2010", DateTimeUtils.DateStyle.MDY)); - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("02/01/2010", DateTimeUtils.DateStyle.DMY)); - - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("10-01-02", DateTimeUtils.DateStyle.YMD)); - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("01-02-10", DateTimeUtils.DateStyle.MDY)); - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("02-01-10", DateTimeUtils.DateStyle.DMY)); - - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("10/01/02", DateTimeUtils.DateStyle.YMD)); - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("01/02/10", DateTimeUtils.DateStyle.MDY)); - assertEquals(LocalDate.of(2010, 1, 2), DateTimeUtils.parseLocalDateQuiet("02/01/10", DateTimeUtils.DateStyle.DMY)); - - assertEquals(DateTimeUtils.parseLocalDateQuiet("01/02/03"), DateTimeUtils.parseLocalDateQuiet("01/02/03", DateTimeUtils.DateStyle.MDY)); + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("20100102", DateTimeUtils.DateStyle.YMD)); + + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("2010-01-02", DateTimeUtils.DateStyle.YMD)); + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("01-02-2010", DateTimeUtils.DateStyle.MDY)); + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("02-01-2010", DateTimeUtils.DateStyle.DMY)); + + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("2010/01/02", DateTimeUtils.DateStyle.YMD)); + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("01/02/2010", DateTimeUtils.DateStyle.MDY)); + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("02/01/2010", DateTimeUtils.DateStyle.DMY)); + + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("10-01-02", DateTimeUtils.DateStyle.YMD)); + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("01-02-10", DateTimeUtils.DateStyle.MDY)); + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("02-01-10", DateTimeUtils.DateStyle.DMY)); + + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("10/01/02", DateTimeUtils.DateStyle.YMD)); + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("01/02/10", DateTimeUtils.DateStyle.MDY)); + assertEquals(LocalDate.of(2010, 1, 2), + DateTimeUtils.parseLocalDateQuiet("02/01/10", DateTimeUtils.DateStyle.DMY)); + + assertEquals(DateTimeUtils.parseLocalDateQuiet("01/02/03"), + DateTimeUtils.parseLocalDateQuiet("01/02/03", DateTimeUtils.DateStyle.MDY)); assertNull(DateTimeUtils.parseLocalDateQuiet("JUNK", DateTimeUtils.DateStyle.YMD)); assertNull(DateTimeUtils.parseLocalDateQuiet(null, DateTimeUtils.DateStyle.YMD)); @@ -153,15 +168,15 @@ public void testParseLocalTime() { DateTimeUtils.parseLocalTime("JUNK"); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } try { - //noinspection ConstantConditions + // noinspection ConstantConditions DateTimeUtils.parseLocalTime(null); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } } @@ -215,15 +230,15 @@ public void testParseTimeZoneId() { DateTimeUtils.parseTimeZone("JUNK"); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } try { - //noinspection ConstantConditions + // noinspection ConstantConditions DateTimeUtils.parseTimeZone(null); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } } @@ -267,29 +282,29 @@ public void testParseInstant() { DateTimeUtils.parseInstant("JUNK"); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } try { DateTimeUtils.parseInstant("2010-01-01T12:11"); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } try { DateTimeUtils.parseInstant("2010-01-01T12:11 JUNK"); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } try { - //noinspection ConstantConditions + // noinspection ConstantConditions DateTimeUtils.parseInstant(null); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } final String iso8601 = "2022-04-26T00:30:31.087360Z"; @@ -319,7 +334,8 @@ public void testParseInstantQuiet() { final String s = root + " " + tz; final ZoneId zid = DateTimeUtils.parseTimeZone(tz); final ZonedDateTime zdt = LocalDateTime.parse(root).atZone(zid); - TestCase.assertEquals("DateTime string: " + s + "'", zdt.toInstant(), DateTimeUtils.parseInstantQuiet(s)); + TestCase.assertEquals("DateTime string: " + s + "'", zdt.toInstant(), + DateTimeUtils.parseInstantQuiet(s)); } } @@ -363,29 +379,29 @@ public void testParseZonedDateTime() { DateTimeUtils.parseZonedDateTime("JUNK"); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } try { DateTimeUtils.parseZonedDateTime("2010-01-01T12:11"); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } try { DateTimeUtils.parseZonedDateTime("2010-01-01T12:11 JUNK"); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } try { - //noinspection ConstantConditions + // noinspection ConstantConditions DateTimeUtils.parseZonedDateTime(null); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } final String iso8601 = "2022-04-26T00:30:31.087360Z"; @@ -444,7 +460,7 @@ public void testParseNanos() { "15:25:49.064106107", }; - for (boolean isNeg : new boolean[]{false, true}) { + for (boolean isNeg : new boolean[] {false, true}) { for (String t : times) { long offset = 0; String lts = t; @@ -458,7 +474,8 @@ public void testParseNanos() { } final long sign = isNeg ? -1 : 1; - TestCase.assertEquals(sign * (LocalTime.parse(lts).toNanoOfDay() + offset), DateTimeUtils.parseNanos(t)); + TestCase.assertEquals(sign * (LocalTime.parse(lts).toNanoOfDay() + offset), + DateTimeUtils.parseNanos(t)); } } @@ -482,15 +499,15 @@ public void testParseNanos() { DateTimeUtils.parseNanos("JUNK"); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } try { - //noinspection ConstantConditions + // noinspection ConstantConditions DateTimeUtils.parseNanos(null); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } } @@ -511,7 +528,7 @@ public void testParseNanosQuiet() { "15:25:49.064106107", }; - for (boolean isNeg : new boolean[]{false, true}) { + for (boolean isNeg : new boolean[] {false, true}) { for (String t : times) { long offset = 0; String lts = t; @@ -525,7 +542,8 @@ public void testParseNanosQuiet() { } final long sign = isNeg ? -1 : 1; - TestCase.assertEquals(t, sign * (LocalTime.parse(lts).toNanoOfDay() + offset), DateTimeUtils.parseNanosQuiet(t)); + TestCase.assertEquals(t, sign * (LocalTime.parse(lts).toNanoOfDay() + offset), + DateTimeUtils.parseNanosQuiet(t)); } } @@ -561,11 +579,11 @@ public void testParsePeriod() { } try { - //noinspection ConstantConditions + // noinspection ConstantConditions DateTimeUtils.parsePeriod(null); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } } @@ -609,11 +627,11 @@ public void testParseDuration() { } try { - //noinspection ConstantConditions + // noinspection ConstantConditions DateTimeUtils.parseDuration(null); TestCase.fail("Should throw an exception"); } catch (Exception ex) { - //pass + // pass } } @@ -648,7 +666,8 @@ public void testParseTimePrecision() { TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, DateTimeUtils.parseTimePrecision("2021-02-03T11:14:32.1")); TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, DateTimeUtils.parseTimePrecision("2021-02-03T11:14:32.12")); TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, DateTimeUtils.parseTimePrecision("2021-02-03T11:14:32.123")); - TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, DateTimeUtils.parseTimePrecision("2021-02-03T11:14:32.1234")); + TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, + DateTimeUtils.parseTimePrecision("2021-02-03T11:14:32.1234")); TestCase.assertEquals(ChronoField.MINUTE_OF_HOUR, DateTimeUtils.parseTimePrecision("11:14")); TestCase.assertEquals(ChronoField.SECOND_OF_MINUTE, DateTimeUtils.parseTimePrecision("11:14:32")); @@ -661,15 +680,15 @@ public void testParseTimePrecision() { DateTimeUtils.parseTimePrecision("JUNK"); TestCase.fail("Should have thrown an exception"); } catch (Exception ex) { - //pass + // pass } try { - //noinspection ConstantConditions + // noinspection ConstantConditions DateTimeUtils.parseTimePrecision(null); TestCase.fail("Should have thrown an exception"); } catch (Exception ex) { - //pass + // pass } } @@ -677,11 +696,16 @@ public void testParseTimePrecisionQuiet() { TestCase.assertEquals(ChronoField.DAY_OF_MONTH, DateTimeUtils.parseTimePrecisionQuiet("2021-02-03")); TestCase.assertEquals(ChronoField.HOUR_OF_DAY, DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11")); TestCase.assertEquals(ChronoField.MINUTE_OF_HOUR, DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11:14")); - TestCase.assertEquals(ChronoField.SECOND_OF_MINUTE, DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11:14:32")); - TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11:14:32.1")); - TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11:14:32.12")); - TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11:14:32.123")); - TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11:14:32.1234")); + TestCase.assertEquals(ChronoField.SECOND_OF_MINUTE, + DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11:14:32")); + TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, + DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11:14:32.1")); + TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, + DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11:14:32.12")); + TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, + DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11:14:32.123")); + TestCase.assertEquals(ChronoField.MILLI_OF_SECOND, + DateTimeUtils.parseTimePrecisionQuiet("2021-02-03T11:14:32.1234")); TestCase.assertEquals(ChronoField.MINUTE_OF_HOUR, DateTimeUtils.parseTimePrecisionQuiet("11:14")); TestCase.assertEquals(ChronoField.SECOND_OF_MINUTE, DateTimeUtils.parseTimePrecisionQuiet("11:14:32")); @@ -716,16 +740,26 @@ public void testFormatDateTime() { final ZonedDateTime dt3 = dt2.atZone(TZ_NY); final ZonedDateTime dt4 = dt2.atZone(TZ_JP); - TestCase.assertEquals("2021-02-04T01:00:00.000000000 JP", DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:00 NY"), TZ_JP)); - TestCase.assertEquals("2021-02-04T01:23:00.000000000 JP", DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23 NY"), TZ_JP)); - TestCase.assertEquals("2021-02-04T01:23:01.000000000 JP", DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:01 NY"), TZ_JP)); - TestCase.assertEquals("2021-02-04T01:23:01.300000000 JP", DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:01.3 NY"), TZ_JP)); - TestCase.assertEquals("2021-02-04T01:23:32.456700000 JP", DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.4567 NY"), TZ_JP)); - TestCase.assertEquals("2021-02-04T01:23:32.456780000 JP", DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.45678 NY"), TZ_JP)); - TestCase.assertEquals("2021-02-04T01:23:32.456789000 JP", DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.456789 NY"), TZ_JP)); - TestCase.assertEquals("2021-02-04T01:23:32.456789100 JP", DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.4567891 NY"), TZ_JP)); - TestCase.assertEquals("2021-02-04T01:23:32.456789120 JP", DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.45678912 NY"), TZ_JP)); - TestCase.assertEquals("2021-02-04T01:23:32.456789123 JP", DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.456789123 NY"), TZ_JP)); + TestCase.assertEquals("2021-02-04T01:00:00.000000000 JP", + DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:00 NY"), TZ_JP)); + TestCase.assertEquals("2021-02-04T01:23:00.000000000 JP", + DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23 NY"), TZ_JP)); + TestCase.assertEquals("2021-02-04T01:23:01.000000000 JP", + DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:01 NY"), TZ_JP)); + TestCase.assertEquals("2021-02-04T01:23:01.300000000 JP", + DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:01.3 NY"), TZ_JP)); + TestCase.assertEquals("2021-02-04T01:23:32.456700000 JP", + DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.4567 NY"), TZ_JP)); + TestCase.assertEquals("2021-02-04T01:23:32.456780000 JP", + DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.45678 NY"), TZ_JP)); + TestCase.assertEquals("2021-02-04T01:23:32.456789000 JP", + DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.456789 NY"), TZ_JP)); + TestCase.assertEquals("2021-02-04T01:23:32.456789100 JP", + DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.4567891 NY"), TZ_JP)); + TestCase.assertEquals("2021-02-04T01:23:32.456789120 JP", + DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.45678912 NY"), TZ_JP)); + TestCase.assertEquals("2021-02-04T01:23:32.456789123 JP", + DateTimeUtils.formatDateTime(DateTimeUtils.parseInstant("2021-02-03T11:23:32.456789123 NY"), TZ_JP)); TestCase.assertEquals("2021-02-03T11:23:32.456789120 NY", DateTimeUtils.formatDateTime(dt2, TZ_NY)); TestCase.assertEquals("2021-02-04T01:23:32.456789120 JP", DateTimeUtils.formatDateTime(dt2, TZ_JP)); @@ -734,8 +768,10 @@ public void testFormatDateTime() { TestCase.assertEquals("2021-02-04T01:23:32.456789120 JP", DateTimeUtils.formatDateTime(dt4)); - TestCase.assertEquals("2021-02-03T20:23:32.456789120 Asia/Yerevan", DateTimeUtils.formatDateTime(dt2, ZoneId.of("Asia/Yerevan"))); - TestCase.assertEquals("2021-02-03T20:23:32.456789120 Asia/Yerevan", DateTimeUtils.formatDateTime(dt3.withZoneSameInstant(ZoneId.of("Asia/Yerevan")))); + TestCase.assertEquals("2021-02-03T20:23:32.456789120 Asia/Yerevan", + DateTimeUtils.formatDateTime(dt2, ZoneId.of("Asia/Yerevan"))); + TestCase.assertEquals("2021-02-03T20:23:32.456789120 Asia/Yerevan", + DateTimeUtils.formatDateTime(dt3.withZoneSameInstant(ZoneId.of("Asia/Yerevan")))); TestCase.assertNull(DateTimeUtils.formatDateTime(null, TZ_NY)); TestCase.assertNull(DateTimeUtils.formatDateTime(dt2, null)); @@ -750,16 +786,20 @@ public void testFormatNanos() { TestCase.assertEquals("0:00:02", DateTimeUtils.formatNanos(2 * DateTimeUtils.SECOND)); TestCase.assertEquals("0:00:00.002000000", DateTimeUtils.formatNanos(2 * DateTimeUtils.MILLI)); TestCase.assertEquals("0:00:00.000000002", DateTimeUtils.formatNanos(2)); - TestCase.assertEquals("23:45:39.123456789", DateTimeUtils.formatNanos(23 * DateTimeUtils.HOUR + 45 * DateTimeUtils.MINUTE + 39 * DateTimeUtils.SECOND + 123456789)); - TestCase.assertEquals("123:45:39.123456789", DateTimeUtils.formatNanos(123 * DateTimeUtils.HOUR + 45 * DateTimeUtils.MINUTE + 39 * DateTimeUtils.SECOND + 123456789)); + TestCase.assertEquals("23:45:39.123456789", DateTimeUtils.formatNanos( + 23 * DateTimeUtils.HOUR + 45 * DateTimeUtils.MINUTE + 39 * DateTimeUtils.SECOND + 123456789)); + TestCase.assertEquals("123:45:39.123456789", DateTimeUtils.formatNanos( + 123 * DateTimeUtils.HOUR + 45 * DateTimeUtils.MINUTE + 39 * DateTimeUtils.SECOND + 123456789)); TestCase.assertEquals("-2:00:00", DateTimeUtils.formatNanos(-2 * DateTimeUtils.HOUR)); TestCase.assertEquals("-0:02:00", DateTimeUtils.formatNanos(-2 * DateTimeUtils.MINUTE)); TestCase.assertEquals("-0:00:02", DateTimeUtils.formatNanos(-2 * DateTimeUtils.SECOND)); TestCase.assertEquals("-0:00:00.002000000", DateTimeUtils.formatNanos(-2 * DateTimeUtils.MILLI)); TestCase.assertEquals("-0:00:00.000000002", DateTimeUtils.formatNanos(-2)); - TestCase.assertEquals("-23:45:39.123456789", DateTimeUtils.formatNanos(-23 * DateTimeUtils.HOUR - 45 * DateTimeUtils.MINUTE - 39 * DateTimeUtils.SECOND - 123456789)); - TestCase.assertEquals("-123:45:39.123456789", DateTimeUtils.formatNanos(-123 * DateTimeUtils.HOUR - 45 * DateTimeUtils.MINUTE - 39 * DateTimeUtils.SECOND - 123456789)); + TestCase.assertEquals("-23:45:39.123456789", DateTimeUtils.formatNanos( + -23 * DateTimeUtils.HOUR - 45 * DateTimeUtils.MINUTE - 39 * DateTimeUtils.SECOND - 123456789)); + TestCase.assertEquals("-123:45:39.123456789", DateTimeUtils.formatNanos( + -123 * DateTimeUtils.HOUR - 45 * DateTimeUtils.MINUTE - 39 * DateTimeUtils.SECOND - 123456789)); TestCase.assertNull(DateTimeUtils.formatNanos(NULL_LONG)); } @@ -779,14 +819,14 @@ public void testMicrosToNanos() { DateTimeUtils.millisToNanos(Long.MAX_VALUE / 2); TestCase.fail("Should throw an exception"); } catch (DateTimeUtils.DateTimeOverflowException ex) { - //pass + // pass } try { DateTimeUtils.microsToNanos(-Long.MAX_VALUE / 2); TestCase.fail("Should throw an exception"); } catch (DateTimeUtils.DateTimeOverflowException ex) { - //pass + // pass } } @@ -811,14 +851,14 @@ public void testMillisToNanos() { DateTimeUtils.millisToNanos(Long.MAX_VALUE / 2); TestCase.fail("Should throw an exception"); } catch (DateTimeUtils.DateTimeOverflowException ex) { - //pass + // pass } try { DateTimeUtils.millisToNanos(-Long.MAX_VALUE / 2); TestCase.fail("Should throw an exception"); } catch (DateTimeUtils.DateTimeOverflowException ex) { - //pass + // pass } } @@ -855,14 +895,14 @@ public void testSecondsToNanos() { DateTimeUtils.secondsToNanos(Long.MAX_VALUE / 2); TestCase.fail("Should throw an exception"); } catch (DateTimeUtils.DateTimeOverflowException ex) { - //pass + // pass } try { DateTimeUtils.secondsToNanos(-Long.MAX_VALUE / 2); TestCase.fail("Should throw an exception"); } catch (DateTimeUtils.DateTimeOverflowException ex) { - //pass + // pass } } @@ -906,7 +946,8 @@ public void testToInstant() { TestCase.assertNull(DateTimeUtils.toInstant(ld, null, TZ_JP)); TestCase.assertNull(DateTimeUtils.toInstant(ld, lt, null)); - TestCase.assertEquals(Instant.ofEpochSecond(0, (nanos / DateTimeUtils.MILLI) * DateTimeUtils.MILLI), DateTimeUtils.toInstant(d)); + TestCase.assertEquals(Instant.ofEpochSecond(0, (nanos / DateTimeUtils.MILLI) * DateTimeUtils.MILLI), + DateTimeUtils.toInstant(d)); TestCase.assertNull(DateTimeUtils.toInstant((Date) null)); } @@ -920,7 +961,7 @@ public void testToLocalDate() { TestCase.assertNull(DateTimeUtils.toLocalDate(null, TZ_JP)); TestCase.assertEquals(ld, DateTimeUtils.toLocalDate(dt3)); - //noinspection ConstantConditions + // noinspection ConstantConditions TestCase.assertNull(DateTimeUtils.toLocalDate(null)); } @@ -934,7 +975,7 @@ public void testToLocalTime() { TestCase.assertNull(DateTimeUtils.toLocalTime(null, TZ_JP)); TestCase.assertEquals(lt, DateTimeUtils.toLocalTime(dt3)); - //noinspection ConstantConditions + // noinspection ConstantConditions TestCase.assertNull(DateTimeUtils.toLocalTime(null)); } @@ -1074,9 +1115,12 @@ public void testEpochAutoTo() { final Instant dt1s = DateTimeUtils.epochSecondsToInstant(seconds); TestCase.assertEquals(nanos, DateTimeUtils.epochAutoToEpochNanos(nanos)); - TestCase.assertEquals((nanos / DateTimeUtils.MICRO) * DateTimeUtils.MICRO, DateTimeUtils.epochAutoToEpochNanos(micros)); - TestCase.assertEquals((nanos / DateTimeUtils.MILLI) * DateTimeUtils.MILLI, DateTimeUtils.epochAutoToEpochNanos(millis)); - TestCase.assertEquals((nanos / DateTimeUtils.SECOND) * DateTimeUtils.SECOND, DateTimeUtils.epochAutoToEpochNanos(seconds)); + TestCase.assertEquals((nanos / DateTimeUtils.MICRO) * DateTimeUtils.MICRO, + DateTimeUtils.epochAutoToEpochNanos(micros)); + TestCase.assertEquals((nanos / DateTimeUtils.MILLI) * DateTimeUtils.MILLI, + DateTimeUtils.epochAutoToEpochNanos(millis)); + TestCase.assertEquals((nanos / DateTimeUtils.SECOND) * DateTimeUtils.SECOND, + DateTimeUtils.epochAutoToEpochNanos(seconds)); TestCase.assertEquals(NULL_LONG, DateTimeUtils.epochAutoToEpochNanos(NULL_LONG)); TestCase.assertEquals(dt1, DateTimeUtils.epochAutoToInstant(nanos)); @@ -1085,10 +1129,14 @@ public void testEpochAutoTo() { TestCase.assertEquals(dt1s, DateTimeUtils.epochAutoToInstant(seconds)); TestCase.assertNull(DateTimeUtils.epochAutoToInstant(NULL_LONG)); - TestCase.assertEquals(DateTimeUtils.toZonedDateTime(dt1, TZ_JP), DateTimeUtils.epochAutoToZonedDateTime(nanos, TZ_JP)); - TestCase.assertEquals(DateTimeUtils.toZonedDateTime(dt1u, TZ_JP), DateTimeUtils.epochAutoToZonedDateTime(micros, TZ_JP)); - TestCase.assertEquals(DateTimeUtils.toZonedDateTime(dt1m, TZ_JP), DateTimeUtils.epochAutoToZonedDateTime(millis, TZ_JP)); - TestCase.assertEquals(DateTimeUtils.toZonedDateTime(dt1s, TZ_JP), DateTimeUtils.epochAutoToZonedDateTime(seconds, TZ_JP)); + TestCase.assertEquals(DateTimeUtils.toZonedDateTime(dt1, TZ_JP), + DateTimeUtils.epochAutoToZonedDateTime(nanos, TZ_JP)); + TestCase.assertEquals(DateTimeUtils.toZonedDateTime(dt1u, TZ_JP), + DateTimeUtils.epochAutoToZonedDateTime(micros, TZ_JP)); + TestCase.assertEquals(DateTimeUtils.toZonedDateTime(dt1m, TZ_JP), + DateTimeUtils.epochAutoToZonedDateTime(millis, TZ_JP)); + TestCase.assertEquals(DateTimeUtils.toZonedDateTime(dt1s, TZ_JP), + DateTimeUtils.epochAutoToZonedDateTime(seconds, TZ_JP)); TestCase.assertNull(DateTimeUtils.epochAutoToZonedDateTime(NULL_LONG, TZ_JP)); TestCase.assertNull(DateTimeUtils.epochAutoToZonedDateTime(nanos, null)); } @@ -1116,11 +1164,13 @@ public void testExcelTimeTo() { final ZonedDateTime dt3 = dt2.atZone(TZ_AL); TestCase.assertEquals(dt2, DateTimeUtils.excelToInstant(DateTimeUtils.toExcelTime(dt2, TZ_AL), TZ_AL)); - TestCase.assertTrue(DateTimeUtils.epochMillis(dt2) - DateTimeUtils.epochMillis(DateTimeUtils.excelToInstant(DateTimeUtils.toExcelTime(dt2, TZ_AL), TZ_AL)) <= 1); + TestCase.assertTrue(DateTimeUtils.epochMillis(dt2) - DateTimeUtils + .epochMillis(DateTimeUtils.excelToInstant(DateTimeUtils.toExcelTime(dt2, TZ_AL), TZ_AL)) <= 1); TestCase.assertNull(DateTimeUtils.excelToInstant(123.4, null)); TestCase.assertEquals(dt3, DateTimeUtils.excelToZonedDateTime(DateTimeUtils.toExcelTime(dt2, TZ_AL), TZ_AL)); - TestCase.assertTrue(DateTimeUtils.epochMillis(dt3) - DateTimeUtils.epochMillis(DateTimeUtils.excelToZonedDateTime(DateTimeUtils.toExcelTime(dt2, TZ_AL), TZ_AL)) <= 1); + TestCase.assertTrue(DateTimeUtils.epochMillis(dt3) - DateTimeUtils + .epochMillis(DateTimeUtils.excelToZonedDateTime(DateTimeUtils.toExcelTime(dt2, TZ_AL), TZ_AL)) <= 1); TestCase.assertNull(DateTimeUtils.excelToZonedDateTime(123.4, null)); // Test daylight savings time @@ -1130,11 +1180,15 @@ public void testExcelTimeTo() { final ZonedDateTime dstZdt1 = DateTimeUtils.toZonedDateTime(dstI1, ZoneId.of("America/Denver")); final ZonedDateTime dstZdt2 = DateTimeUtils.toZonedDateTime(dstI2, ZoneId.of("America/Denver")); - TestCase.assertEquals(dstI1, DateTimeUtils.excelToInstant(DateTimeUtils.toExcelTime(dstI1, ZoneId.of("America/Denver")), ZoneId.of("America/Denver"))); - TestCase.assertEquals(dstI2, DateTimeUtils.excelToInstant(DateTimeUtils.toExcelTime(dstI2, ZoneId.of("America/Denver")), ZoneId.of("America/Denver"))); + TestCase.assertEquals(dstI1, DateTimeUtils.excelToInstant( + DateTimeUtils.toExcelTime(dstI1, ZoneId.of("America/Denver")), ZoneId.of("America/Denver"))); + TestCase.assertEquals(dstI2, DateTimeUtils.excelToInstant( + DateTimeUtils.toExcelTime(dstI2, ZoneId.of("America/Denver")), ZoneId.of("America/Denver"))); - TestCase.assertEquals(dstZdt1, DateTimeUtils.excelToZonedDateTime(DateTimeUtils.toExcelTime(dstZdt1), ZoneId.of("America/Denver"))); - TestCase.assertEquals(dstZdt2, DateTimeUtils.excelToZonedDateTime(DateTimeUtils.toExcelTime(dstZdt2), ZoneId.of("America/Denver"))); + TestCase.assertEquals(dstZdt1, + DateTimeUtils.excelToZonedDateTime(DateTimeUtils.toExcelTime(dstZdt1), ZoneId.of("America/Denver"))); + TestCase.assertEquals(dstZdt2, + DateTimeUtils.excelToZonedDateTime(DateTimeUtils.toExcelTime(dstZdt2), ZoneId.of("America/Denver"))); } public void testIsBefore() { @@ -1146,11 +1200,11 @@ public void testIsBefore() { TestCase.assertFalse(DateTimeUtils.isBefore(i2, i1)); TestCase.assertFalse(DateTimeUtils.isBefore(i2, i3)); TestCase.assertFalse(DateTimeUtils.isBefore(i3, i2)); - //noinspection ConstantConditions + // noinspection ConstantConditions TestCase.assertFalse(DateTimeUtils.isBefore(null, i2)); - //noinspection ConstantConditions + // noinspection ConstantConditions TestCase.assertFalse(DateTimeUtils.isBefore((Instant) null, null)); - //noinspection ConstantConditions + // noinspection ConstantConditions TestCase.assertFalse(DateTimeUtils.isBefore(i1, null)); final ZonedDateTime z1 = i1.atZone(TZ_AL); @@ -1162,7 +1216,7 @@ public void testIsBefore() { TestCase.assertFalse(DateTimeUtils.isBefore(z2, z3)); TestCase.assertFalse(DateTimeUtils.isBefore(z3, z2)); TestCase.assertFalse(DateTimeUtils.isBefore(null, z2)); - //noinspection ConstantConditions + // noinspection ConstantConditions TestCase.assertFalse(DateTimeUtils.isBefore((Instant) null, null)); TestCase.assertFalse(DateTimeUtils.isBefore(z1, null)); } @@ -1202,11 +1256,11 @@ public void testIsAfter() { TestCase.assertTrue(DateTimeUtils.isAfter(i2, i1)); TestCase.assertFalse(DateTimeUtils.isAfter(i2, i3)); TestCase.assertFalse(DateTimeUtils.isAfter(i3, i2)); - //noinspection ConstantConditions + // noinspection ConstantConditions TestCase.assertFalse(DateTimeUtils.isAfter(null, i2)); - //noinspection ConstantConditions + // noinspection ConstantConditions TestCase.assertFalse(DateTimeUtils.isAfter((Instant) null, null)); - //noinspection ConstantConditions + // noinspection ConstantConditions TestCase.assertFalse(DateTimeUtils.isAfter(i1, null)); final ZonedDateTime z1 = i1.atZone(TZ_AL); @@ -1218,7 +1272,7 @@ public void testIsAfter() { TestCase.assertFalse(DateTimeUtils.isAfter(z2, z3)); TestCase.assertFalse(DateTimeUtils.isAfter(z3, z2)); TestCase.assertFalse(DateTimeUtils.isAfter(null, z2)); - //noinspection ConstantConditions + // noinspection ConstantConditions TestCase.assertFalse(DateTimeUtils.isAfter((Instant) null, null)); TestCase.assertFalse(DateTimeUtils.isAfter(z1, null)); } @@ -1278,19 +1332,23 @@ public Instant instantNanos() { @Override public Instant instantMillis() { - return Instant.ofEpochMilli(nanos/ DateTimeUtils.MILLI); + return Instant.ofEpochMilli(nanos / DateTimeUtils.MILLI); } }; DateTimeUtils.setClock(clock); TestCase.assertEquals(clock, DateTimeUtils.currentClock()); - TestCase.assertEquals(Instant.ofEpochSecond(0,nanos), DateTimeUtils.now()); - TestCase.assertEquals(Instant.ofEpochSecond(0,(nanos / DateTimeUtils.MILLI) * DateTimeUtils.MILLI), DateTimeUtils.nowMillisResolution()); + TestCase.assertEquals(Instant.ofEpochSecond(0, nanos), DateTimeUtils.now()); + TestCase.assertEquals(Instant.ofEpochSecond(0, (nanos / DateTimeUtils.MILLI) * DateTimeUtils.MILLI), + DateTimeUtils.nowMillisResolution()); - TestCase.assertTrue(Math.abs(Clock.system().currentTimeNanos() - DateTimeUtils.epochNanos(DateTimeUtils.nowSystem())) < 1_000_000L); - TestCase.assertTrue(Math.abs(Clock.system().currentTimeNanos() - DateTimeUtils.epochNanos(DateTimeUtils.nowSystemMillisResolution())) < 1_000_000L); + TestCase.assertTrue(Math.abs(Clock.system().currentTimeNanos() + - DateTimeUtils.epochNanos(DateTimeUtils.nowSystem())) < 1_000_000L); + TestCase.assertTrue(Math.abs(Clock.system().currentTimeNanos() + - DateTimeUtils.epochNanos(DateTimeUtils.nowSystemMillisResolution())) < 1_000_000L); - TestCase.assertEquals(DateTimeUtils.formatDate(Instant.ofEpochSecond(0,nanos), TZ_AL), DateTimeUtils.today(TZ_AL)); + TestCase.assertEquals(DateTimeUtils.formatDate(Instant.ofEpochSecond(0, nanos), TZ_AL), + DateTimeUtils.today(TZ_AL)); TestCase.assertEquals(DateTimeUtils.today(ZoneId.systemDefault()), DateTimeUtils.today()); } catch (Exception ex) { DateTimeUtils.setClock(initial); @@ -1407,11 +1465,11 @@ public void testUpperBin() { final ZonedDateTime zdt = DateTimeUtils.toZonedDateTime(instant, TZ_AL); - TestCase.assertEquals(DateTimeUtils.parseZonedDateTime("2010-06-15T06:14:02 NY").withZoneSameInstant( TZ_AL), + TestCase.assertEquals(DateTimeUtils.parseZonedDateTime("2010-06-15T06:14:02 NY").withZoneSameInstant(TZ_AL), DateTimeUtils.upperBin(zdt, second)); - TestCase.assertEquals(DateTimeUtils.parseZonedDateTime("2010-06-15T06:15:00 NY").withZoneSameInstant( TZ_AL), + TestCase.assertEquals(DateTimeUtils.parseZonedDateTime("2010-06-15T06:15:00 NY").withZoneSameInstant(TZ_AL), DateTimeUtils.upperBin(zdt, 5 * minute)); - TestCase.assertEquals(DateTimeUtils.parseZonedDateTime("2010-06-15T07:00:00 NY").withZoneSameInstant( TZ_AL), + TestCase.assertEquals(DateTimeUtils.parseZonedDateTime("2010-06-15T07:00:00 NY").withZoneSameInstant(TZ_AL), DateTimeUtils.upperBin(zdt, hour)); TestCase.assertNull(DateTimeUtils.upperBin((ZonedDateTime) null, 5 * minute)); TestCase.assertNull(DateTimeUtils.upperBin(zdt, NULL_LONG)); @@ -1437,7 +1495,7 @@ public void testUpperBinWithOffset() { final ZonedDateTime zdt = DateTimeUtils.toZonedDateTime(instant, TZ_AL); - TestCase.assertEquals(DateTimeUtils.parseZonedDateTime("2010-06-15T06:16:00 NY").withZoneSameInstant( TZ_AL), + TestCase.assertEquals(DateTimeUtils.parseZonedDateTime("2010-06-15T06:16:00 NY").withZoneSameInstant(TZ_AL), DateTimeUtils.upperBin(zdt, 5 * minute, minute)); TestCase.assertNull(DateTimeUtils.upperBin((ZonedDateTime) null, 5 * minute, minute)); TestCase.assertNull(DateTimeUtils.upperBin(zdt, NULL_LONG, minute)); @@ -1451,29 +1509,41 @@ public void testPlus() { final Instant instant = DateTimeUtils.parseInstant("2010-01-01T12:13:14.999123456 JP"); final ZonedDateTime zdt = DateTimeUtils.toZonedDateTime(instant, TZ_AL); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + 54321L, DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, 54321L))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - 54321L, DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, -54321L))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + 54321L, + DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, 54321L))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - 54321L, + DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, -54321L))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + 54321L, DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, 54321L))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - 54321L, DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, -54321L))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + 54321L, + DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, 54321L))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - 54321L, + DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, -54321L))); Period period = Period.parse("P1D"); Duration duration = Duration.parse("PT1h"); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + DateTimeUtils.DAY, DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, period))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + 3600000000000L, DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, duration))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + DateTimeUtils.DAY, + DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, period))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + 3600000000000L, + DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, duration))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + DateTimeUtils.DAY, DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, period))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + 3600000000000L, DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, duration))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + DateTimeUtils.DAY, + DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, period))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) + 3600000000000L, + DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, duration))); period = Period.parse("-P1D"); duration = Duration.parse("PT-1h"); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - DateTimeUtils.DAY, DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, period))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - 3600000000000L, DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, duration))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - DateTimeUtils.DAY, + DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, period))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - 3600000000000L, + DateTimeUtils.epochNanos(DateTimeUtils.plus(instant, duration))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - DateTimeUtils.DAY, DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, period))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - 3600000000000L, DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, duration))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - DateTimeUtils.DAY, + DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, period))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant) - 3600000000000L, + DateTimeUtils.epochNanos(DateTimeUtils.plus(zdt, duration))); TestCase.assertNull(DateTimeUtils.plus(instant, NULL_LONG)); TestCase.assertNull(DateTimeUtils.plus(instant, (Period) null)); @@ -1509,21 +1579,25 @@ public void testPlus() { // ok } - DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), LocalTime.of(23, 59, 59, 999_999_999 - 10), ZoneId.of("UTC")), 10); // edge at max + DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), + LocalTime.of(23, 59, 59, 999_999_999 - 10), ZoneId.of("UTC")), 10); // edge at max try { - DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), 1); + DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), + LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), 1); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok } try { - DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), Period.ofDays(1)); + DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), + LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), Period.ofDays(1)); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok } try { - DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), Duration.ofNanos(1)); + DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), + LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), Duration.ofNanos(1)); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok @@ -1549,21 +1623,29 @@ public void testPlus() { // ok } - DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 10), ZoneId.of("UTC")), -10); // edge at max + // edge at max + DateTimeUtils.plus( + ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 10), ZoneId.of("UTC")), -10); try { - DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), -1); + DateTimeUtils.plus( + ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), + -1); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok } try { - DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), Period.ofDays(-1)); + DateTimeUtils.plus( + ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), + Period.ofDays(-1)); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok } try { - DateTimeUtils.plus(ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), Duration.ofNanos(-1)); + DateTimeUtils.plus( + ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), + Duration.ofNanos(-1)); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok @@ -1577,11 +1659,15 @@ public void testMinus() { final ZonedDateTime zdt1 = DateTimeUtils.toZonedDateTime(instant1, TZ_AL); final ZonedDateTime zdt2 = DateTimeUtils.toZonedDateTime(instant2, TZ_AL); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - 54321L, DateTimeUtils.epochNanos(DateTimeUtils.minus(instant1, 54321L))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant2) + 54321L, DateTimeUtils.epochNanos(DateTimeUtils.minus(instant2, -54321L))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - 54321L, + DateTimeUtils.epochNanos(DateTimeUtils.minus(instant1, 54321L))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant2) + 54321L, + DateTimeUtils.epochNanos(DateTimeUtils.minus(instant2, -54321L))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - 54321L, DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt1, 54321L))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant2) + 54321L, DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt2, -54321L))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - 54321L, + DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt1, 54321L))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant2) + 54321L, + DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt2, -54321L))); TestCase.assertEquals(-3600000000000L, DateTimeUtils.minus(instant1, instant2)); TestCase.assertEquals(3600000000000L, DateTimeUtils.minus(instant2, instant1)); @@ -1592,20 +1678,28 @@ public void testMinus() { Period period = Period.parse("P1D"); Duration duration = Duration.parse("PT1h"); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - DateTimeUtils.DAY, DateTimeUtils.epochNanos(DateTimeUtils.minus(instant1, period))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - 3600000000000L, DateTimeUtils.epochNanos(DateTimeUtils.minus(instant1, duration))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - DateTimeUtils.DAY, + DateTimeUtils.epochNanos(DateTimeUtils.minus(instant1, period))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - 3600000000000L, + DateTimeUtils.epochNanos(DateTimeUtils.minus(instant1, duration))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - DateTimeUtils.DAY, DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt1, period))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - 3600000000000L, DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt1, duration))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - DateTimeUtils.DAY, + DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt1, period))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) - 3600000000000L, + DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt1, duration))); period = Period.parse("-P1D"); duration = Duration.parse("PT-1h"); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) + DateTimeUtils.DAY, DateTimeUtils.epochNanos(DateTimeUtils.minus(instant1, period))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) + 3600000000000L, DateTimeUtils.epochNanos(DateTimeUtils.minus(instant1, duration))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) + DateTimeUtils.DAY, + DateTimeUtils.epochNanos(DateTimeUtils.minus(instant1, period))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) + 3600000000000L, + DateTimeUtils.epochNanos(DateTimeUtils.minus(instant1, duration))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) + DateTimeUtils.DAY, DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt1, period))); - TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) + 3600000000000L, DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt1, duration))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) + DateTimeUtils.DAY, + DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt1, period))); + TestCase.assertEquals(DateTimeUtils.epochNanos(instant1) + 3600000000000L, + DateTimeUtils.epochNanos(DateTimeUtils.minus(zdt1, duration))); TestCase.assertNull(DateTimeUtils.minus(instant1, NULL_LONG)); TestCase.assertNull(DateTimeUtils.minus(instant1, (Period) null)); @@ -1643,21 +1737,25 @@ public void testMinus() { // ok } - DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), LocalTime.of(23, 59, 59, 999_999_999 - 10), ZoneId.of("UTC")), 10); // edge at max + DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), + LocalTime.of(23, 59, 59, 999_999_999 - 10), ZoneId.of("UTC")), 10); // edge at max try { - DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), -1); + DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), + LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), -1); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok } try { - DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), Period.ofDays(-1)); + DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), + LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), Period.ofDays(-1)); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok } try { - DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), Duration.ofNanos(-1)); + DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MAX_VALUE, 12, 31), + LocalTime.of(23, 59, 59, 999_999_999), ZoneId.of("UTC")), Duration.ofNanos(-1)); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok @@ -1683,21 +1781,30 @@ public void testMinus() { // ok } - DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 10), ZoneId.of("UTC")), -10); // edge at max + DateTimeUtils.minus( + ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 10), ZoneId.of("UTC")), -10); // edge + // at + // max try { - DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), 1); + DateTimeUtils.minus( + ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), + 1); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok } try { - DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), Period.ofDays(1)); + DateTimeUtils.minus( + ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), + Period.ofDays(1)); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok } try { - DateTimeUtils.minus(ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), Duration.ofNanos(1)); + DateTimeUtils.minus( + ZonedDateTime.of(LocalDate.of(Year.MIN_VALUE, 1, 1), LocalTime.of(0, 0, 0, 0), ZoneId.of("UTC")), + Duration.ofNanos(1)); TestCase.fail("This should have overflowed"); } catch (DateTimeUtils.DateTimeOverflowException e) { // ok @@ -1765,7 +1872,8 @@ public void testDiffMillis() { public void testDiffSeconds() { final Instant i1 = DateTimeUtils.epochNanosToInstant(12345678987654321L); final Instant i2 = DateTimeUtils.epochNanosToInstant(98765432123456789L); - final double delta = (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double) DateTimeUtils.SECOND; + final double delta = + (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double) DateTimeUtils.SECOND; TestCase.assertEquals(delta, DateTimeUtils.diffSeconds(i1, i2)); TestCase.assertEquals(-delta, DateTimeUtils.diffSeconds(i2, i1)); @@ -1784,7 +1892,8 @@ public void testDiffSeconds() { public void testDiffMinutes() { final Instant i1 = DateTimeUtils.epochNanosToInstant(12345678987654321L); final Instant i2 = DateTimeUtils.epochNanosToInstant(98765432123456789L); - final double delta = (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double) DateTimeUtils.MINUTE; + final double delta = + (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double) DateTimeUtils.MINUTE; TestCase.assertEquals(delta, DateTimeUtils.diffMinutes(i1, i2)); TestCase.assertEquals(-delta, DateTimeUtils.diffMinutes(i2, i1)); @@ -1822,7 +1931,8 @@ public void testDiffDays() { public void testDiffYears() { final Instant i1 = DateTimeUtils.epochNanosToInstant(12345678987654321L); final Instant i2 = DateTimeUtils.epochNanosToInstant(98765432123456789L); - final double delta = (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double) DateTimeUtils.YEAR; + final double delta = + (DateTimeUtils.epochNanos(i2) - DateTimeUtils.epochNanos(i1)) / (double) DateTimeUtils.YEAR; TestCase.assertEquals(delta, DateTimeUtils.diffYears(i1, i2)); TestCase.assertEquals(-delta, DateTimeUtils.diffYears(i2, i1)); @@ -1997,11 +2107,13 @@ public void testNanosOfDay() { final Instant dt2 = DateTimeUtils.parseInstant("2023-01-02T11:23:45.123456789 JP"); final ZonedDateTime dt3 = dt2.atZone(TZ_JP); - TestCase.assertEquals(123456789L + 1_000_000_000L * (45 + 23 * 60 + 11 * 60 * 60), DateTimeUtils.nanosOfDay(dt2, TZ_JP)); + TestCase.assertEquals(123456789L + 1_000_000_000L * (45 + 23 * 60 + 11 * 60 * 60), + DateTimeUtils.nanosOfDay(dt2, TZ_JP)); TestCase.assertEquals(NULL_LONG, DateTimeUtils.nanosOfDay(dt2, null)); TestCase.assertEquals(NULL_LONG, DateTimeUtils.nanosOfDay(null, TZ_JP)); - TestCase.assertEquals(123456789L + 1_000_000_000L * (45 + 23 * 60 + 11 * 60 * 60), DateTimeUtils.nanosOfDay(dt3)); + TestCase.assertEquals(123456789L + 1_000_000_000L * (45 + 23 * 60 + 11 * 60 * 60), + DateTimeUtils.nanosOfDay(dt3)); TestCase.assertEquals(NULL_LONG, DateTimeUtils.nanosOfDay(null)); } diff --git a/engine/time/src/test/java/io/deephaven/time/TestTimeLiteralReplacedExpression.java b/engine/time/src/test/java/io/deephaven/time/TestTimeLiteralReplacedExpression.java index 450d407be3f..2604daf47fc 100644 --- a/engine/time/src/test/java/io/deephaven/time/TestTimeLiteralReplacedExpression.java +++ b/engine/time/src/test/java/io/deephaven/time/TestTimeLiteralReplacedExpression.java @@ -9,14 +9,17 @@ public class TestTimeLiteralReplacedExpression extends BaseArrayTestCase { public void testConvertExpressionDateTime() throws Exception { - final TimeLiteralReplacedExpression tlre = TimeLiteralReplacedExpression.convertExpression("'2010-01-01T12:34:56.891 NY'"); + final TimeLiteralReplacedExpression tlre = + TimeLiteralReplacedExpression.convertExpression("'2010-01-01T12:34:56.891 NY'"); TestCase.assertEquals("_instant0", tlre.getConvertedFormula()); final HashMap> newVars = new HashMap<>(); newVars.put("_instant0", Instant.class); TestCase.assertEquals(newVars, tlre.getNewVariables()); - TestCase.assertEquals(" private Instant _instant0=DateTimeUtils.parseInstant(\"2010-01-01T12:34:56.891 NY\");\n", tlre.getInstanceVariablesString()); + TestCase.assertEquals( + " private Instant _instant0=DateTimeUtils.parseInstant(\"2010-01-01T12:34:56.891 NY\");\n", + tlre.getInstanceVariablesString()); } @@ -28,7 +31,9 @@ public void testConvertExpressionLocalDate() throws Exception { newVars.put("_localDate0", LocalDate.class); TestCase.assertEquals(newVars, tlre.getNewVariables()); - TestCase.assertEquals(" private java.time.LocalDate _localDate0=DateTimeUtils.parseLocalDate(\"2010-01-01\");\n", tlre.getInstanceVariablesString()); + TestCase.assertEquals( + " private java.time.LocalDate _localDate0=DateTimeUtils.parseLocalDate(\"2010-01-01\");\n", + tlre.getInstanceVariablesString()); } public void testConvertExpressionTime() throws Exception { @@ -39,7 +44,8 @@ public void testConvertExpressionTime() throws Exception { newVars.put("_nanos0", long.class); TestCase.assertEquals(newVars, tlre.getNewVariables()); - TestCase.assertEquals(" private long _nanos0=DateTimeUtils.parseNanos(\"12:00\");\n", tlre.getInstanceVariablesString()); + TestCase.assertEquals(" private long _nanos0=DateTimeUtils.parseNanos(\"12:00\");\n", + tlre.getInstanceVariablesString()); } public void testConvertExpressionPeriod() throws Exception { @@ -50,7 +56,8 @@ public void testConvertExpressionPeriod() throws Exception { newVars.put("_period0", Period.class); TestCase.assertEquals(newVars, tlre.getNewVariables()); - TestCase.assertEquals(" private java.time.Period _period0=DateTimeUtils.parsePeriod(\"P1Y\");\n", tlre.getInstanceVariablesString()); + TestCase.assertEquals(" private java.time.Period _period0=DateTimeUtils.parsePeriod(\"P1Y\");\n", + tlre.getInstanceVariablesString()); } public void testConvertExpressionDuration() throws Exception { @@ -61,7 +68,8 @@ public void testConvertExpressionDuration() throws Exception { newVars.put("_duration0", Duration.class); TestCase.assertEquals(newVars, tlre.getNewVariables()); - TestCase.assertEquals(" private java.time.Duration _duration0=DateTimeUtils.parseDuration(\"PT1H\");\n", tlre.getInstanceVariablesString()); + TestCase.assertEquals(" private java.time.Duration _duration0=DateTimeUtils.parseDuration(\"PT1H\");\n", + tlre.getInstanceVariablesString()); } public void testConvertExpressionLocalTime() throws Exception { @@ -72,7 +80,9 @@ public void testConvertExpressionLocalTime() throws Exception { newVars.put("_localTime0", LocalTime.class); TestCase.assertEquals(newVars, tlre.getNewVariables()); - TestCase.assertEquals(" private java.time.LocalTime _localTime0=DateTimeUtils.parseLocalTime(\"L12:00\");\n", tlre.getInstanceVariablesString()); + TestCase.assertEquals( + " private java.time.LocalTime _localTime0=DateTimeUtils.parseLocalTime(\"L12:00\");\n", + tlre.getInstanceVariablesString()); } public void testConvertExpressionUnknown() throws Exception { @@ -95,7 +105,8 @@ public void testConvertExpressionTimeAddition() throws Exception { TestCase.assertEquals(newVars, tlre.getNewVariables()); TestCase.assertEquals(" private long _nanos0=DateTimeUtils.parseNanos(\"12:00\");\n" + - " private long _nanos1=DateTimeUtils.parseNanos(\"04:21\");\n", tlre.getInstanceVariablesString()); + " private long _nanos1=DateTimeUtils.parseNanos(\"04:21\");\n", + tlre.getInstanceVariablesString()); } public void testConvertExpressionTimeAddition2() throws Exception { @@ -108,7 +119,8 @@ public void testConvertExpressionTimeAddition2() throws Exception { TestCase.assertEquals(newVars, tlre.getNewVariables()); TestCase.assertEquals(" private long _nanos0=DateTimeUtils.parseNanos(\"12:00\");\n" + - " private java.time.Duration _duration0=DateTimeUtils.parseDuration(\"PT4H\");\n", tlre.getInstanceVariablesString()); + " private java.time.Duration _duration0=DateTimeUtils.parseDuration(\"PT4H\");\n", + tlre.getInstanceVariablesString()); } } diff --git a/engine/time/src/test/java/io/deephaven/time/TestTimeZoneAliases.java b/engine/time/src/test/java/io/deephaven/time/TestTimeZoneAliases.java index 1d94693d254..eef83332e43 100644 --- a/engine/time/src/test/java/io/deephaven/time/TestTimeZoneAliases.java +++ b/engine/time/src/test/java/io/deephaven/time/TestTimeZoneAliases.java @@ -19,7 +19,7 @@ public class TestTimeZoneAliases extends BaseArrayTestCase { }; public void testDefaultAliases() { - for(final String[] v : values){ + for (final String[] v : values) { final ZoneId target = ZoneId.of(v[1]); final ZoneId id = TimeZoneAliases.zoneId(v[1]); TestCase.assertEquals(target, id); @@ -30,7 +30,7 @@ public void testDefaultAliases() { public void testAllZones() { final @NotNull Map all = TimeZoneAliases.getAllZones(); - for(final String[] v : values){ + for (final String[] v : values) { final ZoneId target = ZoneId.of(v[1]); TestCase.assertEquals(target, all.get(v[0])); TestCase.assertEquals(target, all.get(v[1])); diff --git a/engine/time/src/test/java/io/deephaven/time/calendar/TestBusinessPeriod.java b/engine/time/src/test/java/io/deephaven/time/calendar/TestBusinessPeriod.java index 142403659ed..45330ec89e0 100644 --- a/engine/time/src/test/java/io/deephaven/time/calendar/TestBusinessPeriod.java +++ b/engine/time/src/test/java/io/deephaven/time/calendar/TestBusinessPeriod.java @@ -42,10 +42,14 @@ public void testBusinessPeriod() { assertEquals(DateTimeUtils.HOUR, period.getLength()); assertTrue(period.contains(open1)); - assertTrue(period.contains(DateTimeUtils.epochNanosToInstant(DateTimeUtils.epochNanos(open1) + DateTimeUtils.MINUTE))); - assertFalse(period.contains(DateTimeUtils.epochNanosToInstant(DateTimeUtils.epochNanos(open1) - DateTimeUtils.MINUTE))); + assertTrue(period + .contains(DateTimeUtils.epochNanosToInstant(DateTimeUtils.epochNanos(open1) + DateTimeUtils.MINUTE))); + assertFalse(period + .contains(DateTimeUtils.epochNanosToInstant(DateTimeUtils.epochNanos(open1) - DateTimeUtils.MINUTE))); assertTrue(period.contains(close1)); - assertTrue(period.contains(DateTimeUtils.epochNanosToInstant(DateTimeUtils.epochNanos(close1) - DateTimeUtils.MINUTE))); - assertFalse(period.contains(DateTimeUtils.epochNanosToInstant(DateTimeUtils.epochNanos(close1) + DateTimeUtils.MINUTE))); + assertTrue(period + .contains(DateTimeUtils.epochNanosToInstant(DateTimeUtils.epochNanos(close1) - DateTimeUtils.MINUTE))); + assertFalse(period + .contains(DateTimeUtils.epochNanosToInstant(DateTimeUtils.epochNanos(close1) + DateTimeUtils.MINUTE))); } } diff --git a/engine/time/src/test/java/io/deephaven/time/calendar/TestDefaultBusinessCalendar.java b/engine/time/src/test/java/io/deephaven/time/calendar/TestDefaultBusinessCalendar.java index e646789bb62..2feaf8c6581 100644 --- a/engine/time/src/test/java/io/deephaven/time/calendar/TestDefaultBusinessCalendar.java +++ b/engine/time/src/test/java/io/deephaven/time/calendar/TestDefaultBusinessCalendar.java @@ -83,11 +83,11 @@ public void testNextDay() { String day2 = "2016-09-02"; assertEquals(USNYSE.nextDay(day1, 2), day2); assertEquals(JPOSE.nextDay(day1, 2), day2); - assertEquals(USNYSE.nextDay(day2, -2), DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(JPOSE.nextDay(day2, -2), DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(USNYSE.nextDay(day2, -2), DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(JPOSE.nextDay(day2, -2), DateTimeUtils.formatDate(day1, TZ_JP)); - assertEquals(USNYSE.nextDay(day1, 0), DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(JPOSE.nextDay(day1, 0), DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(USNYSE.nextDay(day1, 0), DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(JPOSE.nextDay(day1, 0), DateTimeUtils.formatDate(day1, TZ_JP)); // leap day day1 = DateTimeUtils.parseInstant("2016-02-28T01:00:00.000000000 NY"); @@ -100,8 +100,8 @@ public void testNextDay() { day2 = "2014-01-05"; assertEquals(USNYSE.nextDay(day1, 5), day2); assertEquals(JPOSE.nextDay(day1, 5), day2); - assertEquals(USNYSE.nextDay(day2, -5), DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(JPOSE.nextDay(day2, -5), DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(USNYSE.nextDay(day2, -5), DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(JPOSE.nextDay(day2, -5), DateTimeUtils.formatDate(day1, TZ_JP)); // Daylight savings starts in NY (UTC-7:00) at 2 AM 2017-03-12 day1 = DateTimeUtils.parseInstant("2017-03-12T01:00:00.000000000 NY"); @@ -182,33 +182,33 @@ public void testPreviousDay() { Instant day1 = DateTimeUtils.parseInstant("2016-08-31T01:00:00.000000000 NY"); Instant day2 = DateTimeUtils.parseInstant("2016-09-01T01:00:00.000000000 NY"); - assertEquals(USNYSE.previousDay(day2), DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(JPOSE.previousDay(day2), DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(USNYSE.previousDay(day2), DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(JPOSE.previousDay(day2), DateTimeUtils.formatDate(day1, TZ_JP)); - assertEquals(USNYSE.previousDay(day1, 0), DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(JPOSE.previousDay(day1, 0), DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(USNYSE.previousDay(day1, 0), DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(JPOSE.previousDay(day1, 0), DateTimeUtils.formatDate(day1, TZ_JP)); // leap day day1 = DateTimeUtils.parseInstant("2016-02-29T01:00:00.000000000 NY"); day2 = DateTimeUtils.parseInstant("2016-03-01T01:00:00.000000000 NY"); - assertEquals(USNYSE.previousDay(day2), DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(JPOSE.previousDay(day2), DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(USNYSE.previousDay(day2), DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(JPOSE.previousDay(day2), DateTimeUtils.formatDate(day1, TZ_JP)); // new year day1 = DateTimeUtils.parseInstant("2013-12-29T01:00:00.000000000 NY"); day2 = DateTimeUtils.parseInstant("2014-01-01T01:00:00.000000000 NY"); - assertEquals(USNYSE.previousDay(day2, 3), DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(JPOSE.previousDay(day2, 3), DateTimeUtils.formatDate(day1,TZ_JP)); - assertEquals(USNYSE.previousDay(day1, -3), DateTimeUtils.formatDate(day2,TZ_NY)); - assertEquals(JPOSE.previousDay(day1, -3), DateTimeUtils.formatDate(day2,TZ_JP)); + assertEquals(USNYSE.previousDay(day2, 3), DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(JPOSE.previousDay(day2, 3), DateTimeUtils.formatDate(day1, TZ_JP)); + assertEquals(USNYSE.previousDay(day1, -3), DateTimeUtils.formatDate(day2, TZ_NY)); + assertEquals(JPOSE.previousDay(day1, -3), DateTimeUtils.formatDate(day2, TZ_JP)); // Daylight savings starts in NY (UTC-7:00) at 2 AM 2017-03-12 day1 = DateTimeUtils.parseInstant("2017-03-11T01:00:00.000000000 NY"); day2 = DateTimeUtils.parseInstant("2017-03-13T01:00:00.000000000 NY"); - assertEquals(USNYSE.previousDay(day2, 2), DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(JPOSE.previousDay(day2, 2), DateTimeUtils.formatDate(day1,TZ_JP)); - assertEquals(USNYSE.previousDay(day1, -2), DateTimeUtils.formatDate(day2,TZ_NY)); - assertEquals(JPOSE.previousDay(day1, -2), DateTimeUtils.formatDate(day2,TZ_JP)); + assertEquals(USNYSE.previousDay(day2, 2), DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(JPOSE.previousDay(day2, 2), DateTimeUtils.formatDate(day1, TZ_JP)); + assertEquals(USNYSE.previousDay(day1, -2), DateTimeUtils.formatDate(day2, TZ_NY)); + assertEquals(JPOSE.previousDay(day1, -2), DateTimeUtils.formatDate(day2, TZ_JP)); day1 = null; assertNull(USNYSE.previousDay(day1)); @@ -697,57 +697,64 @@ public void testNextBusinessSchedule() { Instant day1 = DateTimeUtils.parseInstant("2016-08-31T01:00:00.000000000 NY"); Instant day1JP = DateTimeUtils.parseInstant("2016-08-31T01:00:00.000000000 JP"); String day2 = "2016-09-01"; - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(),TZ_NY), day2); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(),TZ_JP), day2); - - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1, 2).getSOBD(),TZ_NY), "2016-09-02"); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP, 2).getSOBD(),TZ_JP), "2016-09-02"); - - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(DateTimeUtils.parseInstant("2016-09-02T01:00:00.000000000 NY"), -2) - .getSOBD(),TZ_NY), "2016-08-31"); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(DateTimeUtils.parseInstant("2016-09-02T01:00:00.000000000 JP"), -2) - .getSOBD(),TZ_JP), "2016-08-31"); - - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(DateTimeUtils.parseInstant("2016-08-30T01:00:00.000000000 NY"), 0) - .getSOBD(),TZ_NY), "2016-08-30"); + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(), TZ_NY), day2); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(), TZ_JP), day2); + + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1, 2).getSOBD(), TZ_NY), "2016-09-02"); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP, 2).getSOBD(), TZ_JP), "2016-09-02"); + + assertEquals(DateTimeUtils.formatDate( + USNYSE.nextBusinessSchedule(DateTimeUtils.parseInstant("2016-09-02T01:00:00.000000000 NY"), -2) + .getSOBD(), + TZ_NY), "2016-08-31"); + assertEquals(DateTimeUtils.formatDate( + JPOSE.nextBusinessSchedule(DateTimeUtils.parseInstant("2016-09-02T01:00:00.000000000 JP"), -2) + .getSOBD(), + TZ_JP), "2016-08-31"); + + assertEquals(DateTimeUtils.formatDate( + USNYSE.nextBusinessSchedule(DateTimeUtils.parseInstant("2016-08-30T01:00:00.000000000 NY"), 0) + .getSOBD(), + TZ_NY), "2016-08-30"); // leap day day1 = DateTimeUtils.parseInstant("2016-02-28T01:00:00.000000000 NY"); day1JP = DateTimeUtils.parseInstant("2016-02-28T01:00:00.000000000 JP"); day2 = "2016-02-29"; - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(),TZ_NY), day2); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(),TZ_JP), day2); + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(), TZ_NY), day2); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(), TZ_JP), day2); // new year day1 = DateTimeUtils.parseInstant("2013-12-31T01:00:00.000000000 NY"); day1JP = DateTimeUtils.parseInstant("2013-12-31T01:00:00.000000000 JP"); day2 = "2014-01-03"; - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(USNYSE.nextBusinessDay(day1)).getSOBD(),TZ_NY), + assertEquals( + DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(USNYSE.nextBusinessDay(day1)).getSOBD(), TZ_NY), day2); day2 = "2014-01-01"; - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(),TZ_JP), day2); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(), TZ_JP), day2); // Daylight savings starts in NY (UTC-7:00) at 2 AM 2017-03-12 // Japan doesn't observe day light savings day1 = DateTimeUtils.parseInstant("2017-03-12T01:00:00.000000000 NY"); day1JP = DateTimeUtils.parseInstant("2017-03-12T01:00:00.000000000 JP"); day2 = "2017-03-13"; - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(),TZ_NY), day2); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(),TZ_JP), day2); + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(), TZ_NY), day2); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(), TZ_JP), day2); // outside calendar range, so no day off for new years, but weekend should still be off day1 = DateTimeUtils.parseInstant("2069-12-31T01:00:00.000000000 NY"); day1JP = DateTimeUtils.parseInstant("2069-12-31T01:00:00.000000000 JP"); day2 = "2070-01-01"; - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(),TZ_NY).compareTo(day2), 0); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(),TZ_JP), day2); + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(), TZ_NY).compareTo(day2), 0); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(), TZ_JP), day2); day1 = DateTimeUtils.parseInstant("2070-01-05T01:00:00.000000000 NY"); day1JP = DateTimeUtils.parseInstant("2070-01-05T01:00:00.000000000 JP"); day2 = "2070-01-06"; - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(),TZ_NY), day2); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(),TZ_JP), day2); + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(), TZ_NY), day2); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1JP).getSOBD(), TZ_JP), day2); day1 = null; assertNull(USNYSE.nextBusinessSchedule(day1)); @@ -777,41 +784,41 @@ public void testNextBusinessSchedule() { public void testNextBusinessScheduleString() { String day1 = "2016-08-31"; String day2 = "2016-09-01"; - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(),TZ_NY), day2); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1).getSOBD(),TZ_JP), day2); + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(), TZ_NY), day2); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1).getSOBD(), TZ_JP), day2); - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1, 2).getSOBD(),TZ_NY), "2016-09-02"); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1, 2).getSOBD(),TZ_JP), "2016-09-02"); + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1, 2).getSOBD(), TZ_NY), "2016-09-02"); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1, 2).getSOBD(), TZ_JP), "2016-09-02"); - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule("2016-09-02", -2).getSOBD(),TZ_NY), + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule("2016-09-02", -2).getSOBD(), TZ_NY), "2016-08-31"); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule("2016-09-02", -2).getSOBD(),TZ_JP), + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule("2016-09-02", -2).getSOBD(), TZ_JP), "2016-08-31"); - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule("2016-08-30", 0).getSOBD(),TZ_NY), + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule("2016-08-30", 0).getSOBD(), TZ_NY), "2016-08-30"); assertNull(USNYSE.nextBusinessSchedule((String) null, 0)); // leap day day1 = "2016-02-28"; day2 = "2016-02-29"; - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(),TZ_NY), day2); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1).getSOBD(),TZ_JP), day2); + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(), TZ_NY), day2); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1).getSOBD(), TZ_JP), day2); // new year day1 = "2014-01-01"; day2 = "2014-01-02"; - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(),TZ_NY), day2); + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(), TZ_NY), day2); day1 = "2007-01-03"; day2 = "2007-01-04"; - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1).getSOBD(),TZ_JP), day2); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1).getSOBD(), TZ_JP), day2); // Daylight savings starts in NY (UTC-7:00) at 2 AM 2017-03-12 day1 = "2017-03-12"; day2 = "2017-03-13"; - assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(),TZ_NY), day2); - assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1).getSOBD(),TZ_JP), day2); + assertEquals(DateTimeUtils.formatDate(USNYSE.nextBusinessSchedule(day1).getSOBD(), TZ_NY), day2); + assertEquals(DateTimeUtils.formatDate(JPOSE.nextBusinessSchedule(day1).getSOBD(), TZ_JP), day2); day1 = null; assertNull(USNYSE.nextBusinessSchedule(day1)); @@ -938,8 +945,8 @@ public void testLastBusinessDay() { Instant day1 = DateTimeUtils.parseInstant("2016-08-30T01:00:00.000000000 NY"); Instant day2 = DateTimeUtils.parseInstant("2016-09-01T01:00:00.000000000 NY"); assertNull(USNYSE.previousBusinessDay((Instant) null, 2)); - assertEquals(USNYSE.previousBusinessDay(day2, 2), DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(USNYSE.previousBusinessDay(day1, -2), DateTimeUtils.formatDate(day2,TZ_NY)); + assertEquals(USNYSE.previousBusinessDay(day2, 2), DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(USNYSE.previousBusinessDay(day1, -2), DateTimeUtils.formatDate(day2, TZ_NY)); assertEquals(USNYSE.previousBusinessDay(DateTimeUtils.parseInstant("2016-08-30T15:00:00.000000000 NY"), 0), "2016-08-30"); @@ -954,27 +961,27 @@ public void testLastBusinessDay() { // leap day day1 = DateTimeUtils.parseInstant("2016-02-29T21:00:00.000000000 NY"); day2 = DateTimeUtils.parseInstant("2016-03-01T01:00:00.000000000 NY"); - assertEquals(USNYSE.previousBusinessDay(day2), DateTimeUtils.formatDate(day1,TZ_NY)); + assertEquals(USNYSE.previousBusinessDay(day2), DateTimeUtils.formatDate(day1, TZ_NY)); // new year day1 = DateTimeUtils.parseInstant("2013-12-26T01:00:00.000000000 NY"); day2 = DateTimeUtils.parseInstant("2014-01-02T01:00:00.000000000 NY"); - assertEquals(USNYSE.previousBusinessDay(day2, 4), DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(USNYSE.previousBusinessDay(day1, -4), DateTimeUtils.formatDate(day2,TZ_NY)); + assertEquals(USNYSE.previousBusinessDay(day2, 4), DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(USNYSE.previousBusinessDay(day1, -4), DateTimeUtils.formatDate(day2, TZ_NY)); // Daylight savings starts in NY (UTC-7:00) at 2 AM 2017-03-12 day1 = DateTimeUtils.parseInstant("2017-02-26T01:00:00.000000000 NY"); day2 = DateTimeUtils.parseInstant("2017-03-13T01:00:00.000000000 NY"); - assertEquals(USNYSE.previousNonBusinessDay(day2, 5), DateTimeUtils.formatDate(day1,TZ_NY)); + assertEquals(USNYSE.previousNonBusinessDay(day2, 5), DateTimeUtils.formatDate(day1, TZ_NY)); assertEquals(USNYSE.previousNonBusinessDay(day1, -5), "2017-03-18"); day1 = DateTimeUtils.parseInstant("2017-03-12T01:00:00.000000000 NY"); day2 = DateTimeUtils.parseInstant("2017-03-13T01:00:00.000000000 NY"); - assertEquals(USNYSE.previousNonBusinessDay(day2), DateTimeUtils.formatDate(day1,TZ_NY)); + assertEquals(USNYSE.previousNonBusinessDay(day2), DateTimeUtils.formatDate(day1, TZ_NY)); day1 = DateTimeUtils.parseInstant("2017-07-04T01:00:00.000000000 NY"); day2 = DateTimeUtils.parseInstant("2017-07-07T01:00:00.000000000 NY"); - assertEquals(USNYSE.previousNonBusinessDay(day2), DateTimeUtils.formatDate(day1,TZ_NY)); + assertEquals(USNYSE.previousNonBusinessDay(day2), DateTimeUtils.formatDate(day1, TZ_NY)); day1 = null; assertNull(USNYSE.previousBusinessDay(day1)); @@ -984,22 +991,22 @@ public void testLastBusinessDay() { day1 = DateTimeUtils.parseInstant("2016-08-31T21:00:00.000000000 JP"); day2 = DateTimeUtils.parseInstant("2016-09-01T21:00:00.000000000 JP"); - assertEquals(JPOSE.previousBusinessDay(day2), DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(JPOSE.previousBusinessDay(day2), DateTimeUtils.formatDate(day1, TZ_JP)); // leap day day1 = DateTimeUtils.parseInstant("2016-02-29T01:00:00.000000000 JP"); day2 = DateTimeUtils.parseInstant("2016-03-01T01:00:00.000000000 JP"); - assertEquals(JPOSE.previousBusinessDay(day2), DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(JPOSE.previousBusinessDay(day2), DateTimeUtils.formatDate(day1, TZ_JP)); // new year day1 = DateTimeUtils.parseInstant("2013-12-31T11:00:00.000000000 JP"); day2 = DateTimeUtils.parseInstant("2014-01-01T11:00:00.000000000 JP"); - assertEquals(JPOSE.previousBusinessDay(day2), DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(JPOSE.previousBusinessDay(day2), DateTimeUtils.formatDate(day1, TZ_JP)); // Daylight savings starts in JP (UTC-7:00) at 2 AM 2017-03-12 day1 = DateTimeUtils.parseInstant("2017-03-12T01:00:00.000000000 JP"); day2 = DateTimeUtils.parseInstant("2017-03-13T01:00:00.000000000 JP"); - assertEquals(JPOSE.previousNonBusinessDay(day2), DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(JPOSE.previousNonBusinessDay(day2), DateTimeUtils.formatDate(day1, TZ_JP)); day1 = null; @@ -1064,30 +1071,31 @@ public void testLastBusinessSchedule() { Instant day1 = DateTimeUtils.parseInstant("2016-08-30T01:00:00.000000000 NY"); Instant day2 = DateTimeUtils.parseInstant("2016-09-01T01:00:00.000000000 NY"); - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2, 2).getSOBD(),TZ_NY), - DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day1, -2).getSOBD(),TZ_NY), - DateTimeUtils.formatDate(day2,TZ_NY)); + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2, 2).getSOBD(), TZ_NY), + DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day1, -2).getSOBD(), TZ_NY), + DateTimeUtils.formatDate(day2, TZ_NY)); assertEquals( - DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(DateTimeUtils.parseInstant("2016-08-30T15:00:00.000000000 NY"), 0) - .getSOBD(),TZ_NY), + DateTimeUtils.formatDate(USNYSE + .previousBusinessSchedule(DateTimeUtils.parseInstant("2016-08-30T15:00:00.000000000 NY"), 0) + .getSOBD(), TZ_NY), "2016-08-30"); assertNull(USNYSE.previousBusinessSchedule((Instant) null, 0)); // leap day day1 = DateTimeUtils.parseInstant("2016-02-29T21:00:00.000000000 NY"); day2 = DateTimeUtils.parseInstant("2016-03-01T01:00:00.000000000 NY"); - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2).getSOBD(),TZ_NY), - DateTimeUtils.formatDate(day1,TZ_NY)); + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2).getSOBD(), TZ_NY), + DateTimeUtils.formatDate(day1, TZ_NY)); // new year day1 = DateTimeUtils.parseInstant("2013-12-26T01:00:00.000000000 NY"); day2 = DateTimeUtils.parseInstant("2014-01-02T01:00:00.000000000 NY"); - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2, 7).getSOBD(),TZ_NY), - DateTimeUtils.formatDate(day1,TZ_NY)); - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day1, -7).getSOBD(),TZ_NY), - DateTimeUtils.formatDate(day2,TZ_NY)); + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2, 7).getSOBD(), TZ_NY), + DateTimeUtils.formatDate(day1, TZ_NY)); + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day1, -7).getSOBD(), TZ_NY), + DateTimeUtils.formatDate(day2, TZ_NY)); day1 = null; assertNull(USNYSE.previousBusinessSchedule(day1)); @@ -1095,20 +1103,20 @@ public void testLastBusinessSchedule() { day1 = DateTimeUtils.parseInstant("2016-08-31T21:00:00.000000000 JP"); day2 = DateTimeUtils.parseInstant("2016-09-01T21:00:00.000000000 JP"); - assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2).getSOBD(),TZ_JP), - DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2).getSOBD(), TZ_JP), + DateTimeUtils.formatDate(day1, TZ_JP)); // leap day day1 = DateTimeUtils.parseInstant("2016-02-29T01:00:00.000000000 JP"); day2 = DateTimeUtils.parseInstant("2016-03-01T01:00:00.000000000 JP"); - assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2).getSOBD(),TZ_JP), - DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2).getSOBD(), TZ_JP), + DateTimeUtils.formatDate(day1, TZ_JP)); // new year day1 = DateTimeUtils.parseInstant("2013-12-31T11:00:00.000000000 JP"); day2 = DateTimeUtils.parseInstant("2014-01-01T11:00:00.000000000 JP"); - assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2).getSOBD(),TZ_JP), - DateTimeUtils.formatDate(day1,TZ_JP)); + assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2).getSOBD(), TZ_JP), + DateTimeUtils.formatDate(day1, TZ_JP)); day1 = null; @@ -1118,38 +1126,44 @@ public void testLastBusinessSchedule() { public void testLastBusinessScheduleString() { String day1 = "2016-08-31"; String day2 = "2016-09-01"; - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2).getSOBD(),TZ_NY), day1); - assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2).getSOBD(),TZ_JP), day1); + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2).getSOBD(), TZ_NY), day1); + assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2).getSOBD(), TZ_JP), day1); - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule("2016-08-30", 0).getSOBD(),TZ_NY), + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule("2016-08-30", 0).getSOBD(), TZ_NY), "2016-08-30"); assertNull(USNYSE.previousBusinessSchedule((String) null, 0)); day1 = "2016-08-29"; - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2, 3).getSOBD(),TZ_NY), day1); - assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2, 3).getSOBD(),TZ_JP), day1); - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day1, -3).getSOBD(),TZ_NY), day2); - assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day1, -3).getSOBD(),TZ_JP), day2); + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2, 3).getSOBD(), TZ_NY), day1); + assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2, 3).getSOBD(), TZ_JP), day1); + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day1, -3).getSOBD(), TZ_NY), day2); + assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day1, -3).getSOBD(), TZ_JP), day2); // leap day day1 = "2016-02-29"; day2 = "2016-03-01"; - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2).getSOBD(),TZ_NY), day1); - assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2).getSOBD(),TZ_JP), day1); + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2).getSOBD(), TZ_NY), day1); + assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2).getSOBD(), TZ_JP), day1); // new year day1 = "2014-12-29"; day2 = "2014-12-31"; - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2, 2).getSOBD(),TZ_NY), day1); - assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2, 2).getSOBD(),TZ_JP), day1); - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day1, -2).getSOBD(),TZ_NY), day2); - assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day1, -2).getSOBD(),TZ_JP), day2); + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day2, 2).getSOBD(), TZ_NY), day1); + assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day2, 2).getSOBD(), TZ_JP), day1); + assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(day1, -2).getSOBD(), TZ_NY), day2); + assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(day1, -2).getSOBD(), TZ_JP), day2); // Daylight savings starts in NY (UTC-7:00) at 2 AM 2017-03-12 day1 = "2017-03-10"; day2 = "2017-03-13"; - assertEquals(DateTimeUtils.formatDate(USNYSE.previousBusinessSchedule(USNYSE.previousDay(USNYSE.previousDay(day2))).getSOBD(),TZ_NY), day1); - assertEquals(DateTimeUtils.formatDate(JPOSE.previousBusinessSchedule(JPOSE.previousDay(JPOSE.previousDay(day2))).getSOBD(),TZ_JP), day1); + assertEquals( + DateTimeUtils.formatDate( + USNYSE.previousBusinessSchedule(USNYSE.previousDay(USNYSE.previousDay(day2))).getSOBD(), TZ_NY), + day1); + assertEquals( + DateTimeUtils.formatDate( + JPOSE.previousBusinessSchedule(JPOSE.previousDay(JPOSE.previousDay(day2))).getSOBD(), TZ_JP), + day1); day1 = null; assertNull(USNYSE.previousBusinessSchedule(day1)); @@ -1614,7 +1628,7 @@ public void testMidnightClose() { assertEquals("2019-08-19", UTC.nextBusinessDay(DateTimeUtils.parseInstant("2019-08-18T00:00:00.000000000 UTC"))); - assertEquals("2019-05-16", DateTimeUtils.formatDate(UTC.getBusinessSchedule("2019-05-16").getSOBD(),TZ_UTC)); - assertEquals("2019-05-17", DateTimeUtils.formatDate(UTC.getBusinessSchedule("2019-05-16").getEOBD(),TZ_UTC)); + assertEquals("2019-05-16", DateTimeUtils.formatDate(UTC.getBusinessSchedule("2019-05-16").getSOBD(), TZ_UTC)); + assertEquals("2019-05-17", DateTimeUtils.formatDate(UTC.getBusinessSchedule("2019-05-16").getEOBD(), TZ_UTC)); } } diff --git a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/table/BarrageTable.java b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/table/BarrageTable.java index 18ae8bc1a98..b38bd97b463 100644 --- a/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/table/BarrageTable.java +++ b/extensions/barrage/src/main/java/io/deephaven/extensions/barrage/table/BarrageTable.java @@ -566,7 +566,7 @@ public void run() { } private void flush(final Instant now, final BarrageSubscriptionPerformanceLogger logger, final Histogram hist, - final String statType) throws IOException { + final String statType) throws IOException { if (hist.getTotalCount() == 0) { return; } diff --git a/extensions/csv/src/main/java/io/deephaven/csv/CsvTools.java b/extensions/csv/src/main/java/io/deephaven/csv/CsvTools.java index 2a59fde981a..89684c7658c 100644 --- a/extensions/csv/src/main/java/io/deephaven/csv/CsvTools.java +++ b/extensions/csv/src/main/java/io/deephaven/csv/CsvTools.java @@ -936,8 +936,9 @@ private static void writeCsvContentsSeq( if (o instanceof String) { out.write("" + separatorCsvEscape((String) o, separatorStr)); } else if (o instanceof Instant) { - //noinspection DataFlowIssue; non-null input ensures non-null output - out.write(separatorCsvEscape(DateTimeUtils.formatDateTime((Instant) o, timeZone), separatorStr)); + // noinspection DataFlowIssue; non-null input ensures non-null output + out.write(separatorCsvEscape( + DateTimeUtils.formatDateTime((Instant) o, timeZone), separatorStr)); } else { out.write(nullsAsEmpty ? separatorCsvEscape(o == null ? "" : o.toString(), separatorStr) diff --git a/extensions/csv/src/main/java/io/deephaven/csv/DeephavenTimeZoneParser.java b/extensions/csv/src/main/java/io/deephaven/csv/DeephavenTimeZoneParser.java index 5016c36487e..5e9257a7150 100644 --- a/extensions/csv/src/main/java/io/deephaven/csv/DeephavenTimeZoneParser.java +++ b/extensions/csv/src/main/java/io/deephaven/csv/DeephavenTimeZoneParser.java @@ -22,8 +22,7 @@ public final class DeephavenTimeZoneParser implements Tokenizer.CustomTimeZonePa private int lastTzKey = -1; private ZoneId lastZoneId = null; - public DeephavenTimeZoneParser() { - } + public DeephavenTimeZoneParser() {} @Override public boolean tryParse(ByteSlice bs, MutableObject zoneId, MutableLong offsetSeconds) { @@ -102,7 +101,7 @@ private static TIntObjectHashMap createZoneIdMap() { final ZoneId previous = zoneIdMap.put(tzKey, zoneId); - if(previous != null){ + if (previous != null) { throw new RuntimeException("Time zone hashing collision: " + zname + " " + tzKey); } } diff --git a/extensions/csv/src/test/java/io/deephaven/csv/TestCsvTools.java b/extensions/csv/src/test/java/io/deephaven/csv/TestCsvTools.java index 78e184f7232..e8bf5776ea7 100644 --- a/extensions/csv/src/test/java/io/deephaven/csv/TestCsvTools.java +++ b/extensions/csv/src/test/java/io/deephaven/csv/TestCsvTools.java @@ -224,7 +224,8 @@ public void testWriteCsv() throws Exception { // Ignore separators in double quotes using this regex String splitterPattern = Pattern.quote(separatorStr) + "(?=([^\"]*\"[^\"]*\")*[^\"]*$)"; - CsvTools.writeCsv(tableToTest, csvFile.getPath(), false, ZoneId.systemDefault(), false, separator, colNames); + CsvTools.writeCsv( + tableToTest, csvFile.getPath(), false, ZoneId.systemDefault(), false, separator, colNames); Scanner csvReader = new Scanner(csvFile); // Check header diff --git a/extensions/jdbc/src/main/java/io/deephaven/jdbc/JdbcTypeMapper.java b/extensions/jdbc/src/main/java/io/deephaven/jdbc/JdbcTypeMapper.java index 36d01c7f1ca..8303d5379f7 100644 --- a/extensions/jdbc/src/main/java/io/deephaven/jdbc/JdbcTypeMapper.java +++ b/extensions/jdbc/src/main/java/io/deephaven/jdbc/JdbcTypeMapper.java @@ -116,8 +116,8 @@ public boolean isStrict() { * *

      * Note that more than one type mapping is possible for each SQL type - a DATE might be converted to either a - * LocalDate oran Instant for example. And the same is true for the target type -an Instant might be sourced from - * a SQL DATE or TIMESTAMP value. + * LocalDate oran Instant for example. And the same is true for the target type -an Instant might be sourced from a + * SQL DATE or TIMESTAMP value. *

      * *

      @@ -129,17 +129,16 @@ public boolean isStrict() { *

      * *

      - * Instant values have a different problem - SQL and Deephaven Instant values are conceptually different. - * TIMESTAMP columns in SQL databases typically do not store timezone information. They are equivalent to a java - * LocalDateTime in this respect. However, Deephaven usually stores timestamps in Instant columns, internally - * represented as nanos-since-the-epoch. This means JDBC timestamps usually require the "context" of a timezone in - * order to be converted toan Instant properly. Writingan Instant to a JDBC datasource (via the bind mechanism) - * has the same issue. Unfortunately this time-zone context issue applies even when mapping JDBC DATETIME values - * "directly" to LocalDate, because most JDBC drivers require all Date related values to pass through a - * java.sql.Date object, which is also epoch-based, not "local". The latest JDBC standard deals with this problem - * but doesn't seem to be widely implemented. Here we handle this problem by passing a "Context" object every time a - * conversion occurs, which contains the timezone to be used when extracting or binding JDBC date or timestamp - * values. + * Instant values have a different problem - SQL and Deephaven Instant values are conceptually different. TIMESTAMP + * columns in SQL databases typically do not store timezone information. They are equivalent to a java LocalDateTime + * in this respect. However, Deephaven usually stores timestamps in Instant columns, internally represented as + * nanos-since-the-epoch. This means JDBC timestamps usually require the "context" of a timezone in order to be + * converted toan Instant properly. Writingan Instant to a JDBC datasource (via the bind mechanism) has the same + * issue. Unfortunately this time-zone context issue applies even when mapping JDBC DATETIME values "directly" to + * LocalDate, because most JDBC drivers require all Date related values to pass through a java.sql.Date object, + * which is also epoch-based, not "local". The latest JDBC standard deals with this problem but doesn't seem to be + * widely implemented. Here we handle this problem by passing a "Context" object every time a conversion occurs, + * which contains the timezone to be used when extracting or binding JDBC date or timestamp values. *

      * * @param the Deephaven column type this mapping handles @@ -725,8 +724,9 @@ public void bindToChunk( ResultSet resultSet, int columnIndex, Context context) throws SQLException { final WritableObjectChunk objectChunk = destChunk.asWritableObjectChunk(); final java.sql.Date date = resultSet.getDate(columnIndex, context.getSourceCalendar()); - objectChunk.set(destOffset, date == null ? null : DateTimeUtils.epochNanosToInstant( - date.getTime() * MILLIS_TO_NANOS)); + objectChunk.set(destOffset, date == null + ? null + : DateTimeUtils.epochMillisToInstant(date.getTime())); } @Override @@ -753,8 +753,10 @@ public void bindToChunk( ResultSet resultSet, int columnIndex, Context context) throws SQLException { final WritableObjectChunk objectChunk = destChunk.asWritableObjectChunk(); final java.sql.Timestamp timestamp = resultSet.getTimestamp(columnIndex, context.getSourceCalendar()); - objectChunk.set(destOffset, timestamp == null ? null : DateTimeUtils.epochNanosToInstant( - timestamp.getTime() * MILLIS_TO_NANOS + timestamp.getNanos() % 1_000_000)); + objectChunk.set(destOffset, timestamp == null + ? null + : DateTimeUtils.epochNanosToInstant( + timestamp.getTime() * MILLIS_TO_NANOS + timestamp.getNanos() % 1_000_000)); } @Override diff --git a/extensions/jdbc/src/test/java/io/deephaven/jdbc/JdbcToTableAdapterTest.java b/extensions/jdbc/src/test/java/io/deephaven/jdbc/JdbcToTableAdapterTest.java index 32c3052952c..b17fcc15c6b 100644 --- a/extensions/jdbc/src/test/java/io/deephaven/jdbc/JdbcToTableAdapterTest.java +++ b/extensions/jdbc/src/test/java/io/deephaven/jdbc/JdbcToTableAdapterTest.java @@ -65,7 +65,10 @@ public void setUp() throws SQLException { ", " + (ii % 256 == 3 ? "NULL" : ii - numRows / 2) + // long ", " + (ii % 256 == 4 ? "NULL" : (ii - numRows / 2) / 256.0) + // float ", " + (ii % 256 == 5 ? "NULL" : "'" + ii + "'") + // string - ", " + (ii % 256 == 6 ? "NULL" : "'" + dtf.format(DateTimeUtils.epochNanosToInstant(ii * 100_000L), TZ_UTC) + "Z'") + // date + ", " + (ii % 256 == 6 + ? "NULL" + : "'" + dtf.format(DateTimeUtils.epochNanosToInstant(ii * 100_000L), TZ_UTC) + "Z'") + + // date ");"); } } diff --git a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeUtil.java b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeUtil.java index 576b525b757..1d1da718b1f 100644 --- a/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeUtil.java +++ b/extensions/kafka/src/main/java/io/deephaven/kafka/ingest/JsonNodeUtil.java @@ -690,7 +690,7 @@ public static Object getValue(final JsonNode node) { } /** - * Returnsan {@link Instant} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed + * Returns an {@link Instant} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed * using {@link DateTimeUtils} autoEpochToTime. If the value in the JSON record is not numeric, this method will * attempt to parse it as a Deephaven Instant string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ). * @@ -706,7 +706,7 @@ public static Instant getInstant(@NotNull final JsonNode node, @NotNull final St } /** - * Returnsan {@link Instant} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed + * Returns an {@link Instant} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed * using {@link DateTimeUtils} autoEpochToTime. If the value in the JSON record is not numeric, this method will * attempt to parse it as a Deephaven Instant string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ). * @@ -722,7 +722,7 @@ public static Instant getInstant(@NotNull final JsonNode node, @NotNull final Js } /** - * Returnsan {@link Instant} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed + * Returns an {@link Instant} from a {@link JsonNode}. Will try to infer precision of a long value to be parsed * using {@link DateTimeUtils} autoEpochToTime. If the value in the JSON record is not numeric, this method will * attempt to parse it as a Deephaven Instant string (yyyy-MM-ddThh:mm:ss[.nnnnnnnnn] TZ). * diff --git a/extensions/kafka/src/main/java/io/deephaven/kafka/publish/GenericRecordKeyOrValueSerializer.java b/extensions/kafka/src/main/java/io/deephaven/kafka/publish/GenericRecordKeyOrValueSerializer.java index 4b3cde7eb0e..9325f5dde68 100644 --- a/extensions/kafka/src/main/java/io/deephaven/kafka/publish/GenericRecordKeyOrValueSerializer.java +++ b/extensions/kafka/src/main/java/io/deephaven/kafka/publish/GenericRecordKeyOrValueSerializer.java @@ -295,7 +295,8 @@ private static GenericRecordFieldProcessor makeInstantToMillisFieldProcessor( return makeGenericFieldProcessor( fieldName, chunkSource, - (final int ii, final ObjectChunk inputChunk) -> ((Instant) inputChunk.get(ii)).toEpochMilli()); + (final int ii, final ObjectChunk inputChunk) -> ((Instant) inputChunk.get(ii)) + .toEpochMilli()); } private static GenericRecordFieldProcessor makeInstantToMicrosFieldProcessor( @@ -304,7 +305,8 @@ private static GenericRecordFieldProcessor makeInstantToMicrosFieldProcessor( return makeGenericFieldProcessor( fieldName, chunkSource, - (final int ii, final ObjectChunk inputChunk) -> DateTimeUtils.epochMicros((Instant) inputChunk.get(ii))); + (final int ii, final ObjectChunk inputChunk) -> DateTimeUtils + .epochMicros((Instant) inputChunk.get(ii))); } private static BigInteger toBigIntegerAtPrecisionAndScale( diff --git a/plugin/figure/src/main/java/io/deephaven/figure/FigureWidgetTranslator.java b/plugin/figure/src/main/java/io/deephaven/figure/FigureWidgetTranslator.java index 21f43b920ce..41bde1ae202 100644 --- a/plugin/figure/src/main/java/io/deephaven/figure/FigureWidgetTranslator.java +++ b/plugin/figure/src/main/java/io/deephaven/figure/FigureWidgetTranslator.java @@ -567,10 +567,10 @@ private BusinessCalendarDescriptor translateBusinessCalendar(AxisTransformBusine localDate.setDay(entry.getKey().getDayOfMonth()); final Holiday.Builder holiday = Holiday.newBuilder(); Arrays.stream(entry.getValue().getBusinessPeriods()).map(bp -> { - //noinspection ConstantConditions + // noinspection ConstantConditions final String open = HOLIDAY_TIME_FORMAT.withZone(businessCalendar.timeZone()) .format(bp.getStartTime()); - //noinspection ConstantConditions + // noinspection ConstantConditions final String close = HOLIDAY_TIME_FORMAT.withZone(businessCalendar.timeZone()) .format(bp.getEndTime()); final BusinessPeriod.Builder businessPeriod = BusinessPeriod.newBuilder(); diff --git a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java index 1c1a72096aa..9108e16f01e 100644 --- a/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java +++ b/replication/static/src/main/java/io/deephaven/replicators/ReplicateSegmentedSortedMultiset.java @@ -92,7 +92,7 @@ public static void main(String[] args) throws IOException { charToAllButBoolean( "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/count/CharRollupCountDistinctOperator.java"); fixupObjectKernelOperator(charToObject( - "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/count/CharRollupCountDistinctOperator.java"), + "engine/table/src/main/java/io/deephaven/engine/table/impl/by/ssmcountdistinct/count/CharRollupCountDistinctOperator.java"), "ssms"); charToAllButBooleanAndLong( diff --git a/server/src/main/java/io/deephaven/server/barrage/BarrageMessageProducer.java b/server/src/main/java/io/deephaven/server/barrage/BarrageMessageProducer.java index f923f51bfe6..26315dad98e 100644 --- a/server/src/main/java/io/deephaven/server/barrage/BarrageMessageProducer.java +++ b/server/src/main/java/io/deephaven/server/barrage/BarrageMessageProducer.java @@ -2226,7 +2226,7 @@ public synchronized void run() { } private void flush(final Instant now, final BarrageSubscriptionPerformanceLogger logger, final Histogram hist, - final String statType) throws IOException { + final String statType) throws IOException { if (hist.getTotalCount() == 0) { return; } From c9cfe183c604568475efe0a01113abf95b5b6557 Mon Sep 17 00:00:00 2001 From: Ryan Caudy Date: Thu, 25 May 2023 11:02:16 -0400 Subject: [PATCH 11/11] Two getNanos() strings I missed --- .../io/deephaven/engine/table/impl/QueryTableWhereTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java index b0ce4b3c972..e3ea85a6ff7 100644 --- a/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java +++ b/engine/table/src/test/java/io/deephaven/engine/table/impl/QueryTableWhereTest.java @@ -1009,10 +1009,10 @@ public void testComparableBinarySearch() { new TableComparator(sortedL3R.where("L3 < 20 && true"), sortedL3R.where("B8 < 20")), new TableComparator(sortedL3R.where("L3 < 20 && true"), sortedL3R.where("S7 < 20")), new TableComparator( - sortedDT.where("DT == null || DT.getNanos() < " + DateTimeUtils.epochNanos(filterTime)), + sortedDT.where("epochNanos(DT) < " + DateTimeUtils.epochNanos(filterTime)), sortedDT.where("DT < '" + filterTimeString + "'")), new TableComparator( - sortedDT.where("DT != null && DT.getNanos() >= " + DateTimeUtils.epochNanos(filterTime)), + sortedDT.where("epochNanos(DT) >= " + DateTimeUtils.epochNanos(filterTime)), sortedDT.where("DT >= '" + filterTimeString + "'")), new TableComparator(sortedCH.where("true && CH > 'M'"), sortedCH.where("CH > 'M'")), new TableComparator(sortedCH.where("CH==null || CH <= 'O'"), sortedCH.where("CH <= 'O'")),