Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.basex.data
Interface Result

All Known Implementing Classes:
  Bool, Item, Literal, Nodes, NodeSet, Num, XQResult

    public interface Result

This is an interface for query results.

Author:
  Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen

Method Summary
`boolean` | `sameAs(Result v)` Compares values for equality.
`void` | `serialize(PrintOutput out, boolean valid)` Serializes the stored data to the specified output stream.
`void` | `serialize(ResultReader rr)` Serializes the stored data to the specified reader.
`int` | `size()` Number of values, stored in the result instance.

Method Detail

### sameAs

    boolean sameAs(Result v)

  Compares values for equality.

  Parameters:
    `v` - value to be compared
  Returns:
    true if values are equal

### serialize

    void serialize(PrintOutput out,
                   boolean valid)
                   throws java.io.IOException

  Serializes the stored data to the specified output stream.

  Parameters:
    `out` - output stream
    `valid` - well-formed output
  Throws:
    `java.io.IOException` - in case of problems with the PrintOutput

### serialize

    void serialize(ResultReader rr)
                   throws org.xml.sax.SAXException

  Serializes the stored data to the specified reader.

  Parameters:
    `rr` - default handler
  Throws:
    `org.xml.sax.SAXException` - in case of problems with the PrintOutput

### size

    int size()

  Number of values, stored in the result instance.

  Returns:
    number of values

Overview | Package | Class | Use | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD