Uses of Interface
dev.hardwood.writer.StructBuilder
Packages that use StructBuilder
Package
Description
Parquet file writer, with a columnar and a row-oriented API over one core.
-
Uses of StructBuilder in dev.hardwood.writer
Methods in dev.hardwood.writer that return StructBuilderModifier and TypeMethodDescriptionStructBuilder.setBinary(int fieldIndex, byte[] value) Sets aBYTE_ARRAYorFIXED_LEN_BYTE_ARRAYfield by index.Sets aBYTE_ARRAYorFIXED_LEN_BYTE_ARRAYfield from its bytes, which are referenced rather than copied and must not be mutated until the record is written.StructBuilder.setBoolean(int fieldIndex, boolean value) Sets aBOOLEANfield by index.StructBuilder.setBoolean(String name, boolean value) Sets aBOOLEANfield.Sets aDATEfield by index.Sets anINT32field annotatedDATE, as days since the Unix epoch.StructBuilder.setDecimal(int fieldIndex, BigDecimal value) Sets aDECIMALfield by index.StructBuilder.setDecimal(String name, BigDecimal value) Sets a field annotatedDECIMAL, in whichever ofINT32,INT64,BYTE_ARRAYorFIXED_LEN_BYTE_ARRAYthe column declares.StructBuilder.setDouble(int fieldIndex, double value) Sets aDOUBLEfield by index.Sets aDOUBLEfield.StructBuilder.setFloat(int fieldIndex, float value) Sets aFLOATfield by index.Sets aFLOATfield.StructBuilder.setInt(int fieldIndex, int value) Sets anINT32field by index.Sets anINT32field.StructBuilder.setInterval(int fieldIndex, PqInterval value) Sets anINTERVALfield by index.StructBuilder.setInterval(String name, PqInterval value) Sets aFIXED_LEN_BYTE_ARRAY(12)field annotatedINTERVAL.StructBuilder.setList(int fieldIndex, Consumer<ListBuilder> filler) Sets aLISTfield by index.StructBuilder.setList(String name, Consumer<ListBuilder> filler) Sets aLISTfield, appending its entries throughfiller.StructBuilder.setLocalTimestamp(int fieldIndex, LocalDateTime value) Sets a local-wall-clockTIMESTAMPfield by index.StructBuilder.setLocalTimestamp(String name, LocalDateTime value) Sets anINT64field annotatedTIMESTAMPwithisAdjustedToUTC = false.StructBuilder.setLong(int fieldIndex, long value) Sets anINT64field by index.Sets anINT64field.StructBuilder.setMap(int fieldIndex, Consumer<MapBuilder> filler) Sets aMAPfield by index.StructBuilder.setMap(String name, Consumer<MapBuilder> filler) Sets aMAPfield, appending its entries throughfiller.StructBuilder.setNull(int fieldIndex) Sets a field null by index.Sets a field null.Sets aSTRING-shaped field by index.Sets aBYTE_ARRAYfield annotatedSTRING,ENUMorJSON, or unannotated, from the value's UTF-8 bytes.StructBuilder.setStruct(int fieldIndex, Consumer<StructBuilder> filler) Sets a nested struct field by index.StructBuilder.setStruct(String name, Consumer<StructBuilder> filler) Sets a nested struct field, populating it throughfiller.Sets aTIMEfield by index.Sets a field annotatedTIME, in the unit the annotation declares.StructBuilder.setTimestamp(int fieldIndex, Instant value) Sets a UTC-adjustedTIMESTAMPfield by index.StructBuilder.setTimestamp(String name, Instant value) Sets anINT64field annotatedTIMESTAMPwithisAdjustedToUTC = true, in the unit the annotation declares.Sets aUUIDfield by index.Sets aFIXED_LEN_BYTE_ARRAY(16)field annotatedUUID.Method parameters in dev.hardwood.writer with type arguments of type StructBuilderModifier and TypeMethodDescriptionMapBuilder.addEntry(Consumer<StructBuilder> filler) Appends one entry, populating itskeyandvaluefields throughfiller.ListBuilder.addStruct(Consumer<StructBuilder> filler) Appends a struct entry, populating it throughfiller.StructBuilder.setStruct(int fieldIndex, Consumer<StructBuilder> filler) Sets a nested struct field by index.StructBuilder.setStruct(String name, Consumer<StructBuilder> filler) Sets a nested struct field, populating it throughfiller.voidRowWriter.writeRow(Consumer<StructBuilder> filler) Writes one record.