| java.lang.Object org.apache.derby.impl.store.raw.data.StreamFileContainer
StreamFileContainer | public class StreamFileContainer implements TypedFormat,PrivilegedExceptionAction(Code) | | The format of this stream file is:
(RH) (FH) (field data) (FH) (field data) ........ (FH) (field data)
Record header is stored once at the beginning of the file
for all the rows stored in this file.
Record Header indicates how many fields are in each row.
Then we just stored all the column from each row.
Field header stored on this file is fixed size with fieldDataLength
size set to LARGE_SLOT_SIZE (4) bytes.
NOTE: No locks are used in this container. All transaction are not logged.
|
FIELD_HEADER_SIZE | final protected static int FIELD_HEADER_SIZE(Code) | | |
FIELD_STATUS | final protected static int FIELD_STATUS(Code) | | |
LARGE_SLOT_SIZE | final protected static int LARGE_SLOT_SIZE(Code) | | |
MIN_BUFFER_SIZE | final protected static int MIN_BUFFER_SIZE(Code) | | |
formatIdInteger | protected static int formatIdInteger(Code) | | Constant Fields of the class
|
close | protected void close()(Code) | | Close the stream file.
Close this stream file, and all streams associated with it.
exception: StandardException - Standard exception policy. |
getContainerProperties | public void getContainerProperties(Properties prop) throws StandardException(Code) | | Request the system properties associated with a stream container.
Request the value of properties associated with a stream container.
The following properties can be requested:
derby.storage.streamFileBufferSize
To get the value of a particular property add it to the property list,
and on return the value of the property will be set to it's current
value. For example:
get_prop(ConglomerateController cc)
{
Properties prop = new Properties();
prop.put("derby.storage.streamFileBufferSize", "");
cc.getContainerProperties(prop);
System.out.println(
"stream table's buffer size = " +
prop.getProperty("derby.storage.streamFileBufferSize");
}
Parameters: prop - Property list to fill in. exception: StandardException - Standard exception policy. |
getFileName | protected StorageFile getFileName(ContainerKey identity, boolean forCreate, boolean errorOK) throws StandardException(Code) | | Return a file name for the identity.
Return a valid file name for the identity, or null if the data
directory for this segment cannot be created
exception: StandardException - Segment directory cannot be created |
getIdentity | public ContainerKey getIdentity()(Code) | | Request the container key associated with the stream container.
|
getTypeFormatId | public int getTypeFormatId()(Code) | | Return my format identifier.
|
load | public void load(RowSource rowSource) throws StandardException(Code) | | load data into this container.
populate the stream container with data in the rowSource
Parameters: rowSource - The row source to get rows to load into this container. exception: StandardException - Standard exception policy. |
open | protected StreamFileContainer open(boolean forUpdate) throws StandardException(Code) | | Open a stream file container.
Open a container. Open the file that maps to this container, if the
file does not exist then we assume the container was never created
and return.
If the file exists but we have trouble opening it then we throw some
exception.
The opened StreamFileContainer. Parameters: forUpdate - Currently only accepts false, updating and existingstream file container is not currently supported. exception: StandardException - Standard exception policy. |
use | protected boolean use(StreamContainerHandle handle) throws StandardException(Code) | | Can I use this container?
This method always return true right now.
In the future when there are different uses for this container,
we may need to add qualifications for this.
exception: StandardException - Standard exception policy. |
|
|