Class ObjectGroup

java.lang.Object
org.apache.parquet.example.data.GroupValueSource
org.apache.parquet.example.data.Group
org.gridgain.internal.sql.copy.parquet.ObjectGroup

public class ObjectGroup extends org.apache.parquet.example.data.Group
Group implementation that stores data in a list of lists.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ObjectGroup(org.apache.parquet.schema.GroupType schema)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int fieldIndex, boolean value)
     
    void
    add(int fieldIndex, double value)
     
    void
    add(int fieldIndex, float value)
     
    void
    add(int fieldIndex, int value)
     
    void
    add(int fieldIndex, long value)
     
    void
    add(int fieldIndex, String value)
     
    void
    add(int fieldIndex, org.apache.parquet.example.data.Group value)
     
    void
    add(int fieldIndex, org.apache.parquet.example.data.simple.NanoTime value)
     
    void
    add(int fieldIndex, org.apache.parquet.io.api.Binary value)
     
    org.apache.parquet.example.data.Group
    addGroup(int fieldIndex)
     
    org.apache.parquet.io.api.Binary
    getBinary(int fieldIndex, int index)
     
    boolean
    getBoolean(int fieldIndex, int index)
     
    double
    getDouble(int fieldIndex, int index)
     
    int
    getFieldRepetitionCount(int fieldIndex)
     
    float
    getFloat(int fieldIndex, int index)
     
    org.apache.parquet.example.data.Group
    getGroup(int fieldIndex, int index)
     
    org.apache.parquet.io.api.Binary
    getInt96(int fieldIndex, int index)
     
    int
    getInteger(int fieldIndex, int index)
     
    long
    getLong(int fieldIndex, int index)
     
    getString(int fieldIndex, int index)
     
    org.apache.parquet.schema.GroupType
     
    getValue(int fieldIndex, int index)
    Gets raw value without casting.
    getValueToString(int fieldIndex, int index)
     
     
    void
    writeValue(int field, int index, org.apache.parquet.io.api.RecordConsumer recordConsumer)
     

    Methods inherited from class org.apache.parquet.example.data.Group

    add, add, add, add, add, add, add, add, add, addGroup, append, append, append, append, append, append, append, append, asGroup, getGroup

    Methods inherited from class org.apache.parquet.example.data.GroupValueSource

    getBinary, getBoolean, getDouble, getFieldRepetitionCount, getFloat, getInt96, getInteger, getLong, getString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ObjectGroup

      public ObjectGroup(org.apache.parquet.schema.GroupType schema)
      Constructor.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • addGroup

      public org.apache.parquet.example.data.Group addGroup(int fieldIndex)
      Specified by:
      addGroup in class org.apache.parquet.example.data.Group
    • getGroup

      public org.apache.parquet.example.data.Group getGroup(int fieldIndex, int index)
      Specified by:
      getGroup in class org.apache.parquet.example.data.Group
    • getValue

      public Object getValue(int fieldIndex, int index)
      Gets raw value without casting. The difference with other methods is that this method returns null if the value is not set.
    • getFieldRepetitionCount

      public int getFieldRepetitionCount(int fieldIndex)
      Specified by:
      getFieldRepetitionCount in class org.apache.parquet.example.data.GroupValueSource
    • getValueToString

      public String getValueToString(int fieldIndex, int index)
      Specified by:
      getValueToString in class org.apache.parquet.example.data.GroupValueSource
    • getString

      public String getString(int fieldIndex, int index)
      Specified by:
      getString in class org.apache.parquet.example.data.GroupValueSource
    • getInteger

      public int getInteger(int fieldIndex, int index)
      Specified by:
      getInteger in class org.apache.parquet.example.data.GroupValueSource
    • getLong

      public long getLong(int fieldIndex, int index)
      Specified by:
      getLong in class org.apache.parquet.example.data.GroupValueSource
    • getDouble

      public double getDouble(int fieldIndex, int index)
      Specified by:
      getDouble in class org.apache.parquet.example.data.GroupValueSource
    • getFloat

      public float getFloat(int fieldIndex, int index)
      Specified by:
      getFloat in class org.apache.parquet.example.data.GroupValueSource
    • getBoolean

      public boolean getBoolean(int fieldIndex, int index)
      Specified by:
      getBoolean in class org.apache.parquet.example.data.GroupValueSource
    • getBinary

      public org.apache.parquet.io.api.Binary getBinary(int fieldIndex, int index)
      Specified by:
      getBinary in class org.apache.parquet.example.data.GroupValueSource
    • getInt96

      public org.apache.parquet.io.api.Binary getInt96(int fieldIndex, int index)
      Specified by:
      getInt96 in class org.apache.parquet.example.data.GroupValueSource
    • add

      public void add(int fieldIndex, int value)
      Specified by:
      add in class org.apache.parquet.example.data.Group
    • add

      public void add(int fieldIndex, long value)
      Specified by:
      add in class org.apache.parquet.example.data.Group
    • add

      public void add(int fieldIndex, String value)
      Specified by:
      add in class org.apache.parquet.example.data.Group
    • add

      public void add(int fieldIndex, org.apache.parquet.example.data.simple.NanoTime value)
      Specified by:
      add in class org.apache.parquet.example.data.Group
    • add

      public void add(int fieldIndex, boolean value)
      Specified by:
      add in class org.apache.parquet.example.data.Group
    • add

      public void add(int fieldIndex, org.apache.parquet.io.api.Binary value)
      Specified by:
      add in class org.apache.parquet.example.data.Group
    • add

      public void add(int fieldIndex, float value)
      Specified by:
      add in class org.apache.parquet.example.data.Group
    • add

      public void add(int fieldIndex, double value)
      Specified by:
      add in class org.apache.parquet.example.data.Group
    • add

      public void add(int fieldIndex, org.apache.parquet.example.data.Group value)
      Specified by:
      add in class org.apache.parquet.example.data.Group
    • getType

      public org.apache.parquet.schema.GroupType getType()
      Specified by:
      getType in class org.apache.parquet.example.data.GroupValueSource
    • writeValue

      public void writeValue(int field, int index, org.apache.parquet.io.api.RecordConsumer recordConsumer)
      Specified by:
      writeValue in class org.apache.parquet.example.data.Group