public class FieldInfo extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
FieldInfo.Binary |
static class |
FieldInfo.Bit |
static class |
FieldInfo.Bit2 |
static class |
FieldInfo.Bit4 |
static class |
FieldInfo.Byte |
static class |
FieldInfo.Byte16 |
static class |
FieldInfo.Category |
static class |
FieldInfo.Clob |
static class |
FieldInfo.Int24 |
static class |
FieldInfo.Int32 |
static class |
FieldInfo.Int64 |
static class |
FieldInfo.Sequence |
static class |
FieldInfo.Short |
static class |
FieldInfo.Text |
static class |
FieldInfo.Varchar |
static class |
FieldInfo.VarcharArray |
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
cached |
protected byte |
flag |
protected String |
name |
protected int |
sn |
protected boolean |
store |
protected boolean |
time |
protected int |
type |
static int |
TYPE_BINARY |
static int |
TYPE_BIT |
static int |
TYPE_BIT2 |
static int |
TYPE_BIT4 |
static int |
TYPE_BYTE |
static int |
TYPE_BYTE16 |
static int |
TYPE_CATEGORY |
static int |
TYPE_CLOB |
static int |
TYPE_INT24 |
static int |
TYPE_INT32 |
static int |
TYPE_INT64 |
static int |
TYPE_SEQUENCE |
static int |
TYPE_SHORT |
static int |
TYPE_TEXT |
static int |
TYPE_VARCHAR |
static int |
TYPE_VARCHAR_ARRAY |
static String[] |
types |
protected boolean |
unsign |
| 构造器和说明 |
|---|
FieldInfo()
构造
|
FieldInfo(byte[] bb) |
FieldInfo(byte[] bb,
int begin) |
FieldInfo(int sn,
String name,
int type,
boolean cached,
boolean unsign,
boolean time,
boolean store) |
FieldInfo(int sn,
String name,
int type,
int flag,
boolean cached,
boolean unsign,
boolean time,
boolean store)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
byte |
getFlag() |
String |
getName()
得到字段名
|
int |
getSn()
返回序号
|
int |
getType()
得到字段类型
|
String |
getTypeName() |
boolean |
isBinaryField() |
boolean |
isBitField() |
boolean |
isByte16Field() |
boolean |
isCached()
是否压缩
|
boolean |
isCateField()
是否是分类字段
|
boolean |
isClobField() |
boolean |
isInt32Field()
是否是int32字段
|
boolean |
isInt32TimeField() |
boolean |
isInt64Field()
是否是int64字段
|
boolean |
isIntField() |
boolean |
isNativeID() |
boolean |
isNumberField() |
boolean |
isSequenceField()
是否是Sequenece字段
|
boolean |
isStore()
是否存储
|
boolean |
isStringField() |
boolean |
isSupportHtml() |
boolean |
isTextField()
是否是文本字段
|
boolean |
isTime()
是否是时间
|
boolean |
isUnsign()
是否有符号
|
boolean |
isVarcharField() |
protected FieldInfo |
name(String name) |
void |
setSn(int sn) |
protected FieldInfo |
sn(int sn)
--------------------------------------------------------------
|
ByteBuff |
toByteBuffer(String charset)
转化成为字节流,便于网络传输。
|
String |
toString() |
protected FieldInfo |
type(int type) |
public static final int TYPE_TEXT
public static final int TYPE_VARCHAR
public static final int TYPE_INT32
public static final int TYPE_INT64
public static final int TYPE_SEQUENCE
public static final int TYPE_BYTE16
public static final int TYPE_CLOB
public static final int TYPE_BINARY
public static final int TYPE_BYTE
public static final int TYPE_SHORT
public static final int TYPE_BIT
public static final int TYPE_BIT2
public static final int TYPE_BIT4
public static final int TYPE_VARCHAR_ARRAY
public static final int TYPE_CATEGORY
public static final int TYPE_INT24
public static final String[] types
protected String name
protected int sn
protected int type
protected boolean cached
protected boolean unsign
protected boolean time
protected boolean store
protected byte flag
public FieldInfo()
public FieldInfo(int sn,
String name,
int type,
int flag,
boolean cached,
boolean unsign,
boolean time,
boolean store)
name - -- 字段名type - -- 类型weight - -- 权重cached - -- 是否被缓存index - -- 是否分词compare - -- 是否比较unsign - -- 是否带符号time - -- 是否是时间store - -- 是否存储public FieldInfo(int sn,
String name,
int type,
boolean cached,
boolean unsign,
boolean time,
boolean store)
public FieldInfo(byte[] bb)
public FieldInfo(byte[] bb,
int begin)
public boolean isCached()
public String getName()
public int getSn()
public void setSn(int sn)
public boolean isStore()
public boolean isTime()
public boolean isSequenceField()
public boolean isTextField()
public boolean isVarcharField()
public boolean isBinaryField()
public boolean isClobField()
public boolean isByte16Field()
public boolean isNativeID()
public boolean isCateField()
public boolean isInt32Field()
public boolean isInt32TimeField()
public boolean isNumberField()
public boolean isIntField()
public boolean isBitField()
public boolean isInt64Field()
public boolean isStringField()
public boolean isUnsign()
public int getType()
public byte getFlag()
public ByteBuff toByteBuffer(String charset) throws IOException
charset - -- 字符集IOExceptionpublic String getTypeName()
public boolean isSupportHtml()
protected FieldInfo sn(int sn)
protected FieldInfo type(int type)
Copyright © 2023. All rights reserved.