public final class StructuredReader extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PAYLOAD_INDEX_LOCATION |
| Constructor and Description |
|---|
StructuredReader(DataInputBlobReader<?> reader) |
| Modifier and Type | Method and Description |
|---|---|
int |
fullIndexSizeInBytes() |
boolean |
hasValue(long fieldId)
Checks to see if field has value
|
boolean |
hasValue(Object association) |
<T,B extends T> |
identityVisit(B attachedInstance,
StructFieldVisitor<T> visitor) |
boolean |
isEqual(long fieldId,
byte[] utf8EncodedBytes)
Checks to see if passed bytes are equal to field
|
boolean |
isEqual(Object association,
byte[] utf8EncodedBytes)
Checks to see if passed bytes are equal to field
|
boolean |
isNull(long fieldId)
Checks to see if field is null
|
boolean |
isNull(Object association) |
ChannelReader |
read(long fieldId)
set to a position for general reading unless index position is not provided
|
ChannelReader |
read(Object association) |
boolean |
readBoolean(long fieldId)
Reads boolean from specified field in pipe
|
boolean |
readBoolean(Object association)
Reads boolean from specified field in pipe
|
boolean |
readBoolean(Object association,
StructuredWriter output)
Reads boolean from specified field in pipe
|
boolean |
readDecimal(Object association,
StructuredWriter output)
Reads decimal from specified field in pipe
|
double |
readDecimalAsDouble(long fieldId)
Reads decimal as double from specified field in pipe
|
double |
readDecimalAsDouble(Object association)
Reads decimal as double from specified field in pipe
|
<A extends Appendable> |
readDecimalAsText(Object attachedInstance,
A target)
Reads decimal as String and appends to target
|
byte |
readDecimalExponent(long fieldId)
Reads decimal exponent from specified field in pipe
|
byte |
readDecimalExponent(Object association)
Reads decimal exponent from specified field in pipe
|
long |
readDecimalMantissa(long fieldId)
Reads decimal mantissa from specified field in pipe
|
long |
readDecimalMantissa(Object association)
Reads decimal mantissa from specified field in pipe
|
int |
readInt(long fieldId)
Reads int from specified field in pipe
|
int |
readInt(Object association)
Reads int from specified field in pipe
|
boolean |
readInt(Object association,
StructuredWriter output)
Reads int from specified field in pipe
|
<A extends Appendable> |
readIntAsText(long fieldId,
A target)
Reads int as String from specified field in pipe
|
<A extends Appendable> |
readIntAsText(Object association,
A target)
Reads int as String from specified field in pipe
|
long |
readLong(long fieldId)
Reads long from specified field in pipe
|
long |
readLong(Object association)
Reads long from specified field in pipe
|
boolean |
readLong(Object association,
StructuredWriter output)
Reads long from specified field in pipe
|
ChannelReader |
readPayload() |
double |
readRationalAsDouble(long fieldId)
Reads rational as double from specified field in pipe
|
double |
readRationalAsDouble(Object association)
Reads rational as double from specified field in pipe
|
boolean |
readShort(Object association,
StructuredWriter output)
Reads short from specified field in pipe
|
String |
readText(long fieldId)
Reads text at given field
|
<A extends Appendable> |
readText(long fieldId,
A target)
Reads text from specified field in pipe
|
String |
readText(Object association)
Reads text from specified field in pipe
|
<A extends Appendable> |
readText(Object association,
A target)
Reads text from specified field in pipe
|
boolean |
readText(Object association,
StructuredWriter output)
Reads text from specified field in pipe
|
double |
readTextAsDouble(long fieldId)
Reads String as double in given field
|
double |
readTextAsDouble(Object association)
Reads String as double in given field
|
long |
readTextAsLong(long fieldId)
Reads String as long in given field
|
long |
readTextAsLong(Object association)
Reads String as long in given field
|
static int |
structType(StructuredReader that) |
<T> void |
visit(Class<T> attachedInstanceOf,
StructFieldVisitor<T> visitor) |
void |
visitBlob(StructBlobListener visitor,
long fieldId)
Visits blob field and can add new operations without modifying the structures
|
void |
visitBoolean(StructBooleanListener visitor,
long fieldId)
Visits boolean field and can add new operations without modifying the structures
|
void |
visitBoolean(StructBooleanListener visitor,
Object association)
Visits boolean field and can add new operations without modifying the structures
|
void |
visitByte(StructByteListener visitor,
long fieldId)
Visits byte field and can add new operations without modifying the structures
|
void |
visitByte(StructByteListener visitor,
Object association) |
void |
visitDecimal(StructDecimalListener visitor,
long fieldId)
Visits decimal field and can add new operations without modifying the structures
|
void |
visitDecimal(StructDecimalListener visitor,
Object association)
Visits decimal field and can add new operations without modifying the structures
|
void |
visitDouble(StructDoubleListener visitor,
long fieldId)
Visits double field and can add new operations without modifying the structures
|
void |
visitDouble(StructDoubleListener visitor,
Object association) |
void |
visitFloat(StructFloatListener visitor,
long fieldId)
Visits float field and can add new operations without modifying the structures
|
void |
visitFloat(StructFloatListener visitor,
Object association) |
void |
visitInt(StructIntListener visitor,
long fieldId)
Visits int field and can add new operations without modifying the structures
|
void |
visitInt(StructIntListener visitor,
Object association)
Visits int field and can add new operations without modifying the structures
|
void |
visitLong(StructLongListener visitor,
long fieldId)
Visits long field and can add new operations without modifying the structures
|
void |
visitLong(StructLongListener visitor,
Object association)
Visits long field and can add new operations without modifying the structures
|
void |
visitRational(StructRationalListener visitor,
long fieldId)
Visits rational field and can add new operations without modifying the structures
|
void |
visitRational(StructRationalListener visitor,
Object association) |
void |
visitShort(StructShortListener visitor,
long fieldId)
Visits short field and can add new operations without modifying the structures
|
void |
visitShort(StructShortListener visitor,
Object association)
Visits short field and can add new operations without modifying the structures
|
void |
visitText(StructTextListener visitor,
long fieldId)
Visits text field and can add new operations without modifying the structures
|
public static final int PAYLOAD_INDEX_LOCATION
public StructuredReader(DataInputBlobReader<?> reader)
public <T> void visit(Class<T> attachedInstanceOf, StructFieldVisitor<T> visitor)
public <T,B extends T> boolean identityVisit(B attachedInstance,
StructFieldVisitor<T> visitor)
public final int fullIndexSizeInBytes()
public ChannelReader read(long fieldId)
public boolean isNull(long fieldId)
fieldId - field to checktrue if null, else falsepublic boolean hasValue(long fieldId)
fieldId - field to checktrue if field has value, else falsepublic final ChannelReader readPayload()
public ChannelReader read(Object association)
public boolean isNull(Object association)
public boolean hasValue(Object association)
public String readText(long fieldId)
fieldId - to read fromnullpublic String readText(Object association)
association - field association showing where to readpublic boolean isEqual(long fieldId,
byte[] utf8EncodedBytes)
fieldId - field to compareutf8EncodedBytes - bytes to comparetrue if equal, else falsepublic boolean isEqual(Object association, byte[] utf8EncodedBytes)
association - field association showing where to readutf8EncodedBytes - bytes to comparetrue if equal, else falsepublic long readTextAsLong(long fieldId)
fieldId - field to read frompublic long readTextAsLong(Object association)
association - field association showing where to readpublic double readTextAsDouble(long fieldId)
fieldId - field to read frompublic double readTextAsDouble(Object association)
association - field association showing where to readpublic <A extends Appendable> A readText(long fieldId, A target)
fieldId - field to read fromtarget - to append textpublic <A extends Appendable> A readText(Object association, A target)
association - field association showing where to readtarget - to append textpublic <A extends Appendable> A readIntAsText(long fieldId, A target)
fieldId - field to read fromtarget - to append textpublic <A extends Appendable> A readIntAsText(Object association, A target)
association - field association showing where to readtarget - to append textpublic double readRationalAsDouble(long fieldId)
fieldId - field to read fromNaNpublic double readRationalAsDouble(Object association)
association - field association showing where to readNaN if field is absent, else doublepublic double readDecimalAsDouble(long fieldId)
fieldId - field to read fromNaN if field is absent, else doublepublic double readDecimalAsDouble(Object association)
association - field association showing where to readNaN if field is absent, else doublepublic long readDecimalMantissa(long fieldId)
fieldId - field to read frompublic long readDecimalMantissa(Object association)
association - field association showing where to readpublic byte readDecimalExponent(long fieldId)
fieldId - field to read frompublic byte readDecimalExponent(Object association)
association - field association showing where to readpublic boolean readBoolean(long fieldId)
fieldId - field to read fromfalse when absent, else truepublic boolean readBoolean(Object association)
association - field association showing where to readfalse when absent, else truepublic int readInt(long fieldId)
fieldId - field to read frompublic int readInt(Object association)
association - field association showing where to readpublic long readLong(long fieldId)
fieldId - field to read frompublic long readLong(Object association)
association - field association showing where to readpublic void visitRational(StructRationalListener visitor, Object association)
public void visitRational(StructRationalListener visitor, long fieldId)
visitor - used to visit rational fieldfieldId - field to visitpublic void visitInt(StructIntListener visitor, Object association)
visitor - used to visit int fieldassociation - field association showing where to readpublic void visitInt(StructIntListener visitor, long fieldId)
visitor - used to visit int fieldfieldId - field to visitpublic void visitBlob(StructBlobListener visitor, long fieldId)
visitor - used to visit blob fieldfieldId - field to visitpublic void visitText(StructTextListener visitor, long fieldId)
visitor - used to visit text fieldfieldId - field to visitpublic void visitLong(StructLongListener visitor, Object association)
visitor - used to visit long fieldassociation - field association showing where to visitpublic void visitLong(StructLongListener visitor, long fieldId)
visitor - used to visit long fieldfieldId - field to visitpublic void visitShort(StructShortListener visitor, long fieldId)
visitor - used to visit short fieldfieldId - field to visitpublic void visitShort(StructShortListener visitor, Object association)
visitor - used to visit short fieldassociation - field association showing where to visitpublic void visitByte(StructByteListener visitor, long fieldId)
visitor - used to visit byte fieldfieldId - field to visitpublic void visitByte(StructByteListener visitor, Object association)
public void visitFloat(StructFloatListener visitor, Object association)
public void visitFloat(StructFloatListener visitor, long fieldId)
visitor - used to visit float fieldfieldId - field to visitpublic void visitDouble(StructDoubleListener visitor, Object association)
public void visitDouble(StructDoubleListener visitor, long fieldId)
visitor - used to visit double fieldfieldId - field to visitpublic void visitBoolean(StructBooleanListener visitor, Object association)
visitor - used to visit boolean fieldassociation - field association showing where to visitpublic void visitBoolean(StructBooleanListener visitor, long fieldId)
visitor - used to visit boolean fieldfieldId - field to visitpublic static int structType(StructuredReader that)
public void visitDecimal(StructDecimalListener visitor, Object association)
visitor - used to visit decimal fieldassociation - field association showing where to visitpublic void visitDecimal(StructDecimalListener visitor, long fieldId)
visitor - used to visit decimal fieldfieldId - field to visitpublic <A extends Appendable> A readDecimalAsText(Object attachedInstance, A target)
attachedInstance - field association showing where to readtarget - to append topublic boolean readLong(Object association, StructuredWriter output)
association - field association showing where to readtrue if data exists, else falsepublic boolean readInt(Object association, StructuredWriter output)
association - field association showing where to readtrue if data exists, else falsepublic boolean readShort(Object association, StructuredWriter output)
association - field association showing where to readtrue if data exists, else falsepublic boolean readBoolean(Object association, StructuredWriter output)
association - field association showing where to readtrue if data exists, else falsepublic boolean readText(Object association, StructuredWriter output)
association - field association showing where to readtrue if data exists, else falsepublic boolean readDecimal(Object association, StructuredWriter output)
association - field association showing where to readtrue if data exists, else falseCopyright © 2018. All Rights Reserved.