public class RegistryProductHandler extends Object implements org.apache.oodt.product.LargeProductQueryHandler
Constructor and Description |
---|
RegistryProductHandler() |
Modifier and Type | Method and Description |
---|---|
void |
close(String id)
Close off a product.
|
org.apache.oodt.xmlquery.XMLQuery |
query(org.apache.oodt.xmlquery.XMLQuery q)
Run a query.
|
byte[] |
retrieveChunk(String id,
long offset,
int length)
Retrieve a chunk of a product.
|
public org.apache.oodt.xmlquery.XMLQuery query(org.apache.oodt.xmlquery.XMLQuery q) throws org.apache.oodt.product.ProductException
query
in interface org.apache.oodt.product.QueryHandler
q
- The query.org.apache.oodt.product.ProductException
- if an error occurs.public byte[] retrieveChunk(String id, long offset, int length) throws org.apache.oodt.product.ProductException
retrieveChunk
in interface org.apache.oodt.product.LargeProductQueryHandler
id
- Identifier of the product in the form of a file specification.offset
- Where in the product to get a chunk of it.length
- How much of the product to get.org.apache.oodt.product.ProductException
- if an error occurs.public void close(String id)
IOException
when closing a file.close
in interface org.apache.oodt.product.LargeProductQueryHandler
id
- Product ID.org.apache.oodt.product.ProductException
- if an error occurs.Copyright © 2010–2017 Planetary Data System. All rights reserved.