public abstract class SNFileReader
extends java.lang.Object
| Constructor and Description |
|---|
SNFileReader() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close()
Close the shared-nothing file
|
abstract java.util.BitSet |
getBitSet()
Returns the bitmap representing free and used blocks in the file
|
abstract java.util.Collection<FieldDef> |
getFields()
Returns the list of fields from the space definition found in the file
|
abstract SpaceDef |
getSpaceDef()
Returns the space definition found in the file
|
abstract Tuple |
next()
Returns the next tuple
|
static SNFileReader |
open(java.io.File datastore,
java.lang.String metaspaceName,
java.lang.String spaceName,
java.lang.String memberName)
Opens the given shared-nothing file to browse {@code (e.g.
|
public static SNFileReader open(java.io.File datastore, java.lang.String metaspaceName, java.lang.String spaceName, java.lang.String memberName) throws ASException
(e.g. SNFileReader snFile = SNFileReader.open(new File("ds"), "ms", "shared_nothing_persisted", "a6c403e-c350");)datastore - root datastore directory with absolute path (e.g. File datastore = new File("ds");).metaspaceName - Name of the metaspacespaceName - Name of the spacememberName - Name of the memberASExceptionpublic abstract java.util.BitSet getBitSet()
throws ASException
ASExceptionpublic abstract Tuple next() throws ASException
ASExceptionpublic abstract java.util.Collection<FieldDef> getFields()
public abstract SpaceDef getSpaceDef()
public abstract void close()
throws ASException
ASExceptionCopyright (c) 2014 Cloud Software Group, Inc. All rights reserved.