public class ColumnFileReader extends Object implements Closeable
Constructor and Description |
---|
ColumnFileReader(File file)
Construct reading from the named file.
|
ColumnFileReader(Input file)
Construct reading from the provided input.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getColumnCount()
Return the number of columns in this file.
|
ColumnMetaData[] |
getColumnMetaData()
Return all columns' metadata.
|
ColumnMetaData |
getColumnMetaData(int number)
Return a column's metadata.
|
ColumnMetaData |
getColumnMetaData(String name)
Return a column's metadata.
|
ColumnFileMetaData |
getMetaData()
Return this file's metadata.
|
List<ColumnMetaData> |
getRoots()
Return root columns' metadata.
|
long |
getRowCount()
Return the number of rows in this file.
|
<T extends Comparable> |
getValues(int column)
Return an iterator over values in a column.
|
<T extends Comparable> |
getValues(String columnName)
Return an iterator over values in the named column.
|
public ColumnFileReader(File file) throws IOException
IOException
public ColumnFileReader(Input file) throws IOException
IOException
public long getRowCount()
public long getColumnCount()
public ColumnFileMetaData getMetaData()
public ColumnMetaData[] getColumnMetaData()
public List<ColumnMetaData> getRoots()
public ColumnMetaData getColumnMetaData(int number)
public ColumnMetaData getColumnMetaData(String name)
public <T extends Comparable> ColumnValues<T> getValues(String columnName) throws IOException
IOException
public <T extends Comparable> ColumnValues<T> getValues(int column) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.