java.lang.Object
org.apache.arrow.vector.SchemaChangeCallBack
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionConstructs a schema-change callback with the schema-changed state set tofalse. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoWork()Sets the schema-changed state totrue.booleanReturns the value of schema-changed state, resetting the schema-changed state tofalse.
-
Constructor Details
-
SchemaChangeCallBack
public SchemaChangeCallBack()Constructs a schema-change callback with the schema-changed state set tofalse.
-
-
Method Details
-
doWork
public void doWork()Sets the schema-changed state totrue. -
getSchemaChangedAndReset
public boolean getSchemaChangedAndReset()Returns the value of schema-changed state, resetting the schema-changed state tofalse.- Returns:
- the previous schema-changed state
-