Package com.ladybugdb
Class Native
java.lang.Object
com.ladybugdb.Native
Native is a wrapper class for the native library.
It is used to load the native library and call the native functions.
This class is not intended to be used by end users.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidlbugConnectionDestroy(Connection connection) protected static QueryResultlbugConnectionExecute(Connection connection, PreparedStatement preparedStatement, Map<String, Value> param) protected static longlbugConnectionGetMaxNumThreadForExec(Connection connection) protected static longlbugConnectionInit(Database database) protected static voidlbugConnectionInterrupt(Connection connection) protected static PreparedStatementlbugConnectionPrepare(Connection connection, String query) protected static QueryResultlbugConnectionQuery(Connection connection, String query) protected static voidlbugConnectionSetMaxNumThreadForExec(Connection connection, long numThreads) protected static voidlbugConnectionSetQueryTimeout(Connection connection, long timeoutInMs) protected static ValuelbugCreateList(DataType type, long numElements) protected static ValuelbugCreateList(Value[] values) protected static ValuelbugCreateMap(Value[] keys, Value[] values) protected static ValuelbugCreateStruct(String[] fieldNames, Value[] fieldValues) protected static voidprotected static longlbugDatabaseInit(String databasePath, long bufferPoolSize, boolean enableCompression, boolean readOnly, long maxDbSize, boolean autoCheckpoint, long checkpointThreshold, boolean throwOnWalReplayFailure, boolean enableChecksums) protected static voidlbugDatabaseSetLoggingLevel(String loggingLevel) protected static DataTypelbugDataTypeClone(DataType dataType) protected static longlbugDataTypeCreate(DataTypeID id, DataType childType, long numElementsInArray) protected static voidlbugDataTypeDestroy(DataType dataType) protected static booleanlbugDataTypeEquals(DataType dataType1, DataType dataType2) protected static DataTypelbugDataTypeGetChildType(DataType dataType) protected static DataTypeIDlbugDataTypeGetId(DataType dataType) protected static longlbugDataTypeGetNumElementsInArray(DataType dataType) protected static voidlbugFlatTupleDestroy(FlatTuple flatTuple) protected static ValuelbugFlatTupleGetValue(FlatTuple flatTuple, long index) protected static StringlbugFlatTupleToString(FlatTuple flatTuple) protected static longprotected static Stringprotected static voidlbugNativeReloadLibrary(String libPath) protected static InternalIDlbugNodeValGetId(Value nodeVal) protected static StringlbugNodeValGetLabelName(Value nodeVal) protected static StringlbugNodeValGetPropertyNameAt(Value nodeVal, long index) protected static longlbugNodeValGetPropertySize(Value nodeVal) protected static ValuelbugNodeValGetPropertyValueAt(Value nodeVal, long index) protected static StringlbugNodeValToString(Value nodeVal) protected static voidlbugPreparedStatementDestroy(PreparedStatement preparedStatement) protected static StringlbugPreparedStatementGetErrorMessage(PreparedStatement preparedStatement) protected static booleanlbugPreparedStatementIsSuccess(PreparedStatement preparedStatement) protected static voidlbugQueryResultDestroy(QueryResult queryResult) protected static DataTypelbugQueryResultGetColumnDataType(QueryResult queryResult, long index) protected static StringlbugQueryResultGetColumnName(QueryResult queryResult, long index) protected static StringlbugQueryResultGetErrorMessage(QueryResult queryResult) protected static FlatTuplelbugQueryResultGetNext(QueryResult queryResult) protected static QueryResultlbugQueryResultGetNextQueryResult(QueryResult queryResult) protected static longlbugQueryResultGetNumColumns(QueryResult queryResult) protected static longlbugQueryResultGetNumTuples(QueryResult queryResult) protected static QuerySummarylbugQueryResultGetQuerySummary(QueryResult queryResult) protected static booleanlbugQueryResultHasNext(QueryResult queryResult) protected static booleanlbugQueryResultHasNextQueryResult(QueryResult queryResult) protected static booleanlbugQueryResultIsSuccess(QueryResult queryResult) protected static voidlbugQueryResultResetIterator(QueryResult queryResult) protected static StringlbugQueryResultToString(QueryResult queryResult) protected static InternalIDlbugRelValGetDstId(Value relVal) protected static InternalIDlbugRelValGetId(Value relVal) protected static StringlbugRelValGetLabelName(Value relVal) protected static StringlbugRelValGetPropertyNameAt(Value relVal, long index) protected static longlbugRelValGetPropertySize(Value relVal) protected static ValuelbugRelValGetPropertyValueAt(Value relVal, long index) protected static InternalIDlbugRelValGetSrcId(Value relVal) protected static StringlbugRelValToString(Value relVal) protected static ValuelbugValueClone(Value value) protected static voidlbugValueCopy(Value value, Value other) protected static ValuelbugValueCreateDefault(DataType dataType) protected static Valueprotected static ValuelbugValueCreateNullWithDataType(DataType dataType) protected static <T> longlbugValueCreateValue(T val) protected static voidlbugValueDestroy(Value value) protected static DataTypelbugValueGetDataType(Value value) protected static ValuelbugValueGetListElement(Value value, long index) protected static longlbugValueGetListSize(Value value) protected static StringlbugValueGetStructFieldName(Value structVal, long index) protected static longlbugValueGetStructIndex(Value structVal, String fieldName) protected static <T> TlbugValueGetValue(Value value) protected static booleanlbugValueIsNull(Value value) protected static voidlbugValueSetNull(Value value, boolean isNull) protected static StringlbugValueToString(Value value)
-
Constructor Details
-
Native
public Native()
-
-
Method Details
-
lbugNativeReloadLibrary
-
lbugDatabaseInit
protected static long lbugDatabaseInit(String databasePath, long bufferPoolSize, boolean enableCompression, boolean readOnly, long maxDbSize, boolean autoCheckpoint, long checkpointThreshold, boolean throwOnWalReplayFailure, boolean enableChecksums) -
lbugDatabaseDestroy
-
lbugDatabaseSetLoggingLevel
-
lbugConnectionInit
-
lbugConnectionDestroy
-
lbugConnectionSetMaxNumThreadForExec
-
lbugConnectionGetMaxNumThreadForExec
-
lbugConnectionQuery
-
lbugConnectionPrepare
-
lbugConnectionExecute
protected static QueryResult lbugConnectionExecute(Connection connection, PreparedStatement preparedStatement, Map<String, Value> param) -
lbugConnectionInterrupt
-
lbugConnectionSetQueryTimeout
-
lbugPreparedStatementDestroy
-
lbugPreparedStatementIsSuccess
-
lbugPreparedStatementGetErrorMessage
-
lbugQueryResultDestroy
-
lbugQueryResultIsSuccess
-
lbugQueryResultGetErrorMessage
-
lbugQueryResultGetNumColumns
-
lbugQueryResultGetColumnName
-
lbugQueryResultGetColumnDataType
-
lbugQueryResultGetNumTuples
-
lbugQueryResultGetQuerySummary
-
lbugQueryResultHasNext
-
lbugQueryResultGetNext
-
lbugQueryResultHasNextQueryResult
-
lbugQueryResultGetNextQueryResult
-
lbugQueryResultToString
-
lbugQueryResultResetIterator
-
lbugFlatTupleDestroy
-
lbugFlatTupleGetValue
-
lbugFlatTupleToString
-
lbugDataTypeCreate
protected static long lbugDataTypeCreate(DataTypeID id, DataType childType, long numElementsInArray) -
lbugDataTypeClone
-
lbugDataTypeDestroy
-
lbugDataTypeEquals
-
lbugDataTypeGetId
-
lbugDataTypeGetChildType
-
lbugDataTypeGetNumElementsInArray
-
lbugValueCreateNull
-
lbugValueCreateNullWithDataType
-
lbugValueIsNull
-
lbugValueSetNull
-
lbugValueCreateDefault
-
lbugValueCreateValue
protected static <T> long lbugValueCreateValue(T val) -
lbugValueClone
-
lbugValueCopy
-
lbugValueDestroy
-
lbugCreateMap
-
lbugCreateList
-
lbugCreateList
-
lbugValueGetListSize
-
lbugValueGetListElement
-
lbugValueGetDataType
-
lbugValueGetValue
-
lbugValueToString
-
lbugNodeValGetId
-
lbugNodeValGetLabelName
-
lbugNodeValGetPropertySize
-
lbugNodeValGetPropertyNameAt
-
lbugNodeValGetPropertyValueAt
-
lbugNodeValToString
-
lbugRelValGetId
-
lbugRelValGetSrcId
-
lbugRelValGetDstId
-
lbugRelValGetLabelName
-
lbugRelValGetPropertySize
-
lbugRelValGetPropertyNameAt
-
lbugRelValGetPropertyValueAt
-
lbugRelValToString
-
lbugCreateStruct
-
lbugValueGetStructFieldName
-
lbugValueGetStructIndex
-
lbugGetVersion
-
lbugGetStorageVersion
protected static long lbugGetStorageVersion()
-