public class StructRegistry extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FIELD_MASK |
static int |
IS_STRUCT_BIT |
static int |
STRUCT_OFFSET |
| Constructor and Description |
|---|
StructRegistry() |
| Modifier and Type | Method and Description |
|---|---|
int |
addStruct() |
int |
addStruct(byte[][] fieldNames,
StructType[] fieldTypes) |
int |
addStruct(byte[][] fieldNames,
StructType[] fieldTypes,
int[] fieldDims) |
int |
addStruct(byte[][] fieldNames,
StructType[] fieldTypes,
int[] fieldDim,
Object[] fieldAssoc) |
int |
addStruct(Object associatedObject,
byte[][] fieldNames,
StructType[] fieldTypes,
int[] fieldDim,
Object[] fieldAssoc)
Add new Structure to the schema
|
<A extends Appendable> |
asSource(A target) |
int |
dims(long id) |
static int |
extractFieldPosition(long fieldId) |
static int |
extractStructId(long id) |
long |
fieldLookup(byte[] source,
int pos,
int len,
int mask,
int struct) |
long |
fieldLookup(CharSequence sequence,
int struct) |
<T> long |
fieldLookupByIdentity(T attachedObject,
int structId) |
byte[] |
fieldName(long id) |
StructType |
fieldType(long id) |
<T> T |
getAssociatedObject(long fieldId) |
long |
growStruct(int structId,
StructType fieldType,
int fieldDim,
byte[] name) |
<T> boolean |
identityVisit(DataInputBlobReader<?> reader,
T attachedObject,
StructFieldVisitor<T> visitor) |
static <T> int |
lookupIndexOffset(StructRegistry that,
T attachedObject,
int structId,
int hash) |
int |
maxDim() |
StructRegistry |
merge(StructRegistry source) |
long |
modifyStruct(int structId,
byte[] fieldName,
int fieldPos,
int fieldLen,
StructType fieldType,
int fieldDim) |
long[] |
newFieldIds(int structId) |
void |
registerStructAssociation(int structId,
Object associatedObject) |
boolean |
setAssociatedObject(long id,
Object localObject) |
int |
structLookupByIdentity(Object assoc) |
String |
toString() |
int |
totalSizeOfIndexes(int structId) |
<T> boolean |
visit(DataInputBlobReader<?> reader,
Class<T> attachedInstanceOf,
StructFieldVisitor<T> visitor) |
void |
visitAssociatedObject(int structId,
AssocVisitor visitor) |
public static final int STRUCT_OFFSET
public static final int IS_STRUCT_BIT
public static final int FIELD_MASK
public void registerStructAssociation(int structId,
Object associatedObject)
public StructRegistry merge(StructRegistry source)
public <A extends Appendable> A asSource(A target)
public int addStruct()
public int addStruct(byte[][] fieldNames,
StructType[] fieldTypes)
public int addStruct(byte[][] fieldNames,
StructType[] fieldTypes,
int[] fieldDims)
public int addStruct(byte[][] fieldNames,
StructType[] fieldTypes,
int[] fieldDim,
Object[] fieldAssoc)
public int addStruct(Object associatedObject, byte[][] fieldNames, StructType[] fieldTypes, int[] fieldDim, Object[] fieldAssoc)
associatedObject - - reference objectfieldNames - - name for each fieldfieldTypes - - type for each fieldfieldDim - - dominations for this field, should be 0 for most cases of simple datapublic long growStruct(int structId,
StructType fieldType,
int fieldDim,
byte[] name)
public long modifyStruct(int structId,
byte[] fieldName,
int fieldPos,
int fieldLen,
StructType fieldType,
int fieldDim)
public long[] newFieldIds(int structId)
public boolean setAssociatedObject(long id,
Object localObject)
public static int extractStructId(long id)
public static int extractFieldPosition(long fieldId)
public <T> T getAssociatedObject(long fieldId)
public int dims(long id)
public StructType fieldType(long id)
public byte[] fieldName(long id)
public long fieldLookup(CharSequence sequence, int struct)
public long fieldLookup(byte[] source,
int pos,
int len,
int mask,
int struct)
public <T> long fieldLookupByIdentity(T attachedObject,
int structId)
public int structLookupByIdentity(Object assoc)
public static <T> int lookupIndexOffset(StructRegistry that, T attachedObject, int structId, int hash)
public void visitAssociatedObject(int structId,
AssocVisitor visitor)
public int maxDim()
public <T> boolean visit(DataInputBlobReader<?> reader, Class<T> attachedInstanceOf, StructFieldVisitor<T> visitor)
public <T> boolean identityVisit(DataInputBlobReader<?> reader, T attachedObject, StructFieldVisitor<T> visitor)
public int totalSizeOfIndexes(int structId)
Copyright © 2018. All Rights Reserved.