Package com.ladybugdb

Class Native

java.lang.Object
com.ladybugdb.Native

public class Native extends Object
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 Details

    • Native

      public Native()
  • Method Details

    • lbugNativeReloadLibrary

      protected static void lbugNativeReloadLibrary(String libPath)
    • lbugDatabaseInit

      protected static long lbugDatabaseInit(String databasePath, long bufferPoolSize, boolean enableCompression, boolean readOnly, long maxDbSize, boolean autoCheckpoint, long checkpointThreshold, boolean throwOnWalReplayFailure, boolean enableChecksums)
    • lbugDatabaseDestroy

      protected static void lbugDatabaseDestroy(Database db)
    • lbugDatabaseSetLoggingLevel

      protected static void lbugDatabaseSetLoggingLevel(String loggingLevel)
    • lbugConnectionInit

      protected static long lbugConnectionInit(Database database)
    • lbugConnectionDestroy

      protected static void lbugConnectionDestroy(Connection connection)
    • lbugConnectionSetMaxNumThreadForExec

      protected static void lbugConnectionSetMaxNumThreadForExec(Connection connection, long numThreads)
    • lbugConnectionGetMaxNumThreadForExec

      protected static long lbugConnectionGetMaxNumThreadForExec(Connection connection)
    • lbugConnectionQuery

      protected static QueryResult lbugConnectionQuery(Connection connection, String query)
    • lbugConnectionPrepare

      protected static PreparedStatement lbugConnectionPrepare(Connection connection, String query)
    • lbugConnectionExecute

      protected static QueryResult lbugConnectionExecute(Connection connection, PreparedStatement preparedStatement, Map<String,Value> param)
    • lbugConnectionInterrupt

      protected static void lbugConnectionInterrupt(Connection connection)
    • lbugConnectionSetQueryTimeout

      protected static void lbugConnectionSetQueryTimeout(Connection connection, long timeoutInMs)
    • lbugPreparedStatementDestroy

      protected static void lbugPreparedStatementDestroy(PreparedStatement preparedStatement)
    • lbugPreparedStatementIsSuccess

      protected static boolean lbugPreparedStatementIsSuccess(PreparedStatement preparedStatement)
    • lbugPreparedStatementGetErrorMessage

      protected static String lbugPreparedStatementGetErrorMessage(PreparedStatement preparedStatement)
    • lbugQueryResultDestroy

      protected static void lbugQueryResultDestroy(QueryResult queryResult)
    • lbugQueryResultIsSuccess

      protected static boolean lbugQueryResultIsSuccess(QueryResult queryResult)
    • lbugQueryResultGetErrorMessage

      protected static String lbugQueryResultGetErrorMessage(QueryResult queryResult)
    • lbugQueryResultGetNumColumns

      protected static long lbugQueryResultGetNumColumns(QueryResult queryResult)
    • lbugQueryResultGetColumnName

      protected static String lbugQueryResultGetColumnName(QueryResult queryResult, long index)
    • lbugQueryResultGetColumnDataType

      protected static DataType lbugQueryResultGetColumnDataType(QueryResult queryResult, long index)
    • lbugQueryResultGetNumTuples

      protected static long lbugQueryResultGetNumTuples(QueryResult queryResult)
    • lbugQueryResultGetQuerySummary

      protected static QuerySummary lbugQueryResultGetQuerySummary(QueryResult queryResult)
    • lbugQueryResultHasNext

      protected static boolean lbugQueryResultHasNext(QueryResult queryResult)
    • lbugQueryResultGetNext

      protected static FlatTuple lbugQueryResultGetNext(QueryResult queryResult)
    • lbugQueryResultHasNextQueryResult

      protected static boolean lbugQueryResultHasNextQueryResult(QueryResult queryResult)
    • lbugQueryResultGetNextQueryResult

      protected static QueryResult lbugQueryResultGetNextQueryResult(QueryResult queryResult)
    • lbugQueryResultToString

      protected static String lbugQueryResultToString(QueryResult queryResult)
    • lbugQueryResultResetIterator

      protected static void lbugQueryResultResetIterator(QueryResult queryResult)
    • lbugFlatTupleDestroy

      protected static void lbugFlatTupleDestroy(FlatTuple flatTuple)
    • lbugFlatTupleGetValue

      protected static Value lbugFlatTupleGetValue(FlatTuple flatTuple, long index)
    • lbugFlatTupleToString

      protected static String lbugFlatTupleToString(FlatTuple flatTuple)
    • lbugDataTypeCreate

      protected static long lbugDataTypeCreate(DataTypeID id, DataType childType, long numElementsInArray)
    • lbugDataTypeClone

      protected static DataType lbugDataTypeClone(DataType dataType)
    • lbugDataTypeDestroy

      protected static void lbugDataTypeDestroy(DataType dataType)
    • lbugDataTypeEquals

      protected static boolean lbugDataTypeEquals(DataType dataType1, DataType dataType2)
    • lbugDataTypeGetId

      protected static DataTypeID lbugDataTypeGetId(DataType dataType)
    • lbugDataTypeGetChildType

      protected static DataType lbugDataTypeGetChildType(DataType dataType)
    • lbugDataTypeGetNumElementsInArray

      protected static long lbugDataTypeGetNumElementsInArray(DataType dataType)
    • lbugValueCreateNull

      protected static Value lbugValueCreateNull()
    • lbugValueCreateNullWithDataType

      protected static Value lbugValueCreateNullWithDataType(DataType dataType)
    • lbugValueIsNull

      protected static boolean lbugValueIsNull(Value value)
    • lbugValueSetNull

      protected static void lbugValueSetNull(Value value, boolean isNull)
    • lbugValueCreateDefault

      protected static Value lbugValueCreateDefault(DataType dataType)
    • lbugValueCreateValue

      protected static <T> long lbugValueCreateValue(T val)
    • lbugValueClone

      protected static Value lbugValueClone(Value value)
    • lbugValueCopy

      protected static void lbugValueCopy(Value value, Value other)
    • lbugValueDestroy

      protected static void lbugValueDestroy(Value value)
    • lbugCreateMap

      protected static Value lbugCreateMap(Value[] keys, Value[] values)
    • lbugCreateList

      protected static Value lbugCreateList(Value[] values)
    • lbugCreateList

      protected static Value lbugCreateList(DataType type, long numElements)
    • lbugValueGetListSize

      protected static long lbugValueGetListSize(Value value)
    • lbugValueGetListElement

      protected static Value lbugValueGetListElement(Value value, long index)
    • lbugValueGetDataType

      protected static DataType lbugValueGetDataType(Value value)
    • lbugValueGetValue

      protected static <T> T lbugValueGetValue(Value value)
    • lbugValueToString

      protected static String lbugValueToString(Value value)
    • lbugNodeValGetId

      protected static InternalID lbugNodeValGetId(Value nodeVal)
    • lbugNodeValGetLabelName

      protected static String lbugNodeValGetLabelName(Value nodeVal)
    • lbugNodeValGetPropertySize

      protected static long lbugNodeValGetPropertySize(Value nodeVal)
    • lbugNodeValGetPropertyNameAt

      protected static String lbugNodeValGetPropertyNameAt(Value nodeVal, long index)
    • lbugNodeValGetPropertyValueAt

      protected static Value lbugNodeValGetPropertyValueAt(Value nodeVal, long index)
    • lbugNodeValToString

      protected static String lbugNodeValToString(Value nodeVal)
    • lbugRelValGetId

      protected static InternalID lbugRelValGetId(Value relVal)
    • lbugRelValGetSrcId

      protected static InternalID lbugRelValGetSrcId(Value relVal)
    • lbugRelValGetDstId

      protected static InternalID lbugRelValGetDstId(Value relVal)
    • lbugRelValGetLabelName

      protected static String lbugRelValGetLabelName(Value relVal)
    • lbugRelValGetPropertySize

      protected static long lbugRelValGetPropertySize(Value relVal)
    • lbugRelValGetPropertyNameAt

      protected static String lbugRelValGetPropertyNameAt(Value relVal, long index)
    • lbugRelValGetPropertyValueAt

      protected static Value lbugRelValGetPropertyValueAt(Value relVal, long index)
    • lbugRelValToString

      protected static String lbugRelValToString(Value relVal)
    • lbugCreateStruct

      protected static Value lbugCreateStruct(String[] fieldNames, Value[] fieldValues)
    • lbugValueGetStructFieldName

      protected static String lbugValueGetStructFieldName(Value structVal, long index)
    • lbugValueGetStructIndex

      protected static long lbugValueGetStructIndex(Value structVal, String fieldName)
    • lbugGetVersion

      protected static String lbugGetVersion()
    • lbugGetStorageVersion

      protected static long lbugGetStorageVersion()