Package org.jpmml.xgboost
Class XGBoostDataInput
- java.lang.Object
-
- org.jpmml.xgboost.XGBoostDataInput
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class XGBoostDataInput extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description XGBoostDataInput(InputStream is, String charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()floatreadFloat()float[]readFloatArray(int length)float[]readFloatVector()intreadInt()int[]readIntArray(int length)int[]readIntVector()longreadLong()<E extends BinaryLoadable>
E[]readObjectArray(Class<? extends E> clazz, int length)<E extends BinaryLoadable>
E[]readObjectVector(Class<? extends E> clazz)voidreadReserved(int length)StringreadString()String[]readStringArray(int length)Map<String,String>readStringMap()String[]readStringVector()
-
-
-
Constructor Detail
-
XGBoostDataInput
public XGBoostDataInput(InputStream is, String charset)
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
readInt
public int readInt() throws IOException- Throws:
IOException
-
readIntVector
public int[] readIntVector() throws IOException- Throws:
IOException
-
readIntArray
public int[] readIntArray(int length) throws IOException- Throws:
IOException
-
readLong
public long readLong() throws IOException- Throws:
IOException
-
readFloat
public float readFloat() throws IOException- Throws:
IOException
-
readFloatVector
public float[] readFloatVector() throws IOException- Throws:
IOException
-
readFloatArray
public float[] readFloatArray(int length) throws IOException- Throws:
IOException
-
readString
public String readString() throws IOException
- Throws:
IOException
-
readStringVector
public String[] readStringVector() throws IOException
- Throws:
IOException
-
readStringArray
public String[] readStringArray(int length) throws IOException
- Throws:
IOException
-
readStringMap
public Map<String,String> readStringMap() throws IOException
- Throws:
IOException
-
readObjectVector
public <E extends BinaryLoadable> E[] readObjectVector(Class<? extends E> clazz) throws IOException
- Throws:
IOException
-
readObjectArray
public <E extends BinaryLoadable> E[] readObjectArray(Class<? extends E> clazz, int length) throws IOException
- Throws:
IOException
-
readReserved
public void readReserved(int length) throws IOException- Throws:
IOException
-
-