Package ai.konduit.serving.util
Class WritableValueRetriever
- java.lang.Object
-
- ai.konduit.serving.util.WritableValueRetriever
-
public class WritableValueRetriever extends java.lang.ObjectUtilities for datavec'sWritablethis just perform basic conversion between unknown objects andWritabletypes.- Author:
- Adam Gibson
-
-
Constructor Summary
Constructors Constructor Description WritableValueRetriever()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectgetUnderlyingValue(org.datavec.api.writable.Writable writable)Get the underlying value fro the givenWritablestatic org.datavec.api.writable.WritablewritableFromValue(java.lang.Object input)Create aWritablefrom the given value If an input type is invalid, anIllegalArgumentExceptionwill be thrown
-
-
-
Method Detail
-
writableFromValue
public static org.datavec.api.writable.Writable writableFromValue(java.lang.Object input)
Create aWritablefrom the given value If an input type is invalid, anIllegalArgumentExceptionwill be thrown- Parameters:
input- the input object- Returns:
- writable
-
getUnderlyingValue
public static java.lang.Object getUnderlyingValue(org.datavec.api.writable.Writable writable)
Get the underlying value fro the givenWritable- Parameters:
writable- the writable to get the value for- Returns:
- the underlying value represnted by the
Writable
-
-