From 8ea014224fbaa9d4704c69932adc31844bdf0b82 Mon Sep 17 00:00:00 2001 From: hugy718 Date: Wed, 7 Aug 2024 16:33:00 +0800 Subject: [PATCH] fix: formatting --- .../java/com/nus/cool/core/io/readstore/CubletRS.java | 10 +++++----- .../nus/cool/core/util/writer/NativeDataWriter.java | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/cool-core/src/main/java/com/nus/cool/core/io/readstore/CubletRS.java b/cool-core/src/main/java/com/nus/cool/core/io/readstore/CubletRS.java index 5f4ebb0a..5c8fd047 100644 --- a/cool-core/src/main/java/com/nus/cool/core/io/readstore/CubletRS.java +++ b/cool-core/src/main/java/com/nus/cool/core/io/readstore/CubletRS.java @@ -21,18 +21,18 @@ import static com.google.common.base.Preconditions.checkNotNull; -import java.nio.ByteBuffer; -import java.util.BitSet; -import java.util.List; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import com.google.common.collect.Lists; import com.google.common.primitives.Ints; import com.nus.cool.core.io.Input; import com.nus.cool.core.io.compression.SimpleBitSetCompressor; import com.nus.cool.core.schema.TableSchema; +import java.nio.ByteBuffer; +import java.util.BitSet; +import java.util.List; import lombok.Getter; import lombok.Setter; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * Read cublet store diff --git a/cool-core/src/main/java/com/nus/cool/core/util/writer/NativeDataWriter.java b/cool-core/src/main/java/com/nus/cool/core/util/writer/NativeDataWriter.java index 5edd0281..2d0d2579 100644 --- a/cool-core/src/main/java/com/nus/cool/core/util/writer/NativeDataWriter.java +++ b/cool-core/src/main/java/com/nus/cool/core/util/writer/NativeDataWriter.java @@ -182,7 +182,8 @@ public boolean add(FieldValue[] tuple) throws IOException { if (maybeSwitchChunk(curUser)) { if (maybeSwitchCublet()) { // create a new data chunk with offset 0 - this.dataChunk = DataChunkWS.newDataChunk(this.tableSchema, this.metaChunk.getMetaFields(), 0); + this.dataChunk = DataChunkWS.newDataChunk( + this.tableSchema, this.metaChunk.getMetaFields(), 0); } } lastUser = curUser;