Class SchemaChangeCallBack

java.lang.Object
org.apache.arrow.vector.SchemaChangeCallBack
All Implemented Interfaces:
CallBack

public class SchemaChangeCallBack extends Object implements CallBack
Callback for when the Schema for the Vector changes (generally happens when a vector is promoted to a union type from a single value type).
  • Constructor Details

    • SchemaChangeCallBack

      public SchemaChangeCallBack()
      Constructs a schema-change callback with the schema-changed state set to false.
  • Method Details

    • doWork

      public void doWork()
      Sets the schema-changed state to true.
      Specified by:
      doWork in interface CallBack
    • getSchemaChangedAndReset

      public boolean getSchemaChangedAndReset()
      Returns the value of schema-changed state, resetting the schema-changed state to false.
      Returns:
      the previous schema-changed state