Class FindAll
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class FindAll extends SpecificRecordBase implements SpecificRecord
Find all entities for the given class name. See also request
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
FindAll.Builder
RecordBuilder for FindAll instances.
-
Field Summary
Fields Modifier and Type Field Description public final static Schema
SCHEMA$
public String
entityClassName
public int
offset
public int
limit
-
Method Summary
Modifier and Type Method Description String
getEntityClassName()
Gets the value of the 'entityClassName' field. void
setEntityClassName(String value)
Sets the value of the 'entityClassName' field. int
getOffset()
Gets the value of the 'offset' field. void
setOffset(int value)
Sets the value of the 'offset' field. int
getLimit()
Gets the value of the 'limit' field. void
setLimit(int value)
Sets the value of the 'limit' field. static Schema
getClassSchema()
static BinaryMessageEncoder<FindAll>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<FindAll>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<FindAll>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this FindAll to a ByteBuffer. static FindAll
fromByteBuffer(ByteBuffer b)
Deserializes a FindAll from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static FindAll.Builder
newBuilder()
Creates a new FindAll RecordBuilder. static FindAll.Builder
newBuilder(FindAll.Builder other)
Creates a new FindAll RecordBuilder by copying an existing Builder. static FindAll.Builder
newBuilder(FindAll other)
Creates a new FindAll RecordBuilder by copying an existing FindAll instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
void
customEncode(Encoder out)
void
customDecode(ResolvingDecoder in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
FindAll
FindAll()
Default constructor.
-
FindAll
FindAll(String entityClassName, Integer offset, Integer limit)
All-args constructor.- Parameters:
entityClassName
- the fully qualified entity class nameoffset
- The index of the first result in the query output that should be returned.limit
- Limit number of rows in the output query results, after applying the offset.
-
-
Method Detail
-
getEntityClassName
String getEntityClassName()
Gets the value of the 'entityClassName' field.
-
setEntityClassName
void setEntityClassName(String value)
Sets the value of the 'entityClassName' field. the fully qualified entity class name
- Parameters:
value
- the value to set.
-
getOffset
int getOffset()
Gets the value of the 'offset' field.
-
setOffset
void setOffset(int value)
Sets the value of the 'offset' field. The index of the first result in the query output that should be returned.
- Parameters:
value
- the value to set.
-
getLimit
int getLimit()
Gets the value of the 'limit' field.
-
setLimit
void setLimit(int value)
Sets the value of the 'limit' field. Limit number of rows in the output query results, after applying the offset. Use the maximum int value if you do not want a lower limit.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<FindAll> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<FindAll> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<FindAll> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this FindAll to a ByteBuffer.
-
fromByteBuffer
static FindAll fromByteBuffer(ByteBuffer b)
Deserializes a FindAll from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static FindAll.Builder newBuilder()
Creates a new FindAll RecordBuilder.
-
newBuilder
static FindAll.Builder newBuilder(FindAll.Builder other)
Creates a new FindAll RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static FindAll.Builder newBuilder(FindAll other)
Creates a new FindAll RecordBuilder by copying an existing FindAll instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
customEncode
void customEncode(Encoder out)
-
customDecode
void customDecode(ResolvingDecoder in)
-
-
-
-