Interface AttributeType<T>
-
- All Known Implementing Classes:
AttributeType.BinaryType,AttributeType.BooleanArrayType,AttributeType.BooleanType,AttributeType.EncodedType,AttributeType.IntegerArrayType,AttributeType.IntegerType,AttributeType.NumberArrayType,AttributeType.NumberType,AttributeType.RefArrayType,AttributeType.RefType,AttributeType.StringArrayType,AttributeType.StringType,AttributeType.StructArrayType,AttributeType.StructType
public interface AttributeType<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAttributeType.BinaryTypestatic classAttributeType.BooleanArrayTypestatic classAttributeType.BooleanTypestatic classAttributeType.EncodedType<T>static classAttributeType.IntegerArrayTypestatic classAttributeType.IntegerTypestatic classAttributeType.NumberArrayTypestatic classAttributeType.NumberTypestatic classAttributeType.RefArrayTypestatic classAttributeType.RefTypestatic classAttributeType.StringArrayTypestatic classAttributeType.StringTypestatic classAttributeType.StructArrayTypestatic classAttributeType.StructType
-
Field Summary
Fields Modifier and Type Field Description static AttributeType.BinaryTypeBINARYstatic AttributeType.BooleanTypeBOOLEANstatic AttributeType.BooleanArrayTypeBOOLEAN_ARRAYstatic AttributeType.IntegerTypeINTEGERstatic AttributeType.IntegerArrayTypeINTEGER_ARRAYstatic AttributeType.NumberTypeNUMBERstatic AttributeType.NumberArrayTypeNUMBER_ARRAYstatic AttributeType.RefTypeREFstatic AttributeType.RefArrayTypeREF_ARRAYstatic AttributeType.StringTypeSTRINGstatic AttributeType.StringArrayTypeSTRING_ARRAY
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voiddef(PortableSchemaFactory factory, com.hazelcast.nio.serialization.ClassDefinitionBuilder builder, java.lang.String name)voiddefValue(PortableSchemaFactory factory, com.hazelcast.nio.serialization.ClassDefinitionBuilder builder, java.lang.String name)static <T> AttributeType.EncodedType<T>encoded(io.basestar.schema.use.Use<T> use)static <T> AttributeType.EncodedType<java.util.List<T>>encodedArray(io.basestar.schema.use.Use<T> type)static java.lang.StringexistsAttribute(java.lang.String name)default Tread(com.hazelcast.nio.serialization.PortableReader reader, java.lang.String name)TreadValue(com.hazelcast.nio.serialization.PortableReader reader, java.lang.String name)static AttributeType.StructTypestruct(io.basestar.schema.StructSchema schema)static AttributeType.StructArrayTypestructArray(io.basestar.schema.StructSchema schema)default voidwrite(PortableSchemaFactory factory, com.hazelcast.nio.serialization.PortableWriter writer, java.lang.String name, T value)voidwriteValue(PortableSchemaFactory factory, com.hazelcast.nio.serialization.PortableWriter writer, java.lang.String name, T value)
-
-
-
Field Detail
-
BOOLEAN
static final AttributeType.BooleanType BOOLEAN
-
BOOLEAN_ARRAY
static final AttributeType.BooleanArrayType BOOLEAN_ARRAY
-
INTEGER
static final AttributeType.IntegerType INTEGER
-
INTEGER_ARRAY
static final AttributeType.IntegerArrayType INTEGER_ARRAY
-
NUMBER
static final AttributeType.NumberType NUMBER
-
NUMBER_ARRAY
static final AttributeType.NumberArrayType NUMBER_ARRAY
-
STRING
static final AttributeType.StringType STRING
-
STRING_ARRAY
static final AttributeType.StringArrayType STRING_ARRAY
-
BINARY
static final AttributeType.BinaryType BINARY
-
REF
static final AttributeType.RefType REF
-
REF_ARRAY
static final AttributeType.RefArrayType REF_ARRAY
-
-
Method Detail
-
encoded
static <T> AttributeType.EncodedType<T> encoded(io.basestar.schema.use.Use<T> use)
-
encodedArray
static <T> AttributeType.EncodedType<java.util.List<T>> encodedArray(io.basestar.schema.use.Use<T> type)
-
struct
static AttributeType.StructType struct(io.basestar.schema.StructSchema schema)
-
structArray
static AttributeType.StructArrayType structArray(io.basestar.schema.StructSchema schema)
-
readValue
T readValue(com.hazelcast.nio.serialization.PortableReader reader, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
read
default T read(com.hazelcast.nio.serialization.PortableReader reader, java.lang.String name) throws java.io.IOException
- Throws:
java.io.IOException
-
writeValue
void writeValue(PortableSchemaFactory factory, com.hazelcast.nio.serialization.PortableWriter writer, java.lang.String name, T value) throws java.io.IOException
- Throws:
java.io.IOException
-
write
default void write(PortableSchemaFactory factory, com.hazelcast.nio.serialization.PortableWriter writer, java.lang.String name, T value) throws java.io.IOException
- Throws:
java.io.IOException
-
defValue
void defValue(PortableSchemaFactory factory, com.hazelcast.nio.serialization.ClassDefinitionBuilder builder, java.lang.String name)
-
def
default void def(PortableSchemaFactory factory, com.hazelcast.nio.serialization.ClassDefinitionBuilder builder, java.lang.String name)
-
existsAttribute
static java.lang.String existsAttribute(java.lang.String name)
-
-