com.supermap.data
类 AttributeCompact
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.data.AttributeCompact
-
- 所有已实现的接口:
- IDisposable
public class AttributeCompact extends com.supermap.data.InternalHandleDisposable
对DB属性文件的读取。- 从以下版本开始:
- 11.2.0。
-
-
字段概要
字段 限定符和类型 字段和说明 static int
UGE_CREATE_FALSE
static int
UGE_ERROR_FORMAT
static int
UGE_ERROR_READ
static int
UGE_ERROR_WRITE
static int
UGE_INVALID_ARGUMENT
static int
UGE_NO_FOUND
static int
UGE_OPEN_FALSE
static int
UGE_OUTOF_RANGE
static int
UGE_SUCCESS
static int
UGE_UNOPEN
static int
UGE_UNSUPPORTED
-
构造器概要
构造器 构造器和说明 AttributeCompact()
构造一个新的 AttributeCompact 对象。
-
-
-
字段详细资料
-
UGE_SUCCESS
public static final int UGE_SUCCESS
- 另请参阅:
- 常量字段值
-
UGE_OPEN_FALSE
public static final int UGE_OPEN_FALSE
- 另请参阅:
- 常量字段值
-
UGE_CREATE_FALSE
public static final int UGE_CREATE_FALSE
- 另请参阅:
- 常量字段值
-
UGE_ERROR_FORMAT
public static final int UGE_ERROR_FORMAT
- 另请参阅:
- 常量字段值
-
UGE_OUTOF_RANGE
public static final int UGE_OUTOF_RANGE
- 另请参阅:
- 常量字段值
-
UGE_NO_FOUND
public static final int UGE_NO_FOUND
- 另请参阅:
- 常量字段值
-
UGE_UNOPEN
public static final int UGE_UNOPEN
- 另请参阅:
- 常量字段值
-
UGE_INVALID_ARGUMENT
public static final int UGE_INVALID_ARGUMENT
- 另请参阅:
- 常量字段值
-
UGE_UNSUPPORTED
public static final int UGE_UNSUPPORTED
- 另请参阅:
- 常量字段值
-
UGE_ERROR_READ
public static final int UGE_ERROR_READ
- 另请参阅:
- 常量字段值
-
UGE_ERROR_WRITE
public static final int UGE_ERROR_WRITE
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
dispose
public void dispose()
释放占用资源。调用该方法之后,此对象不再可用。- 抛出:
UnsupportedOperationException
- 对象不能被释放,不能调用Dispose方法。
-
open
public int open(String dbPath, String pwd)
打开已存在的属性文件。- 参数:
dbPath
- 属性文件路径。pwd
- 属性文件密码。- 返回:
- 返回0则打开成功,否则失败。
- 抛出:
IllegalStateException
- 当前对象已被释放。
-
close
public boolean close()
关闭已打开的属性文件。- 返回:
- 返回true则关闭成功,否则失败。
- 抛出:
IllegalStateException
- 当前对象已被释放。
-
getData
public String[] getData(String[] attributeKey)
批量获取属性json。- 参数:
attributeKey
- 属性key数组。- 返回:
- 属性json数组。
- 抛出:
IllegalStateException
- 当前对象已被释放。
-
getByteArrays
public byte[][] getByteArrays(String[] attributeKey)
批量获取属性流。- 参数:
attributeKey
- 属性key数组。- 返回:
- 属性流数组。
- 抛出:
IllegalStateException
- 当前对象已被释放。
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.