Package org.apache.iceberg.common
Class DynFields.UnboundField<T>
java.lang.Object
org.apache.iceberg.common.DynFields.UnboundField<T>
- Enclosing class:
- DynFields
Convenience wrapper class around
Field.
Allows callers to invoke the wrapped method with all Exceptions wrapped by RuntimeException, or with a single Exception catch block.
-
Method Summary
Modifier and TypeMethodDescriptionasStatic()Returns this field as a StaticField.Returns this method as a BoundMethod for the given receiver.Returns the value of this field in the given object.booleanReturns whether the field is always null.booleanisStatic()Returns whether the field is a static field.voidSets the value of this field in the given object.toString()
-
Method Details
-
get
Returns the value of this field in the given object.- Parameters:
target- the object to read the field from- Returns:
- the value of the field in the given object
-
set
Sets the value of this field in the given object.- Parameters:
target- the object to set the field invalue- the value to set
-
toString
-
bind
Returns this method as a BoundMethod for the given receiver.- Parameters:
target- an Object on which to get or set this field- Returns:
- a
DynFields.BoundFieldfor this field and the target - Throws:
IllegalStateException- if the method is staticIllegalArgumentException- if the receiver's class is incompatible
-
asStatic
Returns this field as a StaticField.- Returns:
- a
DynFields.StaticFieldfor this field - Throws:
IllegalStateException- if the method is not static
-
isStatic
public boolean isStatic()Returns whether the field is a static field.- Returns:
- true if the field is static, false otherwise
-
isAlwaysNull
public boolean isAlwaysNull()Returns whether the field is always null.- Returns:
- true if the field is always null, false otherwise
-